Okay so I've been running my server for a while now and I decided to implent Raids to it. They run automatically and all that but the problem is that they keep spawning eventhough the raid monster isn't killed. I am using crying damson 0.3.5. Client version 8.50 Here are the codes:
\data\raids\morgaroth.xml
\data\raids\raids.xml
\data\raids\scripts\raidevent.lua
I read in the example Raid.xml that reftype="single" will not execute a raid untill the executed one is killed.
Also that the reftype="blocked" will make the raid stay as "running" until the monster gets killed.
How do I solve this problem?
Also is there any possibility to implent a "chance" so that the monster has a 5% chance to spawn, each 2 minutes in this case?
Thanks in advance, reputation will be given to the problemsolvers!
Sincerely yours,
Chrippe
\data\raids\morgaroth.xml
Lua:
<?xml version="1.0" encoding="utf-8"?>
<raid>
<announce delay="1000" type="event" message="Testmessage no 1" />
<announce delay="10000" type="event" message="Testmessage no 2" />
<announce delay="20000" type="event" message="Testmessage no 3" />
<announce delay="30000" type="event" message="Testmessage no 4" />
<singlespawn delay="40000" name="Morgaroth" x="519" y="427" z="7" />
</raid>
\data\raids\raids.xml
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<raids>
<raid name="Morgaroth" file="morgaroth.xml" interval2="2" margin="0" reftype="single" ref="no"/>
</raids>
\data\raids\scripts\raidevent.lua
Lua:
function onRaid()
doBroadcastMessage("Broadcast from a raid script!")
return true
end
I read in the example Raid.xml that reftype="single" will not execute a raid untill the executed one is killed.
Also that the reftype="blocked" will make the raid stay as "running" until the monster gets killed.
How do I solve this problem?
Also is there any possibility to implent a "chance" so that the monster has a 5% chance to spawn, each 2 minutes in this case?
Thanks in advance, reputation will be given to the problemsolvers!
Sincerely yours,
Chrippe
Last edited: