i want script to quest in ground/trees i have that scripts and it don't work tfs 0.2.3;/
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 12656 and getPlayerStorageValue(cid, 9967706565) < 1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found witches cap mushroom.")
doPlayerAddItem(cid, 4840, 1)
setPlayerStorageValue(cid, 9967706565,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"It is empty.")
end
return 1
end
Code:
<action uniqueid="12656" event="script" value="cup.lua" />