Jump to content

Question

Posted (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 by FrozenWarrior

12 answers to this question

Recommended Posts

  • 0
Posted (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 by Reborn12
  • 0
Posted

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

  • 0
Posted

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?

  • 0
Posted (edited)

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

 

50008 Tryskell

Edited by SweeTs
  • 0
Posted

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.

  • 0
Posted

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

  • 0
Posted (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 by Reborn12

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Bought the interface source for the 557 protocol from him. Everything works as described, no issues so far. Smooth deal, would recommend.
    • Add try version of protocol 563 https://drive.google.com/file/d/1l1QnyFGXxX_c98FNUgXHFmDsIzZCrVc6/view?usp=drive_link
    • WTS Adena Stock 2.6kkk Titan 78 Sub Sagitarius 76 nobless Hirophant 78 Sub Cardinal 78 nobless   discord : nhr0711
    • We are not another "open-close" project. LOE is a long-term Essence server that has been live for over a year — NewAge x2 is our brand-new world, and it will never be wiped. 🗺 STAGED WORLD PROGRESSION Here is what kills most servers: no-lifers hit the cap in three days, everyone else logs in to a finished race. On LOE the world unlocks stage by stage, every ~2 weeks — new locations, new bosses, new gear ceiling. The server grows as one. Start on day one or day ten — you are still in the race. ✨ WHAT MAKES US DIFFERENT Subclass system on Essence — a full dedicated questline, unique for this platform. Your build, your rules. Talent system — three branches: tank, damage, farm. Two players, same class, different characters. Hero skills and deep character customization. Fair progression — power comes from playing, not from a credit card. x2 rates — the classic Essence pace without the grind wall. 📚 WE DOCUMENTED EVERYTHING 25,000+ items, every class with full skill tables, monsters, drop rates, quests, locations. Check the server before you even download it: loe.promo/wiki — no other project gives you this. 📋 SERVER INFO Platform: Lineage 2 Essence · Rates: x2 Open Beta: July 24 — test the stages and the subclass questline before launch Grand Opening: July 31, 20:00 GMT+3 Site & wiki in English — international players welcome 🔒 YOUR NICKNAME IS BEING TAKEN RIGHT NOW Reservation is already open. On the 31st the crowd arrives — the name you have carried through every server for years may simply be gone. Lock it in 30 seconds: Equal start for everyone. See you in Elcardia — July 31, 20:00 GMT+3. Questions? Drop them below — the team reads this thread daily.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..