• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

WTF, my quest chests dont work >.>

Big M O O K

New Member
Joined
Aug 24, 2008
Messages
35
Reaction score
0
Edit: MWAHAHAHAHHAA they work now.
The red ID was set at 7000, and my item that i needed in the chest was 7462 :P me and my buddy were lookin at it and we figured it out b4 n e 1 could help lol. Thx o.O

-- simple quests based on uniqueId
-- to make quest create chest on map and set its uniqueId to id of quest item

function onUse(cid, item, frompos, item2, topos)
prize = item.uid
count = item.actionid

if prize > 0 and prize < 7464 then
queststatus = getPlayerStorageValue(cid,prize)

if queststatus == -1 then
if count > 1 then
doPlayerSendTextMessage(cid,22,'You have found '.. count ..' of ' .. getItemName(prize) .. '.')
doPlayerAddItem(cid,prize,count)
setPlayerStorageValue(cid,prize,1)
else
doPlayerSendTextMessage(cid,22,'You have found a ' .. getItemName(prize) .. '.')
doPlayerAddItem(cid,prize,1)
setPlayerStorageValue(cid,prize,1)
end
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

return 1
else
return 0
end
end
 
Last edited:
Back
Top