#W# Automount fix.

This commit is contained in:
WarrentyExpired 2026-08-27 22:18:41 -04:00
parent e52dadc9b8
commit c07b1bfc55
3 changed files with 20 additions and 1 deletions

View file

@ -34,7 +34,11 @@ namespace Server.Commands
if (pm.Mounted)
return;
if (pm.Region.IsPartOf(typeof(Server.Regions.InnRegion)) ||
pm.Region.IsPartOf(typeof(Server.Regions.HouseRegion)))
{
return;
}
BaseCreature mountToRetrieve = null;
for (int i = pm.Stabled.Count - 1; i >= 0; i--)

View file

@ -1,6 +1,7 @@
using System;
using System.Xml;
using Server;
using Server.Mobiles;
namespace Server.Regions
{
@ -27,11 +28,23 @@ namespace Server.Regions
public override void OnEnter( Mobile m )
{
base.OnEnter( m );
if ( m != null && m.Player )
{
Server.Commands.StableMountCommand.ForceDismountAndStore((PlayerMobile)m);
}
if ( m != null && m.Player )
{
m.SendMessage( "Welcome to <BASEFONT COLOR='#FFD700'>{0}</BASEFONT>", this.Name );
}
}
public override void OnExit( Mobile m )
{
base.OnExit( m );
if ( m != null && m.Player )
{
Server.Commands.RetrieveMountCommand.AutoRemountPlayer((PlayerMobile)m);
}
}
}
}