#W# Region work. Spawn tweaks. Greeted TownRegion.
This commit is contained in:
parent
65b4b11616
commit
428272196b
3 changed files with 50 additions and 5 deletions
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue