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

Quest Reward bugg!

Mestor

Active Member
Joined
Feb 1, 2009
Messages
515
Reaction score
34
Location
Sweden
I got some problems with my quests!

almost all my quests on ot is based with one chest and inside the chest its a bag and inside the bag its items... But when players open the chest they just get a empty bag!


like this it looks in map editor:


buggu.png



Please Help!
Rep ++
 
Last edited:
why you don't use script?
open actions.xml
Code:
<action uniqueid="200" script="quest.lua"/>
then go to scripts and make file called quest.lua
then put this script in it
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 200 then
    queststatus = getPlayerStorageValue(cid,92)
        if queststatus == -1 then
            doPlayerSendTextMessage(cid,22,"You have found XXXX")
            doPlayerAddItem(cid,ID OF THE ITEM,1)
            setPlayerStorageValue(cid,92,1)
        else
            doPlayerSendTextMessage(cid,22,"It is empty.")
        end
    else
    return false
    end
return true
end
 
Back
Top