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

(AVESTA 0.6.1) Problem with quest's chests!

tifi123

New Member
Joined
Aug 16, 2010
Messages
33
Reaction score
0
Hello I have Avesta 7.6 and it don't work any quest at the map.

I tried to make the actions and put the unique ID on the chests and didn't worked.
 
Example: Put Unique id 1000 on a chest.

data/actions/actions.xml:
XML:
<action uniqueid="1000" script="script.lua"/>


data/actions/scripts:
LUA:
function onUse(cid, item)

if item.uid == 1000 then
quest = getPlayerStorageValue(cid, 1000)
if quest == -1 or quest == 0 then
doPlayerAddItem(cid, 2152, 23)
doPlayerSendTextMessage(cid, 22, "You have found 23 platinum coins.")
setPlayerStorageValue(cid, quest, 1)

else
doPlayerSendTextMessage(cid,22,"It's empty.")
end

end
return 0
end
return 1
 
Back
Top