#W# Removed duplicate spawner. Added FarmRegion

This commit is contained in:
WarrentyExpired 2026-08-18 19:19:57 -04:00
parent eb7d215ba3
commit 4344a81180
4 changed files with 45 additions and 5 deletions

View file

@ -68,6 +68,7 @@ namespace Server.Items
if ( reg is Server.Regions.TownRegion ||
reg is Server.Regions.GuardedRegion ||
reg is Server.Regions.DungeonRegion ||
reg is Server.Regions.FarmRegion ||
reg is Server.Regions.HouseRegion )
{
this.Delete();

View file

@ -0,0 +1,36 @@
using System;
using System.Xml;
using Server;
using Server.Mobiles;
namespace Server.Regions
{
public class FarmRegion : BaseRegion
{
public FarmRegion( 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);
}
}
}
}