Ir para conteúdo
  • Cadastre-se
  • 0

GETBUFF PHANTOM PLAYERS


admFirewall

Pergunta

Boa noite, estou adaptando algumas coisas pro meu phantom e estou tentando adaptar a opção de buff que tem no fake do Elfo, porém não estou conseguindo de forma alguma.

Mod do Elfo:

O conteúdo está oculto, favor efetuar login ou se cadastrar!

 

Partes que eu peguei:

FakeHelpers.java

public static int[][] getMageBuffs() {
  return new int[][] { { 1204, 2 }, // wind walk
  { 1040, 3 }, // shield
  { 1035, 4 }, // Mental Shield
  { 4351, 6 }, // Concentration
  { 1036, 2 }, // Magic Barrier
  { 1045, 6 }, // Bless the Body
  { 1303, 2 }, // Wild Magic
  { 1085, 3 }, // acumen
  { 1062, 2 }, // besekers
  { 1059, 3 }, // empower
  { 1389, 3 }, // Greater Shield
  { 273, 1 }, // dance of the mystic
  { 276, 1 }, // dance of concentration
  { 365, 1 }, // Dance of Siren
  { 264, 1 }, // song of earth
  { 268, 1 }, // song of wind
  { 267, 1 }, // Song of Warding
  { 349, 1 }, // Song of Renewal
  { 1413, 1 }, // Magnus\' Chant
  { 4703, 4 } // Gift of Seraphim
  };
  }

 

 

ArchmageAI.java

@Override

  protected int[][] getBuffs()
  {
  return FakeHelpers.getMageBuffs();
 

}

 

A minha dúvida é se ainda esta faltando algo.. alguém poderia ajudar?

 

 

 

 

2ym840g.png

Link para o comentário
Compartilhar em outros sites

3 respostass a esta questão

Posts recomendados


  • 0
 

Talvez esteja faltando esse método

O conteúdo está oculto, favor efetuar login ou se cadastrar!

Tentei adaptar essa linha mas não consigo, tenho problema na parte do:

    protected void applyDefaultBuffs() {
        for (Integer skillid : this.getBuffs()) {
            try {
                L2Skill skill = SkillTable.getInstance().getInfo(skillid, SkillTable.getInstance().getMaxLevel(skillid));
                if (skill == null) continue;
                skill.getEffects(this._fakePlayer, this._fakePlayer);
            }
            catch (Exception e) {
                e.printStackTrace();
            }
        }
    }

 

E o meu phantom é com base no Phantom Town dessa pack:

 

https://www.l2jbrasil.com/index.php?/topic/126491-l2jmega-pré-configurado/

2ym840g.png

Link para o comentário
Compartilhar em outros sites

  • 0

Refaz baseado somente no robot que da Certo...

No entanto o nick so deu uma luz la eh muito basico esccrevi mais umas 1mil linhas pra esse mod e ficou no final usando 1% processamento pra 1k fakes tretando mas tbm depende do dedicado ...

mas se vc misturar nao vai dar certo mesmo mano
posta o print dos erros ai pra mim poder ajudar melhor


    protected void applyDefaultBuffs()
    {

         //@formatter:off
        if (_fakePlayer == null) { return;}
        for (int[] buff : getBuffs())
        {
            try
            {
                Map<Integer, L2Effect> activeEffects = new HashMap<>();
                for (L2Effect e : _fakePlayer.getAllEffects())
                {
                    if (e ==  null){continue;}

                    if (e.getEffectType() == L2EffectType.NONE){continue;}    //@formatter:on
                    
                    if (e.getEffectType() == L2EffectType.BUFF)
                    {
                        activeEffects.put(e.getSkill().getId(), e);
                    }
                }
                
                if (!activeEffects.containsKey(buff[0]))
                {
                    SkillTable.getInstance().getInfo(buff[0], buff[1]).getEffects(_fakePlayer, _fakePlayer);
                }
                else
                {
                    if ((activeEffects.get(buff[0]).getAbnormalTime() - activeEffects.get(buff[0]).getTime()) <= 20)
                    {
                        SkillTable.getInstance().getInfo(buff[0], buff[1]).getEffects(_fakePlayer, _fakePlayer);
                    }
                }
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
        }
    }

" 100 Flexões, 100 Abdominais, 100 Agachamentos e 10 Quilômetros de Corrida !!! " - Todos os dias.

L2Peniel

Link para o comentário
Compartilhar em outros sites

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.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Processando...
  • Registre-se

    Faça parte da maior e  mais antigas comunidades sobre Lineage2 da América Latina.





×
×
  • Criar Novo...

Important Information

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.