public override void OnEnter(Mobile m) { Guilds.GuildType rType = GetVirtueOwner(); if (rType != Guilds.GuildType.Regular) { Guilds.GuildType mType = Server.Guilds.GuildType.Regular; if (m.Guild != null) { mType = m.Guild.Type; } if ((mType != Server.Guilds.GuildType.Regular || this is Server.Battle.BattleVirtueRegion) && mType != rType) { m.SendAsciiMessage(0x25, "You are now entering a protected " + rType.ToString() + " area. Your kind is not permitted here!"); } else { m.SendAsciiMessage("You are entering a protected " + rType.ToString() + " area."); } //CheckGuardCandidate( m ); //done in base.OnEnter } base.OnEnter(m); }
public override void OnExit(Mobile m) { Guilds.GuildType type = GetVirtueOwner(); if (type != Guilds.GuildType.Regular) { m.SendAsciiMessage("You are now leaving a protected " + type.ToString() + " area."); } base.OnExit(m); }