Jump to content
  • 0

[Acis] Buffer


Protein

Question

Hi guys.

 

I add this buffer http://www.maxcheaters.com/topic/192244-simplest-buffer-acis/

 

so work all but I would to have a effect when I get Buffs....

I mean when I click on Wind Walk for example -> Get Buff + Skill Effect.

 

anyone know and can help me what Code I have to add ?

 

thanks, Protein

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Use this http://pastebin.com/q5Z4ve9W

 

 

The change for effect (Just to know):

        else if (actualCommand.equalsIgnoreCase("fighterset"))
        {
            for (int id : fighterbuffs)
            {
-                SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id)).getEffects(this, player);
+                L2Skill buff = SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id));
+                buff.getEffects(this, player);
+                player.broadcastPacket(new MagicSkillUse(this, player, id, buff.getLevel(), 0, 0));
            }
            showChatWindow(player);
        }

and this:

        if (actualCommand.equalsIgnoreCase("getbuff"))
        {
            if (buffid != 0)
            {
-                MagicSkillUse mgc = new MagicSkillUse(this, player, buffid, bufflevel, -1, 0);
-                SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(this, player);
-                player.broadcastPacket(mgc);
-                showMessageWindow(player);
+                L2Skill buff = SkillTable.getInstance().getInfo(buffid, SkillTable.getInstance().getMaxLevel(buffid));
+                buff.getEffects(this, player);
+                player.broadcastPacket(new MagicSkillUse(this, player, buffid, buff.getLevel(), 0, 0));
+                showMessageWindow(player);
                showChatWindow(player, nextWindow);
            }
        }
Edited by 'Baggos'
Link to comment
Share on other sites

  • 0

 

Use this http://pastebin.com/q5Z4ve9W

 

 

The change for effect (Just to know):

        else if (actualCommand.equalsIgnoreCase("fighterset"))
        {
            for (int id : fighterbuffs)
            {
-                SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id)).getEffects(this, player);
+                L2Skill buff = SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id));
+                buff.getEffects(this, player);
+                player.broadcastPacket(new MagicSkillUse(this, player, id, buff.getLevel(), 0, 0));
            }
            showChatWindow(player);
        }

and this:

        if (actualCommand.equalsIgnoreCase("getbuff"))
        {
            if (buffid != 0)
            {
-                MagicSkillUse mgc = new MagicSkillUse(this, player, buffid, bufflevel, -1, 0);
-                SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(this, player);
-                player.broadcastPacket(mgc);
-                showMessageWindow(player);
+                L2Skill buff = SkillTable.getInstance().getInfo(buffid, SkillTable.getInstance().getMaxLevel(buffid));
+                buff.getEffects(this, player);
+                player.broadcastPacket(new MagicSkillUse(this, player, buffid, buff.getLevel(), 0, 0));
+                showMessageWindow(player);
                showChatWindow(player, nextWindow);
            }
        }

 

first, thanks for answer and help!

I added this Code, effect working but I see your Code is now Buff Max Level so; my html before:

"bypass -h npc_%objectId%_getbuff 1078 6 data/html/buffer/9001.htm" (he buff but html open with number 6 inside)

 

I try to Change the Bypass to: "bypass -h npc_%objectId%_getbuff 1078" (get Buff and open same html but I cant buff any other buffs then) -> must click for each buff to NPC....

 

can you help me please?

 

thanks, Protein

Link to comment
Share on other sites

  • 0

I try to Change the Bypass to: "bypass -h npc_%objectId%_getbuff 1078" (get Buff and open same html but I cant buff any other buffs then) -> must click for each buff to NPC....

Keep this.. (No matters if you use this bypass or the old one. Now will work anyway). 

But for better "style" keep your change for all buffs.

Go to L2BufferInstance and remove this:

-                showChatWindow(player, nextWindow);
Edited by 'Baggos'
Link to comment
Share on other sites

  • 0

 

Keep this.. (No matters if you use this bypass or the old one. Now will work anyway). 

But for better "style" keep your change for all buffs.

Go to L2BufferInstance and remove this:

-                showChatWindow(player, nextWindow);

 

thanks work now perfectly ( but only with changed Bypass )

​PS: I think to share the Buffer when is finished. :)

 

Topic can locked.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...