• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Configuration [Tutorial] Creating Raids

Avarian

Bring Out Your Dead!
Joined
Jun 14, 2007
Messages
472
Reaction score
1
Location
United States
Ok here's an example of a working raid. (testraid.xml)

Code:
 <raid>
  <announce delay="0" message="Test Raid!" type="19" /> 
  <singlespawn delay="5000" name="Demon" x="400" y="288" z="7" /> 
  <singlespawn delay="5500" name="Demon" x="400" y="289" z="7" /> 
 <areaspawn delay="6500" fromx="396" fromy="286" fromz="7" tox="404" toy="289" toz="7">
  <monster name="poison spider" amount="5" /> 
  <monster name="minotaur archer" amount="5" /> 
  </areaspawn>
  </raid>
then in raids.xml you put.

Code:
		<raid name="Testraid" file="testraid.xml" interval2="30" margin="0"/>
		executed on average once every 30 minutes

ok a small tutorial.
--The testraid.xml file tutorial first
Announce Delay - Means the amount of time delayed before the message is shown on the server.
Message - Is the message that will be shown to players.

Now there are two different types of spawns, A single spawn and an area spawn.
A single spawn is the demon, look at it for reference.
An area spawn is the minotaur and poison spiders, also look at them for reference.
Delay - Is the amount of time delayed until the creature(s) are spawned after the message is sent.
fromx,y,z and tox,y,z - Fromx,y,z is simply where the spawns can start and tox,y,z is simply where the spawns will end.

--The raids.xml tutorial now
Raid name - Simply the name of the raid.
file - Is simply the file name
Interval - Is the amount of minutes the server waits before executing the raid (testraid.xml is set at 30 so every 30 minutes the raid will occur.)

Hope it helps, any questions just post them here :)
 
Last edited:
It really helped me, thanks!

BTW, the server noticed me about a misssing "type" tag, and it proceeded to use default 19.

"[Notice] Raid: type tag missing for announce event. Using default: 19"

It's not important at all, the raid works perfectly. It's just to know what does "type" tag set.

Ty
 
<!-- and --> is the way to comment parts in XML.
 
oops haha forgot I had mine commented, fixed, thanks :)

PS: Talaturen can you please tell me what this is all about.
"[Notice] Raid: type tag missing for announce event. Using default: 19"
i've gotten that error since I started using TFS way back in the 0.1.0 days.
 
thanks a bunsh man ... i am a bit nooby so i needed this =]
 
Its not working for me :( I think in raids.xml i Have all correct and in file with ride too, but on the time, raid didn't start =(

My files:

raids.xml :

<?xml version="1.0" encoding="UTF-8"?>
<raids>
<!--
<raid name="Mino" file="mino.xml" interval2="5" margin="0"/>
executed on average once every 30 minutes
-->
</raids>

mino.xml :

<raid>
<announce delay="10" message="Our hunters saw hungry Minotaurs near the Polaros! Beware of them!" />
<singlespawn delay="5000" name="Minotaur Guard" x="1045" y="1005" z="7" />
<singlespawn delay="5500" name="Minotaur Guard" x="1021" y="1006" z="7" />
<singlespawn delay="6000" name="Minotaur Guard" x="1028" y="988" z="7" />
<singlespawn delay="5000" name="Minotaur Guard" x="992" y="991" z="7" />
<singlespawn delay="5500" name="Minotaur Guard" x="971" y="982" z="7" />
<singlespawn delay="6000" name="Minotaur Guard" x="1015" y="974" z="7" />
<areaspawn delay="6500" fromx="953" fromy="981" fromz="7" tox="1069" toy="1006" toz="7">
<monster name="minotaur" amount="100" />
<monster name="minotaur archer" amount="100" />
<monster name="minotaur mage" amount="50" />
</areaspawn>
</raid>

Is something wrong in it?
 
Last edited:
Its not working for me :( I think in raids.xml i Have all correct and in file with ride too, but on the time, raid didn't start =(

My files:

raids.xml :



mino.xml :



Is something wrong in it?

You need to remove the following tags from raids.xml <!-- and -->
 
<announce delay="0" message="All we want is water and earth!" type="19" />
<announce delay="10000" message="This is Madness!" type="19" />

The reason you guys are getting the error message but it still works is because you have to add the type t the end of the announcement, different types = different colors
 
You have to use type="event"
Code:
	if(strcasecmp(strValue.c_str(), "warning") == 0)
			m_messageType = MSG_STATUS_WARNING;
		else if(strcasecmp(strValue.c_str(), "event") == 0)
			m_messageType = MSG_EVENT_ADVANCE;
		else if(strcasecmp(strValue.c_str(), "default") == 0)
			m_messageType = MSG_EVENT_DEFAULT;
		else if(strcasecmp(strValue.c_str(), "description") == 0)
			m_messageType = MSG_INFO_DESCR;
		else if(strcasecmp(strValue.c_str(), "smallstatus") == 0)
			m_messageType = MSG_STATUS_SMALL;
		else if(strcasecmp(strValue.c_str(), "blueconsole") == 0)
			m_messageType = MSG_STATUS_CONSOLE_BLUE;
		else if(strcasecmp(strValue.c_str(), "redconsole") == 0)
			m_messageType = MSG_STATUS_CONSOLE_RED;
 
how can i put in change the interval to like: every 30 min you have a 50% of the raid occurs ? ^^ i will like it
 
what is margin?
Code:
[Notice] Raid: type tag missing for announce event. Using default: 19
 
Last edited:
About the colors, (I'm pretty sure) it's the same as you find in global.lua:
Code:
MESSAGE_STATUS_WARNING = 18
MESSAGE_EVENT_ADVANCE = 19
MESSAGE_EVENT_DEFAULT = 20
MESSAGE_STATUS_DEFAULT = 21
MESSAGE_INFO_DESCR = 22
MESSAGE_STATUS_SMALL = 23
MESSAGE_STATUS_CONSOLE_BLUE = 24
MESSAGE_STATUS_CONSOLE_RED  = 25

And I also think that 17 works (orange)
 
could not load raids.xml:
Code:
<raid name="rata" file="rata.xml" MESSAGE_EVENT_ADVANCE = 19 interval2="300" margin="0"/>

and plz what is the margin, and how to add a chance?, maybe every 30 min you have a chance of 50% of the raid will occur?
 
Last edited:
<raid name="rat" file="rat.xml" type="19" interval2="300" margin="0"/>
Code:
[Notice] Raid: type tag missing for announce event. Using default: 19

xD, and how to add chance????? plz =D
 
You have to use:
MSG_STATUS_WARNING
MSG_EVENT_ADVANCE
MSG_EVENT_DEFAULT
MSG_INFO_DESCR
MSG_STATUS_SMALL
MSG_STATUS_CONSOLE_BLUE
MSG_STATUS_CONSOLE_RED
 
i put this:
Code:
<raid name="rat" file="rat.xml" MSG_STATUS_WARNING 

interval2="300" margin="0"/>

and i get this:
Code:
[Error] Raids: Could not load data/raids/raids.xml
Failed to reload raids.
 
Back
Top