31 lines
772 B
C#
31 lines
772 B
C#
using Server;
|
|
using Server.Mobiles;
|
|
|
|
namespace Server.Regions
|
|
{
|
|
public class GreetingDungeonRegion : DungeonRegion
|
|
{
|
|
public GreetingDungeonRegion(string name, Map map, int priority, params Rectangle3D[] area)
|
|
: base(name, map, priority, area)
|
|
{
|
|
}
|
|
|
|
public override void OnEnter(Mobile m)
|
|
{
|
|
base.OnEnter(m);
|
|
if (m.Player)
|
|
{
|
|
m.SendMessage(0x47F, $"You entered <BASEFONT COLOR='#FF0000'>{this.Name}</BASEFONT>.");
|
|
}
|
|
}
|
|
|
|
public override void OnExit(Mobile m)
|
|
{
|
|
base.OnExit(m);
|
|
if (m.Player)
|
|
{
|
|
m.SendMessage(0x47F, $"You have left {this.Name}.");
|
|
}
|
|
}
|
|
}
|
|
}
|