• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[SOLVED] Item Raids

Maten

New Member
Joined
Mar 16, 2009
Messages
219
Reaction score
2
Hi!

I would like raid but with items instead of monster, is there a script for this?
 
Last edited:
Well I thought a way to make this work so ill post it if anyone wants it later :p This is not the right way but it worked good for me.

data\monsters\Piggy bank.xml:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Piggy bank" nameDescription="a Piggy bank" race="undead" experience="0" speed="0" manacost="0">
	<health now="0" max="1"/>
	<look typeex="2114" corpse="2114"/> <!-- The ID of the item you want (I wanted piggy banks) -->
	<targetchange interval="1" chance="0"/>
	<strategy attack="100" defense="0"/>
	<flags>
		<flag summonable="0"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="0"/>
		<flag convinceable="0"/>
		<flag pushable="0"/>
		<flag canpushitems="1"/>
		<flag staticattack="50"/>
		<flag lightlevel="0"/>
		<flag lightcolor="0"/>
		<flag targetdistance="1"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="5000" min="0" max="-1"/>
	</attacks>
	<defenses armor="0" defense="0">
	</defenses>
</monster>

data\monsters\Monsters.xml:
Code:
<monster name="piggy bank" file="Piggy bank.xml"/>

data\Raids\Piggy bank.xml:

Code:
<?xml version="1.0" encoding="utf-8"?>
<raid>
  <!--Announcements-->
  <announce delay="1" type="event" message="An stressed out banker man just ran through town and dropped some piggy banks.. Hurry up and take them before someone else dose it" />
  <!--Area Spawns-->
  <areaspawn delay="1" fromx="944" fromy="976" fromz="7" tox="1031" toy="1034" toz="7"> <!-- Edit pos for your town -->
    <monster name="Piggy bank" amount="5" /> 
  </areaspawn>
</raid>

data\Raids\Piggy bank.xml:
Code:
<raids>
<!-- Raids: -->
<raid name="Banker man" file="Piggy bank.xml"  chance="1" interval2="850" margin="0" />
</raids>

Hope it helps some one :)
 
Last edited:
Back
Top