#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

@ -30,6 +30,8 @@
<region type="BusinessRegion" priority="70" name="the Bastion Inn">
<rect x="830" y="654" width="9" height="20" />
<rect x="821" y="666" width="9" height="8" />
</region>
<region type="InnRegion" priority="50" name="the Bastion Inn Rooms">
<rect x="7130" y="3990" width="37" height="106" />
</region>
<region type="BusinessRegion" priority="70" name="the Bastion Bowyers Shop" >

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);
}
}
}
}