#W# Commands Decorate/GenTeleporter/SignParser tweaked. Added some regions. Mount/Unmount for regions.

This commit is contained in:
WarrentyExpired 2026-08-06 12:31:31 -04:00
parent 3045c83799
commit 8fca4205a0
110 changed files with 974 additions and 68626 deletions

View file

@ -0,0 +1,36 @@
using System;
using System.Xml;
using Server;
using Server.Mobiles;
namespace Server.Regions
{
public class BusinessRegion : GuardedRegion
{
public BusinessRegion( XmlElement xml, Map map, Region parent ) : base( xml, map, parent )
{
}
public override void OnEnter( Mobile m )
{
base.OnEnter( m );
if ( m != null && m.Player )
{
m.SendMessage( "Welcome to <BASEFONT COLOR='#FFD700'>{0}</BASEFONT>", this.Name );
}
if ( m != null && m.Player )
{
Server.Commands.StableMountCommand.ForceDismountAndStore((PlayerMobile)m);
}
}
public override void OnExit( Mobile m )
{
base.OnExit( m );
if ( m != null && m.Player )
{
Server.Commands.RetrieveMountCommand.AutoRemountPlayer((PlayerMobile)m);
}
}
}
}

View file

@ -0,0 +1,28 @@
using System;
using System.Xml;
using Server;
using Server.Mobiles;
namespace Server.Regions
{
public class CaveRegion : DungeonRegion
{
public CaveRegion( XmlElement xml, Map map, Region parent ) : base( xml, map, parent )
{
}
public override void OnEnter( Mobile m )
{
base.OnEnter( m );
if ( m != null && m.Player )
{
m.SendMessage( "You have entered a dark cave" );
}
}
public override void OnExit( Mobile m )
{
base.OnExit( m );
}
}
}

View file

@ -44,5 +44,36 @@ namespace Server.Regions
return base.CanUseStuckMenu( m );
}
public override void OnEnter( Mobile m )
{
base.OnEnter( m );
if ( m != null && m.Player )
{
m.SendMessage( "You have entered the <BASEFONT COLOR='#FF0000'>{0}</BASEFONT>", this.Name);
Timer.DelayCall( TimeSpan.FromMilliseconds( 100 ), delegate()
{
if ( m != null && m.Alive )
{
Server.Commands.StableMountCommand.ForceDismountAndStore((PlayerMobile)m);
}
});
}
}
public override void OnExit( Mobile m )
{
base.OnExit( m );
if ( m != null && m.Player )
{
Timer.DelayCall( TimeSpan.FromMilliseconds( 100 ), delegate()
{
if ( m != null && m.Alive )
{
Server.Commands.RetrieveMountCommand.AutoRemountPlayer((PlayerMobile)m);
}
});
}
}
}
}
}