Jump to content
  • 0

Dear cheaters...


Question

Posted

Hey candyes, i am looking for a voice command buffer. (Without Npc),  but html's and functions must be like `With npc`. If someone know this, let's me know.

Thanks and have a blessed days!

13 answers to this question

Recommended Posts

  • 0
Posted

You can try something like this and change it into whataver you want (this one is with item).

Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java
===================================================================
--- java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java (revision 10)
+++ java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java (working copy)
@@ -20,8 +20,10 @@
 import net.sf.l2j.Config;
 import net.sf.l2j.gameserver.communitybbs.CommunityBoard;
 import net.sf.l2j.gameserver.datatables.AdminCommandAccessRights;
+import net.sf.l2j.gameserver.datatables.SkillTable;
 import net.sf.l2j.gameserver.handler.AdminCommandHandler;
 import net.sf.l2j.gameserver.handler.IAdminCommandHandler;
+import net.sf.l2j.gameserver.handler.itemhandlers.BuffsCustom;
 import net.sf.l2j.gameserver.model.L2Object;
 import net.sf.l2j.gameserver.model.L2World;
 import net.sf.l2j.gameserver.model.actor.L2Npc;
@@ -90,6 +92,14 @@
  
  ach.useAdminCommand(_command, activeChar);
  }
+            else if (_command.startsWith("buffCommand") && BuffsCustom.check(activeChar))
+            {
+                String idBuff = _command.substring(12);
+                int parseIdBuff = Integer.parseInt(idBuff);
+                SkillTable.getInstance().getInfo(parseIdBuff, SkillTable.getInstance().getMaxLevel(parseIdBuff)).getEffects(activeChar, activeChar);
+                BuffsCustom.sendHtml(activeChar);
+            }
+
  else if (_command.startsWith("player_help "))
  {
  playerHelp(activeChar, _command.substring(12));
Index: java/net/sf/l2j/gameserver/handler/ItemHandler.java
===================================================================
--- java/net/sf/l2j/gameserver/handler/ItemHandler.java (revision 10)
+++ java/net/sf/l2j/gameserver/handler/ItemHandler.java (working copy)
@@ -22,6 +22,7 @@
 import net.sf.l2j.gameserver.handler.itemhandlers.BeastSpiritShot;
 import net.sf.l2j.gameserver.handler.itemhandlers.BlessedSpiritShot;
 import net.sf.l2j.gameserver.handler.itemhandlers.Book;
+import net.sf.l2j.gameserver.handler.itemhandlers.BuffsCustom;
 import net.sf.l2j.gameserver.handler.itemhandlers.Calculator;
 import net.sf.l2j.gameserver.handler.itemhandlers.Elixir;
 import net.sf.l2j.gameserver.handler.itemhandlers.EnchantScrolls;
@@ -60,6 +61,7 @@
  registerItemHandler(new BeastSpice());
  registerItemHandler(new BeastSpiritShot());
  registerItemHandler(new BlessedSpiritShot());
+ registerItemHandler(new BuffsCustom());
  registerItemHandler(new Book());
  registerItemHandler(new Calculator());
  registerItemHandler(new Elixir());
Index: java/net/sf/l2j/gameserver/handler/itemhandlers/BuffsCustom.java
===================================================================
--- java/net/sf/l2j/gameserver/handler/itemhandlers/BuffsCustom.java (revision 0)
+++ java/net/sf/l2j/gameserver/handler/itemhandlers/BuffsCustom.java (working copy)
@@ -0,0 +1,31 @@
+package net.sf.l2j.gameserver.handler.itemhandlers;
+
+import net.sf.l2j.gameserver.handler.IItemHandler;
+import net.sf.l2j.gameserver.model.actor.L2Playable;
+import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
+import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
+import net.sf.l2j.gameserver.model.zone.ZoneId;
+import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage;
+
+public class BuffsCustom implements IItemHandler
+{
+    @Override
+    public void useItem(L2Playable playable, ItemInstance item, boolean forceUse)
+    {    
+        if (!(playable instanceof L2PcInstance))
+            return;
+        
+        final L2PcInstance player = (L2PcInstance) playable;
+        
+        sendHtml(player);
+    }
+    public static boolean check(L2PcInstance p)
+    {        
+        return p.isInsideZone(ZoneId.PEACE) && !p.isInCombat() && !p.isInOlympiadMode() && !p.isDead();
+    }
+    public static void sendHtml(L2PcInstance player){
+        NpcHtmlMessage html = new NpcHtmlMessage(0);
+        html.setFile("data/html/mods/buffs/buff.htm");
+        player.sendPacket(html);
+    }
+}


Index: data/html/mods/buffs/buff.htm
===================================================================
--- data/html/mods/buffs/buff.htm (revision 0)
+++ data/html/mods/buffs/buff.htm (working copy)
@@ -0,0 +1,79 @@
+<html>
+ <body>
+ <center>
+ <img src=L2UI.SquareGray width=300 height=1><br>
+ <img src=L2UI_CH3.herotower_deco width=256 height=32>
+ <font color=LEVEL>Buff Menu</font>
+ <table width=170>
+ <tr>
+ <td valign=top><img src=icon.skill1204 width=32 height=32 align=left></td>
+ <td><button value="Wind Walk" action="bypass -h buffCommand 1204" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ <td valign=top><img src=icon.skill1068 width=32 height=32 align=left></td>
+ <td><button value="Might" action="bypass -h buffCommand 1068" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ </tr><tr><td></td></tr>
+ <tr>
+ <td valign=top><img src=icon.skill1040 width=32 height=32 align=left></td>
+ <td><button value="Shield" action="bypass -h buffCommand 1040" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ <td valign=top><img src=icon.skill1035 width=32 height=32 align=left></td>
+ <td><button value="Mental Shield" action="bypass -h buffCommand 1035" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ </tr><tr><td></td></tr>
+ <tr>
+ <td valign=top><img src=icon.skill1045 width=32 height=32 align=left></td>
+ <td><button value="Blessed Body" action="bypass -h buffCommand 1045" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ <td valign=top><img src=icon.skill1048 width=32 height=32 align=left></td>
+ <td><button value="Blessed Soul" action="bypass -h buffCommand 1048" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ </tr><tr><td></td></tr>
+ <tr>
+ <td valign=top><img src=icon.skill1036 width=32 height=32 align=left></td>
+ <td><button value="Magic Barrier" action="bypass -h buffCommand 1036" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ <td valign=top><img src=icon.skill1078 width=32 height=32 align=left></td>
+ <td><button value="Concentration" action="bypass -h buffCommand 1078" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ </tr><tr><td></td></tr>
+ <tr>
+ <td valign=top><img src=icon.skill1062 width=32 height=32 align=left></td>
+ <td><button value="Berserker Spirit" action="bypass -h buffCommand 1062" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ <td valign=top><img src=icon.skill1268 width=32 height=32 align=left></td>
+ <td><button value="Vampiric Rage" action="bypass -h buffCommand 1268" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ </tr><tr><td></td></tr>
+ <tr>
+ <td valign=top><img src=icon.skill1085 width=32 height=32 align=left></td>
+ <td><button value="Acumen" action="bypass -h buffCommand 1085" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ <td valign=top><img src=icon.skill1059 width=32 height=32 align=left></td>
+ <td><button value="Empower" action="bypass -h buffCommand 1059" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ </tr><tr><td></td></tr>
+ <tr>
+ <td valign=top><img src=icon.skill1077 width=32 height=32 align=left></td>
+ <td><button value="Focus" action="bypass -h buffCommand 1077" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ <td valign=top><img src=icon.skill1242 width=32 height=32 align=left></td>
+ <td><button value="Death Whisper" action="bypass -h buffCommand 1242" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ </tr><tr><td></td></tr>
+ <tr>
+ <td valign=top><img src=icon.skill1086 width=32 height=32 align=left></td>
+ <td><button value="Haste" action="bypass -h buffCommand 1086" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ <td valign=top><img src=icon.skill1240 width=32 height=32 align=left></td>
+ <td><button value="Guidance" action="bypass -h buffCommand 1240" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ </tr><tr><td></td></tr>
+ <tr>
+ <td valign=top><img src=icon.skill1388 width=32 height=32 align=left></td>
+ <td><button value="Greater Might" action="bypass -h buffCommand 1388" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td><br>
+ <td valign=top><img src=icon.skill1389 width=32 height=32 align=left></td>
+ <td><button value="Greater Shield" action="bypass -h buffCommand 1389" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td><br>
+ </tr><tr><td></td></tr>
+ <tr>
+ <td valign=top><img src=icon.skill1087 width=32 height=32 align=left></td>
+ <td><button value="Agility" action="bypass -h buffCommand 1087" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ <td valign=top><img src=icon.skill1303 width=32 height=32 align=left></td>
+ <td><button value="Wild Magic" action="bypass -h buffCommand 1303" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ </tr><tr><td></td></tr>
+ <tr>
+ <td valign=top><img src=icon.skill1259 width=32 height=32 align=left></td>
+ <td><button value="Resist Shock" action="bypass -h buffCommand 1259" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ <td valign=top><img src=icon.skill1397 width=32 height=32 align=left></td>
+ <td><button value="Clarity" action="bypass -h buffCommand 1397" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
+ </tr>
+ </table>
+ <br><br>
+ <img src="L2UI_CH3.onscrmsg_pattern01_2" width=300 height=32 align=left align=left>
+ </center>
+ </body>
+</html>
Index: data/xml/items/5500-5599.xml
===================================================================
--- data/xml/items/5500-5599.xml (revision 10)
+++ data/xml/items/5500-5599.xml (working copy)
@@ -633,7 +633,7 @@
  <set name="weight" val="10" />
  <set name="price" val="1" />
  <set name="is_dropable" val="false" />
- <set name="handler" val="Book" />
+ <set name="handler" val="BuffsCustom" />
  </item>
  <item id="5589" type="EtcItem" name="Energy Stone">
  <set name="default_action" val="skill_reduce" />
  • 0
Posted
21 minutes ago, FactorX said:

Thanks..but i want a buff sets...Mages/Fighters. Then 1 by 1. Like a normal buffer. but in voice command.

Get the Buffer you like (with NPC) move npc custom bypasses to another handler and remove npc_%objcectId%* stuff

then make a voice command that open the main html

  • 0
Posted

I have this

<html><body><title>Buffer Global</title>
<center>
<center><img src="l2font-e.replay_logo-e" width=250 height=80></center>
<br><br>
<img src="L2UI.SquareGray" width=295 height=1>
<br>
<table width=280>
    <tr>
	    <td align=center><img src=icon.skill1036 width=32 height=32></td>
	    <td align=center><img src=icon.skill0364 width=32 height=32></td>
	    <td align=center><img src=icon.skill0311 width=32 height=32></td>
	    <td align=center><img src=icon.skill1391 width=32 height=32></td>
    </tr>
    <tr><td></td></tr>
    <tr>
		<td><button value="Buff" action="bypass -h npc_%objectId%_Chat 2" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
		<td><button value="Song" action="bypass -h npc_%objectId%_Chat 3" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
		<td><button value="Dance" action="bypass -h npc_%objectId%_Chat 4" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
		<td><button value="Chant" action="bypass -h npc_%objectId%_Chat 5" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
    </tr>
</table>
<br>
<table width=280>
    <tr>
		<td align=center><img src=icon.skill1331 width=32 height=32></td>
	    <td align=center><img src=icon.skill1259 width=32 height=32></td>
	    <td align=center><img src=icon.skill0440 width=32 height=32></td>
	    <td align=center><img src=icon.skill1056 width=32 height=32></td>
    </tr>
    <tr><td></td></tr>
    <tr>
		<td><button value="Special" action="bypass -h npc_%objectId%_chat 7" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
		<td><button value="Protection" action="bypass -h npc_%objectId%_chat 8" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
		<td><button value="Recovery" action="bypass -h npc_%objectId%_heal" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
		<td><button value="Cancel" action="bypass -h npc_%objectId%_cleanup" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
    </tr>
</table>
<br>
<table width=150>
    <tr>
	    <td align=center><img src=icon.skill0426 width=32 height=32></td>
	    <td align=center><img src=icon.skill0427 width=32 height=32></td>
    </tr>
    <tr><td></td></tr>
    <tr>
		<td><button value="Fight" action="bypass -h fbuffCommand" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
		<td><button value="Mage" action="bypass -h npc_%objectId%_mbuff" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
    </tr>
</table>
<br>
<img src="L2UI.SquareGray" width=295 height=1>
</center>
</body>
</html>

How i can put in buffcommand?

  • 0
Posted
7 minutes ago, FactorX said:

I have this


<html><body><title>Buffer Global</title>
<center>
<center><img src="l2font-e.replay_logo-e" width=250 height=80></center>
<br><br>
<img src="L2UI.SquareGray" width=295 height=1>
<br>
<table width=280>
    <tr>
	    <td align=center><img src=icon.skill1036 width=32 height=32></td>
	    <td align=center><img src=icon.skill0364 width=32 height=32></td>
	    <td align=center><img src=icon.skill0311 width=32 height=32></td>
	    <td align=center><img src=icon.skill1391 width=32 height=32></td>
    </tr>
    <tr><td></td></tr>
    <tr>
		<td><button value="Buff" action="bypass -h npc_%objectId%_Chat 2" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
		<td><button value="Song" action="bypass -h npc_%objectId%_Chat 3" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
		<td><button value="Dance" action="bypass -h npc_%objectId%_Chat 4" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
		<td><button value="Chant" action="bypass -h npc_%objectId%_Chat 5" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
    </tr>
</table>
<br>
<table width=280>
    <tr>
		<td align=center><img src=icon.skill1331 width=32 height=32></td>
	    <td align=center><img src=icon.skill1259 width=32 height=32></td>
	    <td align=center><img src=icon.skill0440 width=32 height=32></td>
	    <td align=center><img src=icon.skill1056 width=32 height=32></td>
    </tr>
    <tr><td></td></tr>
    <tr>
		<td><button value="Special" action="bypass -h npc_%objectId%_chat 7" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
		<td><button value="Protection" action="bypass -h npc_%objectId%_chat 8" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
		<td><button value="Recovery" action="bypass -h npc_%objectId%_heal" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
		<td><button value="Cancel" action="bypass -h npc_%objectId%_cleanup" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
    </tr>
</table>
<br>
<table width=150>
    <tr>
	    <td align=center><img src=icon.skill0426 width=32 height=32></td>
	    <td align=center><img src=icon.skill0427 width=32 height=32></td>
    </tr>
    <tr><td></td></tr>
    <tr>
		<td><button value="Fight" action="bypass -h fbuffCommand" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
		<td><button value="Mage" action="bypass -h npc_%objectId%_mbuff" width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>
    </tr>
</table>
<br>
<img src="L2UI.SquareGray" width=295 height=1>
</center>
</body>
</html>

How i can put in buffcommand?

HTML alone is useless

  • 0
Posted (edited)
<td><button value="Fight" action="bypass width=65 height=19 back="L2UI_CH3.br_bar2_cp1" fore="L2UI_CH3.br_bar2_hp"></td>

 

somethink like that?

Edited by FactorX
  • 0
Posted (edited)
action="bypass -h buffCommand idSkill"

you can make a custom window for use your extra buff kile special,ressist,other and set fighter,mage

Edited by tazerman2

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.

×
×
  • Create New...