Northnorial
Member
The thing I wanted to make, is a teleport, which appears for 5 minutes. It will dissapear after this 5 minutes. This event will start every 2 hours.
The script doesn't work!
Any help?
Code:
local teleport = {x=1040, y=977, z=6, stackpos=1}
local getteleport = getThingfromPos(teleport)
function executeEvent()
doBroadcastMessage("Event Area opening in 2 hours again!")
doRemoveItem(getteleport.uid, 1)
return true
end
function onThink(interval, lastExecution, thinkInterval)
doBroadcastMessage("Event Area has been opened! It will close in 5 minutes.")
doCreateTeleport(1387, {x=1015, y=989, z=10}, teleport)
addEvent(executeEvent, 32000)
return true
end
The script doesn't work!
Any help?