20-12-2015, 03:43 PM
|
#1 (permalink)
|
|
Membro - General
Registrado em: Mar 2009
Posts: 246
Agradecido 114 Vezes em 62 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Nome Real: Dândilo Richard.
|
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.
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.
|
|
|