#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

@ -145,6 +145,14 @@
<rect x="1359" y="727" width="112" height="136" />
<rect x="1465" y="745" width="28" height="64" />
</region>
<region type="FarmRegion" priority="60" name="the Ranch House" >
<rect x="794" y="760" width="22" height="27" />
<rect x="813" y="772" width="12" height="12" />
</region>
<region type="FarmRegion" priority="60" name="the Farm House" >
<rect x="819" y="842" width="27" height="18" />
<rect x="846" y="842" width="12" height="18" />
</region>
<region type="CaveRegion" priority="50" name="Cave System">
<rect x="2368" y="528" width="856" height="228" />
<rect x="2368" y="756" width="337" height="228" />

View file

@ -125,11 +125,6 @@
*|EvilMage:skeletalmage:imp:brigand:gazer:skeletalknight:zombie:spectre:orc:slime:wraith||||||2738|450|0|1|5|10|-1|4|1|1|0|0|0|0|0
## Ashen Maw
# Level 1
*|carpenter||||||714|738|5|1|5|10|8|4|1|1|0|0|0|0|0
*|carpenter||||||723|738|5|1|5|10|8|4|1|1|0|0|0|0|0
*|animaltrainer|rancher|||||801|765|0|1|5|10|10|4|1|1|1|0|0|0|0
*|farmer||||||821|780|0|1|5|10|5|2|1|1|0|0|0|0|0
*|farmer||||||853|847|0|1|5|10|4|2|1|1|0|0|0|0|0
*|gazer:giantspider:harpy:headlessone:mongbat:strongmongbat:hellhound:hellcat:corpser||||||3121|88|1|1|5|10|-1|5|1|2|0|0|0|0|0
*|gazer:giantspider:harpy:headlessone:mongbat:strongmongbat:hellhound:hellcat:corpser||||||3123|110|2|1|5|10|-1|5|1|2|0|0|0|0|0
*|gazer:giantspider:harpy:headlessone:mongbat:strongmongbat:hellhound:hellcat:corpser||||||3068|100|1|1|5|10|-1|5|1|2|0|0|0|0|0

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