Loading...   


                        if(_CLIENT(mob2))                                       // client vs client
                        {
                                c1 = mob1->CastToClient();
                                c2 = mob2->CastToClient();
                                int c1_level = c1->GetLevel(); // Level of Client 1
                                int c2_level = c2->GetLevel(); // Level of Client 2

                                int c1_guild = c1->GuildID();
                                int c2_guild = c2->GuildID();

                                if// TheLieka:  If they are: Flagged for PvP; +/- 10 level; level 7+; not in the same guild: Allow Fight.
                                (
                                        ((c1_level + 10) >= c2_level) &&
                                        ((c2_level + 10) >= c1_level) &&
                                        ((c1_level >= 7) && (c2_level >= 7)) &&
                                        ((c1_guild != c2_guild) || (c1_guild == GUILD_NONE) || (c1_guild == 0) || (c2_guild == GUILD_NONE) || (c2_guild == 0)) &&
                                        c1->GetPVP() &&
                                        c2->GetPVP()
                        ) {
                                        return true;
                                } else if       // if they're dueling they can go at it
                                (
                                        c1->IsDueling() &&
                                        c2->IsDueling() &&
                                        c1->GetDuelTarget() == c2->GetID() &&
                                        c2->GetDuelTarget() == c1->GetID()
                                )
                                        return true;
                                else
                                        return false;
                        }

Raw Paste Data