#W# Automount fix.
This commit is contained in:
parent
e52dadc9b8
commit
c07b1bfc55
3 changed files with 20 additions and 1 deletions
|
|
@ -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--)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue