#W# Automount fix.
This commit is contained in:
parent
e52dadc9b8
commit
c07b1bfc55
3 changed files with 20 additions and 1 deletions
|
|
@ -30,6 +30,8 @@
|
||||||
<region type="BusinessRegion" priority="70" name="the Bastion Inn">
|
<region type="BusinessRegion" priority="70" name="the Bastion Inn">
|
||||||
<rect x="830" y="654" width="9" height="20" />
|
<rect x="830" y="654" width="9" height="20" />
|
||||||
<rect x="821" y="666" width="9" height="8" />
|
<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" />
|
<rect x="7130" y="3990" width="37" height="106" />
|
||||||
</region>
|
</region>
|
||||||
<region type="BusinessRegion" priority="70" name="the Bastion Bowyers Shop" >
|
<region type="BusinessRegion" priority="70" name="the Bastion Bowyers Shop" >
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,11 @@ namespace Server.Commands
|
||||||
|
|
||||||
if (pm.Mounted)
|
if (pm.Mounted)
|
||||||
return;
|
return;
|
||||||
|
if (pm.Region.IsPartOf(typeof(Server.Regions.InnRegion)) ||
|
||||||
|
pm.Region.IsPartOf(typeof(Server.Regions.HouseRegion)))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
BaseCreature mountToRetrieve = null;
|
BaseCreature mountToRetrieve = null;
|
||||||
|
|
||||||
for (int i = pm.Stabled.Count - 1; i >= 0; i--)
|
for (int i = pm.Stabled.Count - 1; i >= 0; i--)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
using Server;
|
using Server;
|
||||||
|
using Server.Mobiles;
|
||||||
|
|
||||||
namespace Server.Regions
|
namespace Server.Regions
|
||||||
{
|
{
|
||||||
|
|
@ -27,11 +28,23 @@ namespace Server.Regions
|
||||||
public override void OnEnter( Mobile m )
|
public override void OnEnter( Mobile m )
|
||||||
{
|
{
|
||||||
base.OnEnter( 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 )
|
public override void OnExit( Mobile m )
|
||||||
{
|
{
|
||||||
base.OnExit( 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