#W# Region work. Spawn tweaks. Greeted TownRegion.

This commit is contained in:
WarrentyExpired 2026-08-13 13:50:42 -04:00
parent 65b4b11616
commit 428272196b
3 changed files with 50 additions and 5 deletions

View file

@ -9,5 +9,21 @@ namespace Server.Regions
public TownRegion( 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( "Welcom to <BASEFONT COLOR='#3BB143'>{0}</BASEFONT>", this.Name );
}
}
public override void OnExit( Mobile m )
{
if (m != null && m.Player )
{
m.SendMessage( "You have left <BASEFONT COLOR='#3BB143'>{0}</BASEFONT>", this.Name );
}
}
}
}
}