PuszekLDZ
https://tibia74.eu
I`m trying to make a simple script, to teleport me to destination after kill a monster.
I got teleport part worked, but it wont wait 60 sec as I need
got something like that:
anybody could help me?
I got teleport part worked, but it wont wait 60 sec as I need

got something like that:
LUA:
local destination = Position(32337, 32087, 7)
function onKill(creature, target, lastHit, player, item, fromPosition, toPosition)
local player = Player(creature)
if not player then
creature:teleportTo(fromPosition, true)
return false
end
if (getCreatureName(target) == "rat") then
player:teleportTo(destination, os.time() + 60)
end
return true
end