vladislav4k Posted September 16, 2012 Posted September 16, 2012 Hello, I really need a Buffer for Interlude, in Java, not a Python! No difficult, only one event for buff or more. Thanks
0 Vkouk Posted September 16, 2012 Posted September 16, 2012 find me buffs id you need and i will do it
0 Dulens. Posted September 16, 2012 Posted September 16, 2012 http://maxcheaters.com/forum/index.php?topic=222420.0 one of the best java buffers.
0 vladislav4k Posted September 16, 2012 Author Posted September 16, 2012 http://maxcheaters.com/forum/index.php?topic=222420.0 one of the best java buffers. Yes, but when I install in my server, compil all ok. But when I enter in world, I have critical eror
0 vladislav4k Posted September 16, 2012 Author Posted September 16, 2012 find me buffs id you need and i will do it I need an example of how to do, I myself will add the necessary buffs. Or with this pre-buffs, and preferably with a pet
0 Dulens. Posted September 16, 2012 Posted September 16, 2012 Yes, but when I install in my server, compil all ok. But when I enter in world, I have critical eror Which project are u use;
0 Vkouk Posted September 16, 2012 Posted September 16, 2012 I need an example of how to do, I myself will add the necessary buffs. Or with this pre-buffs, and preferably with a pet ok then you need cancel button too and restore stats of character too?
0 vladislav4k Posted September 16, 2012 Author Posted September 16, 2012 Which project are u use; I use rus poj http://silentium.by/index.php, and download: http://subversion.assembla.com/svn/silentium-interlude/ In buffer i rewrite imports.
0 vladislav4k Posted September 16, 2012 Author Posted September 16, 2012 ok then you need cancel button too and restore stats of character too? If you can do this, yes. Because i know C++, little Java, i need example, and i can do this one =)
0 Vkouk Posted September 16, 2012 Posted September 16, 2012 Instance: /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package net.sf.l2j.gameserver.model.actor.instance; import java.util.StringTokenizer; import net.sf.l2j.gameserver.datatables.SkillTable; import net.sf.l2j.gameserver.model.L2Skill; import net.sf.l2j.gameserver.model.actor.L2Npc; import net.sf.l2j.gameserver.templates.chars.L2NpcTemplate; /** * @author Ventic * */ public class L2BuffInstance extends L2Npc { public L2BuffInstance(int objectId, L2NpcTemplate template) { super(objectId, template); } @Override public void onBypassFeedback(L2PcInstance player, String command) { if (command.equals("buff")) { String val = command.substring(5); StringTokenizer st = new StringTokenizer(val); if (st.countTokens() != 3) { System.out.println("At least 3 tokens needed."); return; } int skillId = Integer.parseInt(st.nextToken()); int skillLevel = Integer.parseInt(st.nextToken()); L2Skill s = SkillTable.getInstance().getInfo(skillId, skillLevel); if (s == null) { System.out.println(" Wrong skill id "+skillId+"."); return; } s.getEffects(player, player); } else { super.onBypassFeedback(player, command); } } @Override public String getHtmlPath(int npcId, int val) { String pom = ""; if (val == 0) pom = "" + npcId; else pom = npcId + "-" + val; return "data/html/mods/buffer/" + pom + ".htm"; } } Html: <html> <body> Hi there,<br> Please choose the buff that you want to get effected with it:<br> <a action="bypass -h npc_%objectId%_buff 1085 3">Acumen</a></br> <a action="bypass -h npc_%objectId%_buff 1085 3">Acumen</a></br> <a action="bypass -h npc_%objectId%_buff 1085 3">Acumen</a></br> </html> </body>
0 vladislav4k Posted September 16, 2012 Author Posted September 16, 2012 Instance: /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package net.sf.l2j.gameserver.model.actor.instance; import java.util.StringTokenizer; import net.sf.l2j.gameserver.datatables.SkillTable; import net.sf.l2j.gameserver.model.L2Skill; import net.sf.l2j.gameserver.model.actor.L2Npc; import net.sf.l2j.gameserver.templates.chars.L2NpcTemplate; /** * @author Ventic * */ public class L2BuffInstance extends L2Npc { public L2BuffInstance(int objectId, L2NpcTemplate template) { super(objectId, template); } @Override public void onBypassFeedback(L2PcInstance player, String command) { if (command.equals("buff")) { String val = command.substring(5); StringTokenizer st = new StringTokenizer(val); if (st.countTokens() != 3) { System.out.println("At least 3 tokens needed."); return; } int skillId = Integer.parseInt(st.nextToken()); int skillLevel = Integer.parseInt(st.nextToken()); L2Skill s = SkillTable.getInstance().getInfo(skillId, skillLevel); if (s == null) { System.out.println(" Wrong skill id "+skillId+"."); return; } s.getEffects(player, player); } else { super.onBypassFeedback(player, command); } } @Override public String getHtmlPath(int npcId, int val) { String pom = ""; if (val == 0) pom = "" + npcId; else pom = npcId + "-" + val; return "data/html/mods/buffer/" + pom + ".htm"; } } Html: <html> <body> Hi there,<br> Please choose the buff that you want to get effected with it:<br> <a action="bypass -h npc_%objectId%_buff 1085 3">Acumen</a></br> <a action="bypass -h npc_%objectId%_buff 1085 3">Acumen</a></br> <a action="bypass -h npc_%objectId%_buff 1085 3">Acumen</a></br> </html> </body> OMG! Senks? very very senks! Its realy cool. s.getEffects(player, player); its but to pet?
0 vladislav4k Posted September 16, 2012 Author Posted September 16, 2012 you want for pet too? Yes, how function to buff pet?
0 vladislav4k Posted September 16, 2012 Author Posted September 16, 2012 let me check it I ask you about, how I can buff my pet(what algoritm or functions)
Question
vladislav4k
Hello, I really need a Buffer for Interlude, in Java, not a Python! No difficult, only one event for buff or more. Thanks
18 answers to this question
Recommended Posts