Jump to content
  • 0

L2Jacis Buffer


FrozenWarrior

Question

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 FrozenWarrior
Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

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 by Reborn12
Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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?

Link to comment
Share on other sites

  • 0

What about checking the xml, npcs folder last xml file? Or simply creating new one with proper type? :dat:

 

50008 Tryskell

Edited by SweeTs
Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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 by Reborn12
Link to comment
Share on other 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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.



  • Posts

    • rename the l2.bin into l2.exe
    • L2LIVE.PRO- Dynamic Mid-rates Essence Seven Signs GRAND OPENING - July 5, 20:00 GMT+3 (EEST) TEST SERVER IS OPEN - COME AND CHECK IT OUT TODAY! Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu   Server description * EXP/SP: Dynamic (x1- x100 based on your level, *before* Sayha and EXP buffs * Adena: x50 / Item Drop: x10 / Fishing EXP increased / Attribute EXP increased * Simplified gameplay to stay in the loop while not spending hours and hours farming * Starter Pack containing very useful items for beginners * MP replenishing potions with auto-consumption * No overpowered donations L2LIVE shop * All spellbook coupons, pet spellbook coupons and master books are sold via Game Assistant * Additionally you can buy SP pouches, enchanted talismans, pet training guides and various other consumables for Adena and L-Coin * More items such as cloaks, more talismans, agathions, belts, pendants, enchantment scrolls of various grades, evolution stones, etc will be added! Shop server as a shortcut, and all retail-like ways of earning items are still here! L-Coins * Drops with small change and in random amounts from Lv60+ monsters  * All raidbosses drop random amount of L-Coin Pouches generating up to 420 Lcoin per unit. **Grand Olympiad and Events** * Grand Olympiad is held week day * Format is 1v1, unlimited weekly fights  * Heroes are declared weekly at Sunday * There are three automated events - TvT, CTF and Deathmatch, running at evenings * Orc Fortress, Battle with Balok, Keber Hunter, Archievements Box, Daily Gift Calendar provisional events are active too Custom user commands * .offlineplay command, your character will keep playing till death or server restart * .offlineshop command, keeps your shop sitting until all items are purchased * .apon / .apoff - enable/disable HP/MP autoconsume And lots of other small improvements are waiting for you!   Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu
    • I can use this folder system for High Five offline server?   The folder does not have a l2.exe file.   Thank you very much if anyone can help me.   https://drive.google.com/file/d/13kU-g_4JJ-sP-kg2F7pqkUOVKmQdubFm/view
  • Topics

×
×
  • Create New...