
- Moved setting a mob's chase/attack states from the mob_ai to unit_attack and unit_walktobl. - Cleaned the change-target/cast-sensor code to account for the new mob modes. - Cleaned up a bit the mob ai sub hard function. - Made the monster_active_enable config setting take effect on mob load. - Updated the doc explaining mob modes. git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9422 54d463be-8e91-2dee-dedb-b68131a5f0ec
59 lines
2.2 KiB
Plaintext
59 lines
2.2 KiB
Plaintext
Bit Legend:
|
|
----------
|
|
MD_CANMOVE | 0x0001 | 1
|
|
MD_LOOTER | 0x0002 | 2
|
|
MD_AGGRESSIVE | 0x0004 | 4
|
|
MD_ASSIST | 0x0008 | 8
|
|
MD_CASTSENSOR_MELEE | 0x0010 | 16
|
|
MD_BOSS | 0x0020 | 32
|
|
MD_PLANT | 0x0040 | 64
|
|
MD_CANATTACK | 0x0080 | 128
|
|
MD_DETECTOR | 0x0100 | 256
|
|
MD_CASTSENSOR_CHASE | 0x0200 | 512
|
|
MD_CHANGECHASE | 0x0400 | 1024
|
|
MD_ANGRY | 0x0800 | 2048
|
|
MD_CHANGETARGET_MELEE | 0x1000 | 4096
|
|
MD_CHANGETARGET_CHASE | 0x2000 | 8192
|
|
|
|
Explanation for modes:
|
|
---------------------
|
|
|
|
CanMove: Enables the mob to move/chase characters.
|
|
|
|
CanAttack: Enables the mob to attack/retaliate when you are within attack
|
|
range. Note that this only enables them to use normal attacks, skills are
|
|
always allowed.
|
|
|
|
Looter: The mob will loot up nearby items on the ground when it's on idle state.
|
|
|
|
Aggressive: normal aggressive mob, will look for a close-by player to attack.
|
|
|
|
Assist: When a nearby mob of the same class attacks, assist types will join them.
|
|
|
|
Cast Sensor Melee: Will go after characters who start casting on them if idle
|
|
or during melee attacks (they will leave their current target alone)
|
|
|
|
Cast Sensor Chase: Will go after characters who start casting on them if idle
|
|
or chasing other players (they switch chase targets)
|
|
|
|
Boss: Special flag which makes mobs inmune to certain status changes and skills.
|
|
|
|
Plant: Always receives 1 damage from attacks.
|
|
|
|
Detector: Enables mob to detect and attack characters who are in hiding/cloak.
|
|
|
|
ChangeChase: Allows chasing mobs to switch targets if another player happens
|
|
to be within attack range (handy on ranged attackers, for example)
|
|
|
|
Angry: These mobs are "hyper-active". Apart from "chase"/"attack", they have
|
|
the states "follow"/"angry". Once hit, they stop using these states and use
|
|
the normal ones. The new states are used to determine a different skill-set
|
|
for their "before attacked" and "after attacked" states. Also, when
|
|
"following", they automatically switch to whoever character is closest.
|
|
|
|
Change Target Melee: Enables a mob to switch targets when attacked while
|
|
attacking someone else.
|
|
|
|
Change Target Chase: Enables a mob to switch targets when attacked while
|
|
chasing another character.
|