≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Problem javascript
Posted by:
(you are not logged in)
Enter the missing letter in: "In?ernational"
(you are not logged in)
Text:
[quote][b][/b] wrote: var slot = ccbGetCopperCubeVariable("slav"); var item = ccbGetCopperCubeVariable("watersProx"); var qty = ccbGetCopperCubeVariable("waters"); function allocateLoot() { var nn=parseInt(qty); nn ++; ccbSetCopperCubeVariable("waters",nn); if (nn ==1) { // dont use many if then statements.. very slow switch(nn) { case 1: ccbSetCopperCubeVariable("slt1",item); break; case 2: ccbSetCopperCubeVariable("slt2",item); break; case 3: ccbSetCopperCubeVariable("slt3",item); break; default: break; } } else { {if (nn>1) {print ("extra item picked up")} } } ***************** way 2 **************************** var slot = ccbGetCopperCubeVariable("slav"); var item = ccbGetCopperCubeVariable("watersProx"); var qty = ccbGetCopperCubeVariable("waters"); function allocateLoot() { var nn=parseInt(qty); nn ++; ccbSetCopperCubeVariable("waters",nn); if (nn ==1) { var n = nn.toString(); var slotnam = "slt"+n; ccbSetCopperCubeVariable(slotnam,item); } else { {if (nn>1) {print ("extra item picked up")} } }[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact