• 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 Simple Quest

tcovoc

New Member
Joined
Jan 12, 2010
Messages
58
Reaction score
0
I tried to make simple chest quest, but players can't take the iem, they can see "Chest is empty" What's going on? I insert in map editor corret unique id, aa and the same quest, but for gold coins working normal (i just changed ids, 100% corrected). If somebody got working script, please put it here.

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

if item.uid == 11239 then
queststatus = getPlayerStorageValue(cid,5690)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found demon legs.")
doPlayerAddItem(cid,2495,1)
setPlayerStorageValue(cid,5690,1)
else
doPlayerSendTextMessage(cid,22,"Chest is empty.") 
end
else
return 0
end

return 1
end
 
You should use the built-in system.

Set Action ID to 2000,
set Unique ID to some random unique number between 1000 and 65535 that's not used as storage value or as unique ID elsewhere. And finally, put the items inside the container in editor.

Note that this only works in TFS 0.3
 
Back
Top