Jump to content

Recommended Posts

Posted

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

Posted

:/ read the Rules  Code with small Lines will be Deleted

this is not nice since some share may be nice,

this one i find useful...

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock