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

C++ monster what can walk trought walls

andu

Sold 649 scripts, 25 maps and 9 events!
Joined
Aug 7, 2009
Messages
969
Solutions
17
Reaction score
354
GitHub
olrios
Twitch
olrios
In monster's XML file you can set few different flags, such attackable, runonhealth etc. I want flag what will allow this monster to walk trought walls.

data/monster/ghosts/Example_ghost_monster.xml:
Code:
    ...
    <flag staticattack="90"/>
    <flag runonhealth="0"/>
    <flag canwalktroughtwalls="1"/>
  </flags>

I think this explains everything. Want to make a ghost mob.
 
Works good but with one exception. Whenever monster enters into mountain or enter to the sea (water) he isn't moving smoothly. He teleports from 1 SQM to another. Like GM with /a 1 command.
 
Back
Top