fret

Initiate
How would I go about editing the movement script of followers/pets so that they don't walk into one another? This happens in Trammel where by definition there is no blocking. They all go to the exact same tile and it looks ridiculous.

I edited WalkMobileRange in BaseAI to give them some distance from the target, but they still move onto a single tile when following the player.
 
This worked for me.

In BaseCreature.cs, change OnMoveOver method as follows:

Code:
        public override bool OnMoveOver(Mobile m)
        {
            if (m is BaseCreature && !((BaseCreature)m).Controlled)
            {
                return (!Alive || !m.Alive || IsDeadBondedPet || m.IsDeadBondedPet) || (Hidden && IsStaff());
            }
            if (this.Controlled && m is BaseCreature && ((BaseCreature)m).Controlled &&
                this.ControlMaster == ((BaseCreature)m).ControlMaster) return false;

            return base.OnMoveOver(m);
        }

One caveat: if you do this, your pets may not be able to gang up on monsters as efficiently, since they might have to jockey for position to reach the monster, particularly in tight quarters.
 
revisiting this thread We use JustUo attached is Our basecreature cs
not sure where to add it and does all of that need to be added ??

(edit) found it at line 3467 in JustUo file )
 

Attachments

  • BaseCreature.cs
    151.9 KB · Views: 3

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back