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

Chest Script

3li Xiber

Active Member
Joined
Dec 29, 2014
Messages
395
Reaction score
31
Tfs 0.3.6
Tibia 8.6
-------
I need Script when i use on chest it give an reward and tp the player to the temple
if he used the chest again it will give him reward and tp again
and everytime he use .
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
     doPlayerAddItem(cid, 2112, 1)
     doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You received a reward.")
     doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
     return true
end
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
     doPlayerAddItem(cid, 2112, 1)
     doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You received a reward.")
     doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
     return true
end
its action script?
 
Back
Top