Does anybody have example codes or manuals how to spawn mounted NPCs? So far I only found a couple of dead links on the old RunUO site.
 
Put the following line in the constructor of your rider mobile, change out the horse to what you want!

Code:
new Horse().Rider = this;

also make sure to remove the mount on death

Code:
        public override bool OnBeforeDeath()
        {
            IMount mount = this.Mount;

            if (mount != null)
                mount.Rider = null;

            if (mount is Mobile)
                ((Mobile)mount).Delete();

            return base.OnBeforeDeath();
        }
 
Llama, Beetle, SavageRidgeback, ScaledSwampDragon etc etc

Take a look at SavageRider.cs for an example of how NPC's are made with mounts if you have any issues! =]
 
Back