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.
 

Active Shards

  • Unchained
    Custom (Classic)
    • Players
    • 150 Online
    • 273 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 88 Online
    • 190 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 83 Online
    • 137 Peak
  • Insane UO
    Endless Journey
    • Players
    • 72 Online
    • 105 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 28 Online
    • 85 Peak
  • CALYPSO
    Custom (Modern)
    • Players
    • 21 Online
    • 30 Peak
  • Pandora
    Custom (Modern)
    • Players
    • 19 Online
    • 32 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 19 Online
    • 172 Peak
  • Arth
    Custom (Modern)
    • Players
    • 19 Online
    • 34 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 18 Online
    • 48 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back