tibia10gogo
New Member
- Joined
- Apr 14, 2016
- Messages
- 8
- Reaction score
- 2
Can someone update for me this script please? It works on 8.6, but now I need to update it to tfs 1.2.
It is cash teleport
It is cash teleport
Code:
local config = {
[7751] = { else_text = 'You need to have 15cc', item_ID = 2160, item_count = 15, pos = {x=30715, y=32296, z=7} },
}
function onStepIn(cid, item, position, fromPosition)
local aid = Item(item.uid, "aid")
if(config[aid].item_count <= getPlayerItemCount(cid, config[aid].item_ID)) then
doTeleportThing(cid, config[aid].pos)
doPlayerRemoveItem(cid, 2160, 15)
else
doPlayerSendCancel(cid, else_text)
doTeleportThing(cid, getCreatureLastPosition(cid))
end
return true
end