I made this script so that when i say a talkaction a teleport appear and after 2 min it deisappearss.. also it should execute a raid..
problems are
-raid doesnt execute
-teleport doesnt disappear
(raid does work i tested it like this: /raid monsterarena ... raid started)
Script
problems are
-raid doesnt execute
-teleport doesnt disappear
(raid does work i tested it like this: /raid monsterarena ... raid started)
Script
local minutes = 2 -- how many minutes you want before it removes the portal
local tp = {x=79, y=67, z=7} -- the place where the portal will appear
local tpto = {x=26, y=55, z=7} -- the pos of where the portal will lead you
local message = 'The Monster Arena Event has started, go to the teleport in the depot.. It will disappear in two minutes, dont worry you dont die in this event.' -- the message that will appear once activated.
local removemessage = 'The Monster Arena portal has been removed.' -- the message that will appear once tp is removed.
function onSay(cid, words, param)
doCreateTeleport(1387, tpto, tp)
doBroadcastMessage(message)
executeRaid(monsterarena)
return addEvent(onRemove, minutes*60*1000)
end
function onRemove()
local it = getTileItemById(tp, 1387)
if it > 0 then
doRemoveItem(it)
doBroadcastMessage(removemessage)
return true
end
end