local config = {
tpTo = {x = 100, y = 100, z = 7}, -- teleport tp to
createTp = {x = 100, y = 100, z = 7}, -- create teleport position
timeToRemoveTp = 1, -- in minutes
createTpMessage = "Teleport to the war zone has been created in temple."
tpCloseMessage = "Teleport to the war zone has been removed!"
}
function removeTeleport()
doRemoveItem(getTileItemById(config.createTp, 1387).uid)
doBroadcastMessage(config.tpCloseMessage)
return true
end
function onThink(interval, lastExecution, thinkInterval)
doBroadcastMessage(config.createTpMessage)
doCreateTeleport(1387, config.tpTo, config.createTp)
addEvent(removeTeleport, config.timeToRemoveTp*60*1000)
return true
end