FrozenWarrior Posted October 29, 2015 Share Posted October 29, 2015 (edited) I need some help on adding buffer on l2jacis. I compiled l2jacis. I tried to put 2 got errors. Its really different than other packs.. I need a guide how to do that.. Edited October 29, 2015 by FrozenWarrior Quote Link to comment Share on other sites More sharing options...
0 Reborn12 Posted October 29, 2015 Share Posted October 29, 2015 (edited) I need some help on adding buffer on l2jacis. I compiled l2jacis. I tried to put 2 got errors. Its really different than other packs.. I need a guide how to do that.. What buffer are you using,? And show here the errors.. Edited October 29, 2015 by Reborn12 Quote Link to comment Share on other sites More sharing options...
0 SweeTs Posted October 29, 2015 Share Posted October 29, 2015 There is a buffer. Why you people want to add one more. Quote Link to comment Share on other sites More sharing options...
0 Reborn12 Posted October 29, 2015 Share Posted October 29, 2015 There is a buffer. Why you people want to add one more. because some ppls want another npcs..and its easy to add one more buffer :D Quote Link to comment Share on other sites More sharing options...
0 SweeTs Posted October 29, 2015 Share Posted October 29, 2015 Yeah, as you can see, its easy. Quote Link to comment Share on other sites More sharing options...
0 Reborn12 Posted October 29, 2015 Share Posted October 29, 2015 Yeah, as you can see, its easy. some people need some help..no one is master i was before some months a newbie but i have learn a lot of thinks based on acis...but always needs to take a help from another ppl...help another ppl is no problem but is better for training the old thinks :D Quote Link to comment Share on other sites More sharing options...
0 FrozenWarrior Posted October 29, 2015 Author Share Posted October 29, 2015 What buffer are you using,? And show here the errors.. http://www.maxcheaters.com/topic/157044-versuvio-acis-buffer-by-kderd64/ just build fails. i didnt find one i like just tried to add any. how do i spawn the one allready exists? whats the id? Quote Link to comment Share on other sites More sharing options...
0 SweeTs Posted October 29, 2015 Share Posted October 29, 2015 (edited) What about checking the xml, npcs folder last xml file? Or simply creating new one with proper type? :dat: 50008 Tryskell Edited October 29, 2015 by SweeTs Quote Link to comment Share on other sites More sharing options...
0 Tryskell Posted October 29, 2015 Share Posted October 29, 2015 I got the intention to rework aCis buffer - once again - based on Caparso design, but atm I'm busy with more important things to fix/commit. I sent a PM to Caparso about he is free to make its own version until I decide to work on (not before 2-3 weeks), but anyone can eventually adapt those HTMs. Simply ask him HTMs layout if you think you're able to edit it, I would be glad to commit it. Otherwise simply use "Tryskell" npcid 50008. If you don't like it, then :-[. Gl adapting any buffer. Quote Link to comment Share on other sites More sharing options...
0 svipben Posted October 29, 2015 Share Posted October 29, 2015 I can make buffer, 1 buff = 1 euro. Quote Link to comment Share on other sites More sharing options...
0 Reborn12 Posted October 29, 2015 Share Posted October 29, 2015 I can make buffer, 1 buff = 1 euro i think you are the smart here Quote Link to comment Share on other sites More sharing options...
0 Reborn12 Posted October 29, 2015 Share Posted October 29, 2015 http://www.maxcheaters.com/topic/157044-versuvio-acis-buffer-by-kderd64/ just build fails. i didnt find one i like just tried to add any. how do i spawn the one allready exists? whats the id? Add me on Skype Vasilis.kostidis i will add for you this buffer Quote Link to comment Share on other sites More sharing options...
0 Reborn12 Posted October 30, 2015 Share Posted October 30, 2015 (edited) http://www.maxcheaters.com/topic/157044-versuvio-acis-buffer-by-kderd64/ just build fails. i didnt find one i like just tried to add any. how do i spawn the one allready exists? whats the id? Create one new java file with name L2Buffer2Instance.java and paste this /* * 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 2, 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, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * http://www.gnu.org/copyleft/gpl.html */ package net.sf.l2j.gameserver.model.actor.instance; import java.util.StringTokenizer; import net.sf.l2j.gameserver.ai.CtrlIntention; import net.sf.l2j.gameserver.datatables.SkillTable; import net.sf.l2j.gameserver.model.actor.template.NpcTemplate; import net.sf.l2j.gameserver.network.serverpackets.ActionFailed; import net.sf.l2j.gameserver.network.serverpackets.MyTargetSelected; import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage; import net.sf.l2j.gameserver.network.serverpackets.SocialAction; import net.sf.l2j.gameserver.network.serverpackets.ValidateLocation; import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse; import net.sf.l2j.util.Rnd; /** * @author KDerD64 */ public final class L2Buffer2Instance extends L2NpcInstance { public L2Buffer2Instance(int objectId, NpcTemplate template) { super(objectId, template); } @Override public void onBypassFeedback(L2PcInstance player, String command) { StringTokenizer st = new StringTokenizer(command, " "); String actualCommand = st.nextToken(); int buffid = 0; int bufflevel = 1; String nextWindow = null; if (st.countTokens() == 3) { buffid = Integer.valueOf(st.nextToken()); bufflevel = Integer.valueOf(st.nextToken()); nextWindow = st.nextToken(); } else if (st.countTokens() == 1) buffid = Integer.valueOf(st.nextToken()); 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); showMessageWindow(player); player.broadcastPacket(mgc); showChatWindow(player, nextWindow); } } else if (actualCommand.equalsIgnoreCase("restore")) { player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp()); player.setCurrentCp(player.getMaxCp()); showMessageWindow(player); } else if (actualCommand.equalsIgnoreCase("cancel")) { player.stopAllEffects(); showMessageWindow(player); } else if (actualCommand.equalsIgnoreCase("figther")) { SkillTable.getInstance().getInfo(1243, 6).getEffects(this, player); SkillTable.getInstance().getInfo(1242, 3).getEffects(this, player); SkillTable.getInstance().getInfo(1240, 3).getEffects(this, player); SkillTable.getInstance().getInfo(1077, 3).getEffects(this, player); SkillTable.getInstance().getInfo(1068, 3).getEffects(this, player); SkillTable.getInstance().getInfo(1062, 2).getEffects(this, player); SkillTable.getInstance().getInfo(1048, 6).getEffects(this, player); SkillTable.getInstance().getInfo(1045, 6).getEffects(this, player); SkillTable.getInstance().getInfo(1040, 3).getEffects(this, player); SkillTable.getInstance().getInfo(1036, 2).getEffects(this, player); SkillTable.getInstance().getInfo(1035, 4).getEffects(this, player); SkillTable.getInstance().getInfo(1388, 3).getEffects(this, player); SkillTable.getInstance().getInfo(4402, 2).getEffects(this, player); SkillTable.getInstance().getInfo(4403, 3).getEffects(this, player); SkillTable.getInstance().getInfo(4404, 3).getEffects(this, player); SkillTable.getInstance().getInfo(4406, 3).getEffects(this, player); SkillTable.getInstance().getInfo(4405, 3).getEffects(this, player); SkillTable.getInstance().getInfo(1363, 1).getEffects(this, player); SkillTable.getInstance().getInfo(274, 1).getEffects(this, player); SkillTable.getInstance().getInfo(275, 1).getEffects(this, player); SkillTable.getInstance().getInfo(271, 1).getEffects(this, player); SkillTable.getInstance().getInfo(264, 1).getEffects(this, player); SkillTable.getInstance().getInfo(268, 1).getEffects(this, player); SkillTable.getInstance().getInfo(269, 1).getEffects(this, player); SkillTable.getInstance().getInfo(304, 1).getEffects(this, player); SkillTable.getInstance().getInfo(307, 1).getEffects(this, player); SkillTable.getInstance().getInfo(4391, 2).getEffects(this, player); } else if (actualCommand.equalsIgnoreCase("mage")) { SkillTable.getInstance().getInfo(4400, 3).getEffects(this, player); SkillTable.getInstance().getInfo(4401, 3).getEffects(this, player); SkillTable.getInstance().getInfo(4391, 2).getEffects(this, player); SkillTable.getInstance().getInfo(4392, 3).getEffects(this, player); SkillTable.getInstance().getInfo(4394, 6).getEffects(this, player); SkillTable.getInstance().getInfo(4395, 6).getEffects(this, player); SkillTable.getInstance().getInfo(4396, 2).getEffects(this, player); SkillTable.getInstance().getInfo(4397, 2).getEffects(this, player); SkillTable.getInstance().getInfo(1389, 3).getEffects(this, player); SkillTable.getInstance().getInfo(273, 1).getEffects(this, player); SkillTable.getInstance().getInfo(276, 1).getEffects(this, player); SkillTable.getInstance().getInfo(365, 1).getEffects(this, player); SkillTable.getInstance().getInfo(268, 1).getEffects(this, player); SkillTable.getInstance().getInfo(270, 1).getEffects(this, player); SkillTable.getInstance().getInfo(304, 1).getEffects(this, player); SkillTable.getInstance().getInfo(305, 1).getEffects(this, player); SkillTable.getInstance().getInfo(307, 1).getEffects(this, player); SkillTable.getInstance().getInfo(311, 1).getEffects(this, player); SkillTable.getInstance().getInfo(349, 1).getEffects(this, player); SkillTable.getInstance().getInfo(1363, 1).getEffects(this, player); SkillTable.getInstance().getInfo(364, 1).getEffects(this, player); SkillTable.getInstance().getInfo(1303, 2).getEffects(this, player); SkillTable.getInstance().getInfo(1243, 6).getEffects(this, player); SkillTable.getInstance().getInfo(1078, 6).getEffects(this, player); } else super.onBypassFeedback(player, command); } @Override public void onAction(L2PcInstance player) { if (this != player.getTarget()) { player.setTarget(this); player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel())); player.sendPacket(new ValidateLocation(this)); } else if (isInsideRadius(player, INTERACTION_DISTANCE, false, false)) { SocialAction sa = new SocialAction(this, Rnd.get(8)); broadcastPacket(sa); player.setCurrentFolkNPC(this); showMessageWindow(player); player.sendPacket(ActionFailed.STATIC_PACKET); } else { player.getAI().setIntention(CtrlIntention.INTERACT, this); player.sendPacket(ActionFailed.STATIC_PACKET); } } private void showMessageWindow(L2PcInstance player) { String filename = "data/html/buffer/" + getNpcId() + ".htm"; filename = getHtmlPath(getNpcId(), 0); NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); html.setFile(filename); html.replace("%objectId%", String.valueOf(getObjectId())); html.replace("%npcname%", getName()); player.sendPacket(html); } @Override public String getHtmlPath(int npcId, int val) { String pom = ""; if (val == 0) pom = "" + npcId; else pom = npcId + "-" + val; return "data/html/buffer/" + pom + ".htm"; } } then open eclipse go to net.sf.l2j.gameserver.model.actor.instance and paste this file there... now paste this npc into xml>>>npcs <npc id="50009" idTemplate="31324" name="AngelRafael" title="BUFFER"> <set name="level" val="80"/> <set name="radius" val="8"/> <set name="height" val="23"/> <set name="rHand" val="0"/> <set name="lHand" val="0"/> <set name="type" val="L2Buffer2"/> <set name="exp" val="0"/> <set name="sp" val="0"/> <set name="hp" val="2444.46819"/> <set name="mp" val="1345.8"/> <set name="hpRegen" val="7.5"/> <set name="mpRegen" val="2.7"/> <set name="pAtk" val="688.86373"/> <set name="pDef" val="295.91597"/> <set name="mAtk" val="470.40463"/> <set name="mDef" val="216.53847"/> <set name="crit" val="4"/> <set name="atkSpd" val="253"/> <set name="str" val="40"/> <set name="int" val="21"/> <set name="dex" val="30"/> <set name="wit" val="20"/> <set name="con" val="43"/> <set name="men" val="20"/> <set name="corpseTime" val="7"/> <set name="walkSpd" val="50"/> <set name="runSpd" val="120"/> <set name="dropHerbGroup" val="0"/> <set name="attackRange" val="40"/> <ai type="default" ssCount="0" ssRate="0" spsCount="0" spsRate="0" aggro="0" canMove="true" seedable="false"/> <skills> <skill id="4045" level="1"/> <skill id="4416" level="18"/> </skills> </npc> The go to your server //spawn 50009 and Have Fun Edited October 30, 2015 by Reborn12 Quote Link to comment Share on other sites More sharing options...
Question
FrozenWarrior
I need some help on adding buffer on l2jacis.
I compiled l2jacis.
I tried to put 2 got errors.
Its really different than other packs..
I need a guide how to do that..
Edited by FrozenWarriorLink to comment
Share on other sites
12 answers to this question
Recommended Posts
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.