- extensive framework for dueling, tournaments, and events

- IP address command implementor
- miscellaneous minor fixes
This commit is contained in:
mark 2012-04-22 05:37:16 +00:00
parent c52504151b
commit 599b2af6d5
82 changed files with 11920 additions and 63 deletions

View file

@ -1103,6 +1103,11 @@ namespace Server.Factions
if ( victimState == null )
return;
#region Dueling
if ( victim.Region.IsPartOf( typeof( Engines.ConPVP.SafeZone ) ) )
return;
#endregion
if ( killer == victim || killerState.Faction != victimState.Faction )
ApplySkillLoss( victim );

View file

@ -1,6 +1,7 @@
using System;
using System.Collections;
using Server;
using Server.Mobiles;
using Server.Regions;
namespace Server.Factions
@ -29,6 +30,15 @@ namespace Server.Factions
if ( m.AccessLevel >= AccessLevel.Counselor || Contains( oldLocation ) )
return true;
if ( m is PlayerMobile ) {
PlayerMobile pm = (PlayerMobile)m;
if ( pm.DuelContext != null ) {
m.SendMessage( "You may not enter this area while participating in a duel or a tournament." );
return false;
}
}
return ( Faction.Find( m, true, true ) != null );
}