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


  • Posts

    • Οχι για ενα merge script για 2 λογους   1. οτι καποιος ζηταει κατι, του λες τιμη, σου δινει λιγοτερα και μετα σου λεει θα παρεις τα αλλα στην επομενη πληρωμη κ εξαφανιζεται   2. οτι εσυ του εξηγεις πως δουλευει κατι, του λες τιμη, συμφωνει, σου λεει μπες κανε μου αυτο τζαμπα λιγο για να προχωρησουμε στο merge, του λες οχι πληρωσε με πρωτα για αυτο κ μετα. σου λεει καντο και σε πληρωνω, του το κανεις, σε γραφει για 10 μερες στο chat και ξαφνικα βλεπεις [WTB] δικο του στο maxc κ οταν τον ρωτας λεει "ναι δικο μου ειναι κ εχω αρχισει ηδη και με αλλον dev".    Αρα καταλαβαινεις τι παιζει εδω, επισης τα λεφτα δεν μ τα εδωσε ακομη κ δεν τα θελω απλα τονιζω τον ορκισμο του "scam" κ οχι αυτα τα τοπικ που εκανα εγω ban trades με 15 ατομα απο τα 1,500 που εχω δουλεψει απο το 2014.
    • Όλα αυτά για ένα merge script ρε παιδιά ? 😅  
    • Έχει ψωμάκι εδώ      
    • afto pou akoma 12.5 xronia meta exeis akoma apopsi gia pragmata pou den gnwrizeis den allazei ?
    • 5 χρονια σε περιμενω για καφε 😞 επισης αμα ειναι να γνωρισω κοντο κοστουμαρισμενο με ζελε στο μαλλι δεν θελω.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..