• 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!

please help.

fallenedge

New Member
Joined
Jul 13, 2011
Messages
9
Reaction score
0
runing 8.54 cryingdamson ot. in temple i trying to make a few quest boxes for the noob. i did this.

<action uniqueid="20130" event="script" value="quests/20130.lua"/>

then made a file called, 20130.lua with this in it

function onUse(cid, item, frompos, item2, topos)


if item.uid == 20130 then
if getPlayerStorageValue(cid,xxx) == -1 then
doPlayerSendTextMessage(cid,25,"Here is your blahh!")
doPlayerAddItem(cid,2173,1)
setPlayerStorageValue(cid,xxx,1)
else
doPlayerSendTextMessage(cid,25,"You have already gotten your reward.")
end

end
return TRUE
end




now it works fine. theres 6 boxes, if you open one it works. doesnt matter which one, it works, then when you goto open second box. it says you have already gotten this item when you really didnt. in the map editer i put the uniqueid as 20130 and aid 2000. each box has a different uniqueid number. all scrpited this way. can some plz help me so i can open all the boxes please.
 
Back
Top