• 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 to make them unwalkable

Ataro

Member
Joined
Oct 28, 2010
Messages
689
Reaction score
20
Location
Netherlands
Is it possible to make an monster like trainers that they cannot move?
Like the towers in inq and poi :P that shoot at you
 
Last edited:
usw this script
PHP:
<?xml version="1.0" encoding="UTF-8"?>
  <monster name="Training Monk" nameDescription="a training monk" race="blood" experience="0" speed="0" manacost="0">
    <health now="1000000" max="1000000"/>
    <look type="57" corpse="6080"/>
    <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="2000" attack="1" skill="60"/>
    </attacks>
    <defenses armor="0" defense="0">
      <defense name="healing" interval="10000" chance="100" min="100000" max="100000"/>
    </defenses>
    <immunities>
      <immunity invisible="1"/>
    </immunities>
  </monster>
 
import this to your map that must work
train rar
and check in your monsters.xml where is file with training monk
bcz maybe you have 2 files in your monsters folder and you changing wrong :)
 
REP ++ please

if you take a look into sources you will find this:

pushable = isAttackable = isHostile = true; (TFS 0.4 i think 0.3.6 is the same)

so what did you need to do is simple !! Add this tag into your monster =)

pushable="1" -- true
pushable="0" -- false


So your monster that should look, like this


LUA:
<?xml version="1.0" encoding="UTF-8"?>
  <monster name="Training monk" nameDescription="a training monk" race="blood" experience="0" speed="0" manacost="0">
    <health now="100000" max="100000"/>
    <look type="57" head="20" body="30" legs="40" feet="50" corpse="3128"/>
    <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="100"/>
      <flag lightlevel="0"/>
      <flag lightcolor="0"/>
      <flag targetdistance="1"/>
      <flag runonhealth="0"/>
    </flags>
    <attacks>
      <attack name="melee" interval="2000" attack="1" skill="60"/>
    </attacks>
    <defenses armor="0" defense="0">
      <defense name="healing" interval="10000" chance="100" min="100000" max="100000"/>
    </defenses>
    <immunities>
      <immunity invisible="1"/>
    </immunities>
  </monster>


@Edit
Kojiiro i forget that was in flags that need to add kkkk
Edited my monster thanks.
 
Last edited:
XML:
<?xml version="1.0" encoding="UTF-8"?>
  <monster name="Training monk" nameDescription="a training monk" race="blood" experience="0" speed="0" manacost="0">
    <health now="100000" max="100000"/>
    <look type="57" head="20" body="30" legs="40" feet="50" corpse="3128"/>
    <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="100"/>
      <flag lightlevel="0"/>
      <flag lightcolor="0"/>
      <flag targetdistance="1"/>
      <flag runonhealth="0"/>
    </flags>
    <attacks>
      <attack name="melee" interval="2000" attack="1" skill="60"/>
    </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