Ghazer
Member
- Joined
- Mar 13, 2009
- Messages
- 350
- Reaction score
- 6
I want edit that script, to change position every 30 minutes to the next position, if it possible change to town id every 30 minutes...
(I have 7 differents positions or town id) Like as change map but with one temple and only change the teleport position
This is possible?
(I have 7 differents positions or town id) Like as change map but with one temple and only change the teleport position
This is possible?
Code:
<globalevent name="teleportime" interval="10800" event="script" value="teleportime.lua"/>
Code:
-- Script creado por Juanzi Spada, [email protected]
function onThink(interval, lastExecution, thinkInterval)
local itemdid = 1387
local seg = 600 -- 10 minutos, estara el teleport abierto --
local createpos = {x=posx, y=posy, z=posz} -- posision donde se teletransportaran los players --
local topos = {x=posx, y=posy, z=posz} -- posision donde aparecera el teleport --
doCreateTeleport(itemid, topos, createpos)
doSendMagicEffect (topos, (31))
function removeTp(tp)
local t = getTileItemById(topos, itemid)
if t then
doRemoveItem(t.uid, 1)
doSendMagicEffect((topos, (1))
end
end
addEvent(removeTp, seg * 1000, tp)
return true
end