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

Problem with chests

Ask3n

New Member
Joined
Oct 5, 2008
Messages
123
Reaction score
0
Location
Sweden
I have a big problem with the chest on my server, i use TFS Beta3 and when i try to open a chest is dosent work because its open like a backpack. and i have tried to change id but it dosent work, and i have tried to change getItemNameById and getItemWieghtById, and add the code to quests.lua.

nth works! :S

Please help me
 
Try this one

in actions.xml

<action uniqueid="1005" script="test questen.lua" />


and in scripts/test questen.lua
function onUse(cid, item, frompos, item2, topos)
-- Desert q 1
if item.uid == 1000 then
queststatus = getPlayerStorageValue(cid,1000)
if queststatus == -1 then
if getPlayerLevel(cid) >= 50 then
doPlayerSendTextMessage(cid,22,"You have found a Piece of a broken amulet.")
doPlayerAddItem(cid,7730,1)
setPlayerStorageValue(cid,1000,1)
else
doPlayerSendTextMessage(cid,22,"You need level 50 to get prize.")
end
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
end
end


and notice that you writed the unique id on the chest;)
 
Back
Top