• 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!

Additional script to raid?

Krewniak

New Member
Joined
Mar 21, 2013
Messages
11
Reaction score
1
Hello. I was looking for anything on whole Google, and nothing, so I decided to create this thread.
If anyone have any information how to do this, please, share his knowledge.

I have created small raid with rats:
Code:
raids.xml
<?xml version="1.0" encoding="UTF-8"?>
<raids>
	<raid name="Rats" file="Rats.xml" interval2="1" margin="0" reftype="single" ref="no" >
	</raid>
</raids>

Code:
Rats.xml
<?xml version="1.0" encoding="UTF-8"?>
<raid>
    <announce delay="1000" type="Blue" message=" DUM DUM DUM DUM PLAGA DUM DUM DUM DUM " /> 
    <singlespawn delay="5000" name="Rat" x="1025" y="1021" z="7"/>
	<singlespawn delay="5000" name="Rat" x="1025" y="1019" z="7"/>
	<singlespawn delay="5000" name="Rat" x="1026" y="1020" z="7"/>
	<singlespawn delay="5000" name="Rat" x="1024" y="1020" z="7"/>
	<singlespawn delay="4500" name="Cave Rat" ref="yes" x="1025" y="1020" z="7"/>
	<effect delay="4250" name="bigclouds" x="1025" y="1020" z="7"/>
</raid>

Everything works fine, but I need to create something better. If there is no player nearby, these rats will just stand like freezed, maybe walk a few squares somewhere.
I thought about creating invisible mobs, which would be attacked by them, and create by this a way to the city, for example.
I found also something like: otland.net/f83/best-raid-system-d-83525/ but it doesn't work for me.
I get error:
Code:
[24/03/2013 22:48:44] [Error - Raid::loadFromXml] Could not load raid file (data/raids/Rats.lua).
[24/03/2013 22:48:44] Line: 1, Info: Start tag expected, '<' not found
When trying to execute something like:
Code:
<raid name="Rats" file="Rats.lua" interval2="1" margin="0" reftype="single" ref="no" >
</raid>

So, anyone have an idea how to use functions on raids? And what is doing, and how to use this magic fucntion:
Code:
function onRaid()
doBroadcastMessage("Broadcast from a raid script!")
return true
end
 
Change
Code:
<?xml version="1.0" encoding="UTF-8"?>
<raids>
    <raid name="Rats" file="Rats.xml" interval2="1" margin="0" reftype="single" ref="no" >
    </raid>
</raids>

To
Code:
<?xml version="1.0" encoding="UTF-8"?>
<raids>
    <raid name="Rats" file="Rats.xml" interval2="1" margin="0" reftype="single" ref="no"/>
</raids>

Maybe it'll work.
 
Back
Top