Secret Experience

Secret Experience (https://secretexperience.net/index.php)
-   [Lineage] Java Mods (https://secretexperience.net/forumdisplay.php?f=636)
-   -   [L2JFree] Fix para PvP em Summon (https://secretexperience.net/showthread.php?t=28318)

mend3 13-12-2010 09:49 AM

Fix para PvP em Summon
 
Bom, apoooooooooooosto que mta gente já sofreu, sofre ou ainda vai sofrer com a famosa história de ganhar pvp matando summon (aqueles de Necro, SPH, HK e etc), então, pra alívio de vcs, vou postar a correção disso aqui. Coisa MUUUUITO simples.

No arquivo L2PcInstance.java, procure o método onKillUpdatePvPKarma(L2Character target). Quando achar o método, procure estas linhas:
Código:

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

Após estas linhas, adicione:
Código:

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

Um pouco mais abaixo, procure estas linhas:
Código:

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

Logo após, adicione:
Código:

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

Pronto (:

Créditos: eu msm ;D

lordvenancio 13-12-2010 07:03 PM

Isso é pra bloquear de ganhar o pvp do sumom ?? Fiquei confuso suahsa ! :biglaugh:

Lanterna-Verde 13-12-2010 07:37 PM

@mend3
Thanks. Good Share

@lordvenancio
Citação:

[...]a famosa história de ganhar pvp matando summon (aqueles de Necro, SPH, HK e etc)
[...]vou postar a correção disso aqui.

mend3 14-12-2010 01:31 AM

Esse fix evita que o player ganhe pvp ao matar summon de alguém que esteja flag. Só isso ^^

Ele pode dar 500 kills, nao vai ganhar nenhum.


Horários baseados na GMT -3. Agora são 10:49 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.