ziggy46802
Active Member
- Joined
- Aug 19, 2012
- Messages
- 418
- Reaction score
- 27
Here is my script
Okay so you get the item, then you have to wait 10 seconds, but then you can get the item like every 2 seconds after the first 10 seconds are up. Whats up with that I dont get what is wrong with this script.
Code:
function restore(cid)
setPlayerStorageValue(cid, 1025, 1)
end
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid, 1025) == 1
then
setPlayerStorageValue(cid, 1025, 2)
doSendMagicEffect(getPlayerPosition(cid), 13)
doCreatureSay(cid, "You have come across some marijuana.", TALKTYPE_ORANGE_1)
doPlayerAddItem(cid, 5953, 1)
else
doCreatureSay(cid, "The plant has already been cut.", TALKTYPE_ORANGE_1)
addEvent(restore, 10 * 1000, cid)
end
end
Okay so you get the item, then you have to wait 10 seconds, but then you can get the item like every 2 seconds after the first 10 seconds are up. Whats up with that I dont get what is wrong with this script.