AvatarsConquest/Scripts/Regions/InnRegion.cs
2026-07-07 13:42:31 -04:00

47 lines
986 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.Xml;
using Server;
using Server.Commands;
using Server.Mobiles;
using Server.Spells;
namespace Server.Regions
{
public class InnRegion : TownRegion
{
public InnRegion( XmlElement xml, Map map, Region parent ) : base( xml, map, parent )
{
}
public override bool AllowHousing( Mobile from, Point3D p )
{
return false;
}
public override bool NoMounts( Mobile from, Point3D p )
{
return true;
}
public override bool AllowHarmful( Mobile from, Mobile target )
{
return false;
}
public override TimeSpan GetLogoutDelay( Mobile m )
{
return TimeSpan.Zero;
}
public override void OnEnter( Mobile m )
{
base.OnEnter( m );
if ( m is PlayerMobile )
{
m.SendMessage( "You have entered the safty of {0}.", this.Name);
}
}
}
}