function onThink(interval, lastExecution, thinkInterval)
local maxDistance = 10
for _, pid in pairs(getPlayersOnline()) do
local summons = getCreatureSummons(pid)
if #summons ~= 0 then
for _, sid in pairs (summons) do
if getThingPos(sid).z ~= getThingPos(pid).z or getDistanceBetween(getThingPos(sid), getThingPos(pid)) > maxDistance then
doTeleportThing(sid, getThingPos(pid), false)
doSendMagicEffect(getThingPos(sid), 12)
end
end
end
end
return true
end
3
2.1k
14 de novembro de 2012 às 19:45




info
Group: Visconde
Joined: 06/04/11
Posts: 350
Reputation: +8
Tibia Character: Mulekepirado
galera eu tenho um script aki que faz summons teleportarem para onde o dono for mais tem um problema, ele so teleporta 1 summon, eu quero que ele teleporte, todos os summons, abaixo o script:
GlobaEvents: