$itemcount problem
I have an armor quest, and the item turn in isn't functioning as I want it to. The spell being cast on the user summons the specified item. The problem is that ANY turn in attempts to cast all the spells in the code on the user.
Code:
EVENT_ITEM { |
I believe you need to set the $itemcount = to something...
ie. if ($itemcount("210") == 1 && $itemcount("217") == 1 && $itemcount("218") == 1 && $itemcount("219") == 1 ){ say("Here is your chestplate. Congratulations!") castspell("$userid","523") } You were also missing a ) after the last $itemcount |
Yeah, try $itemcount("id") == 1, also try without quotes, and make sure to add in that last parentheses. ;)
|
Thanks, it works like a charm.
|
Using 4.4 I used $itemcount without the quotes and it worked. With Quotes did not work for me.
|
The simple explanation is that Windows likes quotes, Linux does not (has to do with the atoi function). I think this might have been fixed, but not sure. Check my rantings about atoi in the dev forum for more info (and cussing).
Regards, krich |
itemcount is a variable, variables do not require quotes, functions are what require quotes.
|
All times are GMT -4. The time now is 05:41 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.