Secret Experience

Secret Experience (https://secretexperience.net/index.php)
-   [L2J] Dúvidas (https://secretexperience.net/forumdisplay.php?f=37)
-   -   [Interlude] AIO Buff time. (https://secretexperience.net/showthread.php?t=34985)

Dandilo 20-12-2015 03:43 PM

AIO Buff time.
 
Hello community,

I want to know if there is any way to make the buffs used by AIO has a different time from normal buffs with changes in Java.

I managed to get them to be in party (L2Skill.java -.> TARGET_ONE case), provided they are used by AIO, but could not change the time.

//PT
Olá pessoal,

Eu preciso saber se existe uma forma de eu fazer com que os buff usado pelo AIO tenham o time/buffduration diferente dos demais, mas isso com alteração no JAVA.

Eu consegui fazer com que os buffs usados pelo AIO sejam em TARGET_PARTY, mas não consegui fazer nenhuma alteração referente ao tempo.

Vejam onde foi feita a alteração pra que os buffs sejam em party, quando usados pelo AIO.
Código:

case TARGET_ONE:
                        {
                                boolean canTargetSelf = false;
                                switch (_skillType)
                                {
                                        case BUFF:
                                        case HEAL:
                                        case HOT:
                                        case HEAL_PERCENT:
                                        case MANARECHARGE:
                                        case MANAHEAL:
                                        case NEGATE:
                                        case CANCEL_DEBUFF:
                                        case REFLECT:
                                        case COMBATPOINTHEAL:
                                        case SEED:
                                        case BALANCE_LIFE:
                                                canTargetSelf = true;
                                                break;
                                }
+                                if (isAioSkill() && activeChar.IsAio))
+                                {
+                                  if (activeChar.isInParty())
+                                        {
+                                                // Get a list of Party Members
+                                                for (L2PcInstance partyMember : activeChar.getParty().getPartyMembers())
+                                                {
+                                                        if (partyMember == null || partyMember == player)
+                                                                continue;
+                                                               
+                                                        if (addCharacter(activeChar, player, 900, false))
+                                                                targetList.add(partyMember);
+                                                        if (addCharacter(activeChar, player, 900, false))
+                                                                targetList.add(partyMember.getPet());
+                                                }
+                                        }


Desde já agradeço.


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

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