SnYpEr® Posted December 13, 2010 Posted December 13, 2010 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 Quote
xepimetheus Posted December 13, 2010 Posted December 13, 2010 :/ read the Rules Code with small Lines will be Deleted Quote
xtremex Posted December 17, 2010 Posted December 17, 2010 thanks for share, these code is usefull for faction servers.. easy code Quote
Sido Posted December 21, 2010 Posted December 21, 2010 :/ 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... Quote
FighterBoss Posted December 21, 2010 Posted December 21, 2010 this one i find useful... +1 If someone shares small codes BUT for fix a bug,it is for sure usefull. So no prob. Good job dude Quote
Recommended Posts
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.