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

[Monster] How do I make my training monk not move?

dizoxur

New Member
Joined
Feb 27, 2009
Messages
54
Reaction score
0
Well the problem is he always walks out of his training cabin, and I don't wat him to :p Is there any way I can make sure he doesn't move? I tried to set his speed to 0 but that didn't help... Here's the script:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Training Monk" nameDescription="a monk" race="blood" experience="200" speed="0" manacost="600">
	<health now="250000" max="250000"/>
	<look type="57" corpse="6080"/>
	<targetchange interval="5000" chance="0"/>
	<strategy attack="100" defense="0"/>
	<flags>
		<flag summonable="1"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="1"/>
		<flag convinceable="0"/>
		<flag pushable="0"/>
		<flag canpushitems="1"/>
		<flag canpushcreatures="1"/>
		<flag targetdistance="1"/>
		<flag staticattack="90"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="1500" skill="1" attack="1"/>
	</attacks>
	<defenses armor="20" defense="22">
		<defense name="healing" interval="1000" chance="65" min="65000" max="100000">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
		<defense name="speed" interval="1000" chance="10" speedchange="0" duration="3000">
			<attribute key="areaEffect" value="redshimmer"/>
		</defense>
	</defenses>
	<elements>
	</elements>
	<immunities>
		<immunity invisible="1"/>
	</immunities>
	<loot>
		<item id="2148" countmax="20" chance="24000"/><!-- gold coin -->
		<item id="2689" chance="20000"/><!-- bread -->
		<item id="1949" chance="18000"/><!-- scroll -->
		<item id="2044" chance="12000"/><!-- lamp -->
		<item id="2015" chance="6666"/><!-- brown flask -->
		<item id="2642" chance="6666"/><!-- sandals -->
		<item id="2467" chance="4000"/><!-- leather armor -->
		<item id="2401" chance="20000"/><!-- staff -->
		<item id="1987" chance="100000"><!-- bag -->
			<inside>
					<item id="2177" chance="3000"/><!-- life crystal -->
					<item id="2193" chance="8500"/><!-- ankh -->
					<item id="2166" chance="700"/><!-- power ring -->
			</inside>
		</item>
	</loot>
</monster>
 
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Training Monk" nameDescription="a monk" race="blood" experience="200" speed="0" manacost="600">
	<health now="250000" max="250000"/>
	<look type="57" corpse="6080"/>
	<targetchange interval="5000" chance="0"/>
	<strategy attack="100" defense="0"/>
	<flags>
		<flag summonable="1"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="1"/>
		<flag convinceable="0"/>
		<flag pushable="0"/>
		<flag canpushitems="1"/>
		<flag canpushcreatures="1"/>
		<flag targetdistance="10"/>
		<flag staticattack="90"/>
		<flag runonhealth="100"/>
	</flags>
	<attacks>
		<attack name="melee" interval="1500" skill="1" attack="1"/>
	</attacks>
	<defenses armor="20" defense="22">
		<defense name="healing" interval="1000" chance="65" min="65000" max="100000">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
		<defense name="speed" interval="1000" chance="10" speedchange="0" duration="3000">
			<attribute key="areaEffect" value="redshimmer"/>
		</defense>
	</defenses>
	<elements>
	</elements>
	<immunities>
		<immunity invisible="1"/>
	</immunities>
	<loot>
		<item id="2148" countmax="20" chance="24000"/><!-- gold coin -->
		<item id="2689" chance="20000"/><!-- bread -->
		<item id="1949" chance="18000"/><!-- scroll -->
		<item id="2044" chance="12000"/><!-- lamp -->
		<item id="2015" chance="6666"/><!-- brown flask -->
		<item id="2642" chance="6666"/><!-- sandals -->
		<item id="2467" chance="4000"/><!-- leather armor -->
		<item id="2401" chance="20000"/><!-- staff -->
		<item id="1987" chance="100000"><!-- bag -->
			<inside>
					<item id="2177" chance="3000"/><!-- life crystal -->
					<item id="2193" chance="8500"/><!-- ankh -->
					<item id="2166" chance="700"/><!-- power ring -->
			</inside>
		</item>
	</loot>
</monster>
try that, I doubt it works but try it anyway
 
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Training Monk" nameDescription="a monk" race="blood" experience="0" speed="0" manacost="0">
	<health now="250000" max="250000"/>
	<look type="57" corpse="6080"/>
	<targetchange interval="5000" chance="0"/>
	<strategy attack="100" defense="0"/>
	<flags>
		<flag summonable="1"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="1"/>
		<flag convinceable="0"/>
		<flag pushable="0"/>
		<flag canpushitems="1"/>
		<flag canpushcreatures="1"/>
		<flag targetdistance="10"/>
		<flag staticattack="90"/>
		<flag runonhealth="100"/>
	</flags>
	<attacks>
		<attack name="melee" interval="1500" skill="1" attack="1"/>
	</attacks>
	<defenses armor="20" defense="22">
		<defense name="healing" interval="1000" chance="65" min="65000" max="100000">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
		<defense name="speed" interval="1000" chance="10" speedchange="0" duration="3000">
			<attribute key="areaEffect" value="redshimmer"/>
		</defense>
	</defenses>
	<elements>
	</elements>
	<immunities>
		<immunity invisible="1"/>
	</immunities>
	<loot>
		<item id="2148" countmax="20" chance="24000"/><!-- gold coin -->
		<item id="2689" chance="20000"/><!-- bread -->
		<item id="1949" chance="18000"/><!-- scroll -->
		<item id="2044" chance="12000"/><!-- lamp -->
		<item id="2015" chance="6666"/><!-- brown flask -->
		<item id="2642" chance="6666"/><!-- sandals -->
		<item id="2467" chance="4000"/><!-- leather armor -->
		<item id="2401" chance="20000"/><!-- staff -->
		<item id="1987" chance="100000"><!-- bag -->
			<inside>
					<item id="2177" chance="3000"/><!-- life crystal -->
					<item id="2193" chance="8500"/><!-- ankh -->
					<item id="2166" chance="700"/><!-- power ring -->
			</inside>
		</item>
 
Code:
<monster name="Training Monk" nameDescription="a monk" race="blood" experience="0" [COLOR="Red"][B]speed="0"[/B][/COLOR] manacost="0">

Also I suggest you change

Code:
<flag runonhealth="100"/>

To 0, or the monster will not attack back because it will be fleeing even with 100% full health.
 
Code:
<monster name="Training Monk" nameDescription="a monk" race="blood" experience="0" [COLOR="Red"][B]speed="0"[/B][/COLOR] manacost="0">

Also I suggest you change

Code:
<flag runonhealth="100"/>

To 0, or the monster will not attack back because it will be fleeing even with 100% full health.

Hmm, I did that in my original script, didn't I? :p but it doesn't work.. :s
 
This one should work:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Training Monk" nameDescription="a training monk" race="undead" experience="0" speed="0" manacost="0">
	<health now="250000" max="250000"/>
	<look type="57" corpse="6080"/>
	<targetchange interval="5000" chance="20"/>
	<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="0"/>
		<flag canpushcreatures="1"/>
		<flag targetdistance="1"/>
		<flag staticattack="90"/>
		<flag runonhealth="100"/>
		<flag hidehealth="1"/>
	</flags>
	<attacks>
		<attack name="melee" interval="1500" skill="1" attack="1"/>
	</attacks>
	<defenses armor="20" defense="22">
		<defense name="healing" interval="2000" chance="50" min="65000" max="100000">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<immunities>	
		<immunity manadrain="1"/>
		<immunity paralyze="1"/>
		<immunity drunk="1"/>
		<immunity outfit="1"/>
		<immunity invisible="1"/>
	</immunities>
</monster>
 
This one should work:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Training Monk" nameDescription="a training monk" race="undead" experience="0" speed="0" manacost="0">
	<health now="250000" max="250000"/>
	<look type="57" corpse="6080"/>
	<targetchange interval="5000" chance="20"/>
	<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="0"/>
		<flag canpushcreatures="1"/>
		<flag targetdistance="1"/>
		<flag staticattack="90"/>
		<flag runonhealth="100"/>
		<flag hidehealth="1"/>
	</flags>
	<attacks>
		<attack name="melee" interval="1500" skill="1" attack="1"/>
	</attacks>
	<defenses armor="20" defense="22">
		<defense name="healing" interval="2000" chance="50" min="65000" max="100000">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<immunities>	
		<immunity manadrain="1"/>
		<immunity paralyze="1"/>
		<immunity drunk="1"/>
		<immunity outfit="1"/>
		<immunity invisible="1"/>
	</immunities>
</monster>

They still walk :s
 
Well I simply made a new script :p and this one does work xD

here it is:

Code:
<?xml version="1.0" encoding="UTF-8"?>
  <monster name="Training Monk" nameDescription="a Trainer" race="blood" experience="0" speed="0" manacost="0">
    <health now="100000" max="100000"/>
	<look type="312" corpse="9660"/>
    <targetchange interval="60000" 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="1500" attack="1" skill="60"/>
		</attack>
	</attacks>
    <defenses armor="0" defense="0">
      <defense name="healing" interval="10000" chance="100" min="100000" max="100000"/>
    </defenses>
    <immunities>
      <immunity invisible="1"/>
    </immunities>
  </monster>
 
Back
Top