Jump to content

[Share] Fix PvP Summon


SnYpEr®

Recommended Posts

Hi guys, this is my first share with the community. Hope this can help who need

 

Well, I bet many people have suffered, is suffering or will suffer from the famous problem of pvp summon (the one where a character summons a pet and are killing it for points), so here's the fix for the problem. It's very simple.

 

First, find the following method onKillUpdatePvPKarma(L2Character target) in L2PcInstance.java. When u found, search these lines:

L2PcInstance targetPlayer = null;
        if (target instanceof L2PcInstance) {
            targetPlayer = (L2PcInstance) target;
        } else if (target instanceof L2Summon) {
            targetPlayer = ((L2Summon) target).getOwner();
        }

After, add this code:

 else if (target instanceof L2SummonInstance) { // Check if target is a summon
            return;
        }

 

Now, a little more down, search this:

if (isCursedWeaponEquiped()) {
    CursedWeaponsManager.getInstance().increaseKills(_cursedWeaponEquipedId);
            return;
        }

And after, add this:

        if(target instanceof L2Summon || target instanceof L2SummonInstance){
            return;
        }

 

It's done (:

 

by mend3

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...