• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Quest chest problem..

quixer

New Member
Joined
Jun 22, 2008
Messages
196
Reaction score
0
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 :


<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:
Back
Top