So I just happen to notice on UO shards that npcs will move slower with more damage done to them.

I know on runuo or other emus this is not the case they always move same speed no matter how much damage is done to them.

so I am wander is there a way to change npc speeds as they get damaged.

My ideas was Basecreature in damage section but I don't know if this will work.
 
i think using the OnThink method and doing a check like

if( Hits <= ( HitsMax / 2 ) )
{
CurrentSpeed = [double];
}
 
I'm confused, this is already the case on RunUO 2.5, was it taken out in ServUO? In BaseCreature. there is an overridable bool "ReduceSpeedWithDamage", if set to true then monsters move slower when damaged. BaseChampions in particular have this set to false so they do not slow with damage.

In BaseAI the speed of the mobile is changed in TransformMoveDelay, called by DoMoveImpl. If you have custom AI that overrides DoMoveImpl then it may never get called.
 
Back