Hello 
I have a problem with quest chest --,
Here is the problem : When i open the chest it only says : Its empty. (That happens to every quest chest i open)
Here is the code :
I have a problem with quest chest --,
Here is the problem : When i open the chest it only says : Its empty. (That happens to every quest chest i open)
Here is the code :
<action uniqueid="2470" event="script"
value="aaquest/goldenlegs.lua"/>
function onUse(cid, item, frompos, item2, topos)
if item.uid == 54999 then
queststatus = getPlayerStorageValue(cid,1000)
if queststatus == -1 then
if getPlayerLevel(cid) > 100 then
doPlayerSendTextMessage(cid,22,"You have found golden legs.")
doPlayerAddItem(cid,2470,10)
setPlayerStorageValue(cid,1000,1)
else
doPlayerSendTextMessage(cid,22,"You need to be level 100 to open this chest.")
end
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
end
return 1
end
Last edited: