Protein Posted February 27, 2017 Share Posted February 27, 2017 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 More sharing options...
0 'Baggos' Posted February 27, 2017 Share Posted February 27, 2017 (edited) 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 February 27, 2017 by 'Baggos' Link to comment Share on other sites More sharing options...
0 Protein Posted February 27, 2017 Author Share Posted February 27, 2017 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 More sharing options...
0 'Baggos' Posted February 27, 2017 Share Posted February 27, 2017 (edited) 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 February 27, 2017 by 'Baggos' Link to comment Share on other sites More sharing options...
0 Protein Posted February 27, 2017 Author Share Posted February 27, 2017 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 More sharing options...
0 'Baggos' Posted February 27, 2017 Share Posted February 27, 2017 Topic can locked. Locked. Link to comment Share on other sites More sharing options...
Question
Protein
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