Ir para conteúdo
  • Cadastre-se
  • 0

BOTÃO PARA DELETAR BUFF 1 POR 1


Robert-Downey

Pergunta

ALGUEM PODERIA ME AJUDAR POR UMA OPÇÃO NO NPC BUFFER DE DELETAR OS BUFFS 1 POR 1? 

TEM ALGO SEMELHANTE NOS COMANDOS ADM

 

public static void showMainPage(Player player, Creature creature, int page)

{

// Load static htm.

final NpcHtmlMessage html = new NpcHtmlMessage(0);

html.setFile("data/html/admin/char_effects.htm");

html.replace("%name%", creature.getName());

 

int row = 0;

 

// Generate data.

final Pagination<AbstractEffect> list = new Pagination<>(Arrays.stream(creature.getAllEffects()), page, PAGE_LIMIT_14);

for (AbstractEffect effect : list)

{

list.append(((row % 2) == 0 ? "<table width=280 bgcolor=000000><tr>" : "<table width=280><tr>"));

list.append("<td width=220><a action=\"bypass -h admin_effect remove ", effect.getSkill().getId(), "\">", effect.getSkill().getName(), "</a></td><td width=60>", (effect.getSkill().isToggle()) ? "toggle" : effect.getPeriod() - effect.getTime() + "s", "</td>");

list.append("</tr></table><img src=\"L2UI.SquareGray\" width=280 height=1>");

 

row++;

}

 

list.generateSpace(20);

list.generatePages("bypass admin_effect %page%");

 

html.replace("%content%", list.getContent());

player.sendPacket(html);

}

 

Editado por Robert-Downey

Genius, Billionaire, Playboy, Philanthropist

 

Link para o comentário
Compartilhar em outros sites

1 resposta a esta questão

Posts recomendados

  • 0

Did u try to implement, double click on buff to remove?

Player.java
Add it on the end of the File before the final "}"

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

RequestBypassToserver.java
 

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

Like this:image.png.e46002b068992a6f9d558877a6c51b84.png

And add this interface.u to your system, in case you use custom interface, you can compile your own interface.
 

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

and after OnEvent

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

Credits @Celestine

Chat gpt or other AI's can break tour code. don't use it.

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...



×
×
  • 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.