Acrenactive
★Designer★
Hello guys!
------------------------
TFS - 0.4 3777 Client 8.6
------------------------
I have a problem with a script, Would appreciate if anyone could help me. I want a boss tp should spawn when the countdown has counted one minute.
But my script works with countdown. But teleport dont created some times and when it has created is teleport you nowhere.
btw Sorry for my english
here is the script
------------------------
TFS - 0.4 3777 Client 8.6
------------------------
I have a problem with a script, Would appreciate if anyone could help me. I want a boss tp should spawn when the countdown has counted one minute.
But my script works with countdown. But teleport dont created some times and when it has created is teleport you nowhere.
btw Sorry for my english
here is the script
local createpos = {x=705,y=1246,z=5}
local topos = {x=748,y=1296,z=7}
local msg = "Eleminator Boss TP has now closed! It will open again in 1 Hours!"
local timetoclose = 60 -- in second
local function remove()
local tp = getTileItemById(createpos,1387).uid
if tp ~= 0 then
doRemoveItem(tp)
doBroadcastMessage(msg)
end
end
function onThink(interval)
local tp = doCreateItem(1387, 1, createpos)
doItemSetAttribute(tp, "aid", 37720)
doBroadcastMessage("Eleminator Boss TP is now open!\nCatch the teleport within "..timetoclose.." seconds quickly! Located in Underground Depo.")
addEvent(remove,timetoclose*1000)
return true
end
Last edited: