Page 1 of 1

Question about mob_dm 'mode' entry

Posted: 01 Sep 2010, 08:49
by nmaligec
I was wondering what the changetarget bit flag does for a mobs ai? I also would like to know what Boss, plant, detector do. I wonder what castsensor even is.

The mode flags are:
canMove: 1
looter: 2
aggresive: 4
assist: 8
castsensor: 16
Boss:32
plant: 64
canAttack: 128
detector: 256
changetarget: 512

Re: Question about mob_dm 'mode' entry

Posted: 01 Sep 2010, 16:45
by Crush
The server we are using was not made for TMW but for another game named Ragnarok Online. That's why you will find a lot of settings which are not really relevant for TMW like castsensor, boss and plant.

CanMove and CanAttack are obvious.
Looter means that the monster picks up items.
Assist means that it attacks players who attack other monsters of the same type.
Changetarget means that when a player is already attacking the monster and a second player joins the attack the monster will start attacking the second player.
Aggressive means that the monster attacks unprovoked.

To combine multiple behaviors you have to add them up. When you want a monster which can move, attack and is aggressive you would set the mode to 133 (1 + 128 + 4).

Re: Question about mob_dm 'mode' entry

Posted: 02 Sep 2010, 04:07
by Freeyorp101
Note that mobs in our current build will change their target (at a constant chance of 25% per attack, damage is irrelevant to this decision, only rate matters) regardless of whether that flag is set (the flags are slightly different than in mainline eAthena)

The plant flag does interesting things like reducing all incoming damage to 1.

The boss flag slightly alters a few calculations in battle.c.

Sensor and detector are irrelevant for our content.



If you look for the specifics, it's generally best that you read through the source yourself - battle.c and mob.c are the most relevant.


---Freeyorp

Re: Question about mob_dm 'mode' entry

Posted: 02 Sep 2010, 09:02
by Rotonen
AFAIR castsensor triggers aggro and changes the target to you when you prepare a spell against it even before it actually gets cast.