Exemplo n.º 1
0
        private bool Disguised( PlayerMobile m, BaseKhaerosMobile guard )
        {
            if( guard is IKhemetar && m.RPTitle.ToLower().Contains( "khemetar" ) )
                return true;

            if( guard is IMhordul && m.RPTitle.ToLower().Contains( "mhordul" ) )
                return true;

            if( guard is ITyrean && m.RPTitle.ToLower().Contains( "tyrean" ) )
                return true;

            if( guard is IVhalurian && m.RPTitle.ToLower().Contains( "vhalurian" ) )
                return true;

            if( guard is IAzhuran && m.RPTitle.ToLower().Contains( "azhuran" ) )
                return true;

            if( guard is IAlyrian && m.RPTitle.ToLower().Contains( "alyrian" ) )
                return true;

            return false;
        }
Exemplo n.º 2
0
        /*public static bool ShouldAttack( Mobile attacker, Mobile defender )
        {

            return false;
        }*/
        public static bool IsDangerous( BaseCreature bc, BaseKhaerosMobile guard )
        {
            if ( bc.ControlMaster != null || bc.Controlled )
                return false;

            if( ( bc is IMediumPredator || bc is ILargePredator || bc is ISerpent ) && !bc.Controlled )
                return true;

            if( bc is IUndead && !( guard is Soldier && guard.Nation == Nation.Khemetar && ( bc is ClericScorpion || bc is LesserClericScorpion || bc is GreaterClericScorpion ) ) )
                return true;

            if( bc.Team != guard.Team )
                return true;

            if( bc is DisplacerBeast ||
                bc is IBrigand ||
                bc is GelatinousBlobSpawn ||
                bc is JellyOozeSpawn ||
                bc is BlackPuddingSpawn ||
                bc is IGoblin )
                return true;

            if (bc.FightMode != FightMode.Aggressor && bc.FightMode != FightMode.FindThreat && bc.FightMode != FightMode.None)
                return true;

            if( bc is IInsularii )
                return true;

            return false;
        }