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

Solved chest, from which we can take a lot of times

LuisPro

World War <3
Joined
May 10, 2009
Messages
425
Solutions
1
Reaction score
53
how to create simple chest, from which we can take same item a lot of times (no cooldown)?

(OTServ SVN)
 
Give the chest an actionId and then put it in actions.xml and add this line to a new script:

Code:
function onUse(player, item, fromPosition, toPosition, itemEx)
     player:addItem(itemId, count)
     return true
end


Edit: (for OTServ SVN)
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
     doPlayerAddItem(cid, itemId, count)
     return true
end
 
Last edited:
function onUse(cid, item, frompos, item2, topos)
doPlayerAddItem(cid, 2167, 1)
return true
end

work well,
thx for put me on right way :)
 
Last edited:
Back
Top