Can someone tell me why it doesn't work this script, everytime i click on the chest i get debug. But i get the 25 crystal coins
No other item.uid is the same.
Using 0.2
No other item.uid is the same.
Using 0.2
PHP:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 62624 then
queststatus = getPlayerStorageValue(cid,5641)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found 25 crystal coins.")
doPlayerAddItem(cid,2160,25)
setPlayerStorageValue(cid,5641,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end