time
can work like this on 0.3.6 or you'll have to create 2 scripts or a raid to spawn it twice.<globalevent name="Bosses" time="24:00:00-12:00:00" script="bosses.lua" />
local pos = {x = 1000, y = 1000, z = 7}
function onTimer(interval)
local boss = bossnamehere
doCreateMonster(boss, pos)
doBroadcastMessage(boss.." has spawned.", MESSAGE_STATUS_WARNING)
return true
end
time="24:00:00-12:00:00"
time="24:00:00"
<globalevent name="Bosses" time="12:00:00" script="bosses.lua" />
<globalevent name="Bosses" time="00:05:00" script="bosses.lua" />
local pos = {x = 1183, y = 880, z = 7}
function onTimer(interval)
local boss = Elamazon
doCreateMonster(boss, pos)
doBroadcastMessage(boss.." has spawned.", MESSAGE_STATUS_WARNING)
return true
end
data/globalevents/scripts/bosses.lua:onTimer
Description:
(luaDoCreateMonster) Monster with name '' not found
[Error - GlobalEvent Interface]
data/globalevents/scripts/bosses.lua:onTimer
Description:
data/globalevents/scripts/bosses.lua:6: attempt to concatenate local 'boss' (a nil value)
stack traceback:
data/globalevents/scripts/bosses.lua:6: in function <data/globalevents/scripts/bosses.lua:3>
[Error - GlobalEvents::timer] Couldn't execute event: Bosses
local pos = {x = 1183, y = 880, z = 7}
function onTimer(interval)
local boss = Elamazon
doCreateMonster("Elamazon", pos, false, true)
doBroadcastMessage(boss.." has spawned.", MESSAGE_STATUS_WARNING)
return true
end
Description:
(luaDoCreateMonster) Monster with name '' not found
[Error - GlobalEvent Interface]
data/globalevents/scripts/bosses.lua:onTimer
Description:
data/globalevents/scripts/bosses.lua:6: attempt to concatenate local 'boss' (a nil value)
stack traceback:
data/globalevents/scripts/bosses.lua:6: in function <data/globalevents/scripts/bosses.lua:3>
data\raids
and create a script with this<?xml version="1.0" encoding="utf-8"?>
<raid>
<singlespawn delay="1000" name="Elamazon" x="1183" y="880" z="7" />
<announce delay="1000" type="event" message="Elamazon has spawned!" />
</raid>
data\raids\raids.xml
<raid name="Elamazon" file="Elamazon.xml" interval2="30" margin="1000" enabled="yes"/>
data\globalevents\scripts
add thisfunction onTime()
doExecuteRaid(Elamazon)
return true
end
data\globalevents\globalevents.xml
add this and change the time to test it.<globalevent name="Raid" time="23:59:59" event="script" value="Raidexecute.lua"/>
<globalevent name="Elamazon" time="20:00:00" event="buffer" value="doExecuteRaid('Elamazon')"/>
If it still doesn't work then maybe try a raid,data\raids
and create a script with this
then add this toXML:<?xml version="1.0" encoding="utf-8"?> <raid> <singlespawn delay="1000" name="Elamazon" x="1183" y="880" z="7" /> <announce delay="1000" type="event" message="Elamazon has spawned!" /> </raid>
data\raids\raids.xml
then inXML:<raid name="Elamazon" file="Elamazon.xml" interval2="30" margin="1000" enabled="yes"/>
data\globalevents\scripts
add this
and inLua:function onTime() doExecuteRaid(Elamazon) return true end
data\globalevents\globalevents.xml
add this and change the time to test it.
Or I think you can only add this line without the raid execute Lua script like this.XML:<globalevent name="Raid" time="23:59:59" event="script" value="Raidexecute.lua"/>
XML:<globalevent name="Elamazon" time="20:00:00" event="buffer" value="doExecuteRaid('Elamazon')"/>
But if none kill it i think it will respawn or u have to check if there are monsters in the room or no because if 5 days of respawns means 5 bossesIf you added the globalevents line with a specified time then it will do it auto at same time daily.