Bonaccorso
Member
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.
new Horse().Rider = this;
public override bool OnBeforeDeath()
{
IMount mount = this.Mount;
if (mount != null)
mount.Rider = null;
if (mount is Mobile)
((Mobile)mount).Delete();
return base.OnBeforeDeath();
}
Put the following line in the constructor of your rider mobile, change out the horse to what you want!
Code:new Horse().Rider = this;
Excellent! Thanks a lot, before I was reviewing ChaosDragoons and SavageRiders but completely missed the first line where the mount is added in both.Llama, Beetle, SavageRidgeback, ScaledSwampDragon etc etc
We use essential cookies to make this site work, and optional cookies to enhance your experience.