Jump to content
  • 0

Acis Buffer


stayros

Question

4 answers to this question

Recommended Posts

  • 0

If you are using the latest revision, just log in game and type //spawn 50008.  This is the integrated acis buffer. 

 

If you want to change NPC template, go to: gameserver/data/xml/npcs/50000-50999, find the buffer and change  Template, Name, Title.

If you want to change HTML files (for menus) go to gameserver/data/html/mods/buffer.

If you want to add normal buffer wait a bit.

Link to comment
Share on other sites

  • 0

If you want add normal buffer, add it.

 

http://www.maxcheaters.com/topic/115825-simple-instanced-buffer/

 

You can ONLY take get if statement regarding getbuff. So, you make 2 in 1.

Edited by SweeTs
Link to comment
Share on other sites

  • 0

If you want a 2 in 1 buffer:

Index: java/net/sf/l2j/gameserver/model/actor/instance/L2BufferInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2BufferInstance.java	(revision 1)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2BufferInstance.java	(working copy)
@@ -29,6 +29,7 @@
 import net.sf.l2j.gameserver.model.actor.L2Character;
 import net.sf.l2j.gameserver.model.actor.L2Summon;
 import net.sf.l2j.gameserver.model.actor.template.NpcTemplate;
+import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
 import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage;
 
 public class L2BufferInstance extends L2NpcInstance
@@ -198,6 +199,36 @@
 			}
 			showManageSchemeWindow(player);
 		}
+		else if (currentCommand.startsWith("getbuff"))
+		{
+			int buffid = 0;
+			int bufflevel = 1;
+			int page = 0;
+			if (st.countTokens() == 3)
+			{
+				buffid = Integer.valueOf(st.nextToken());
+				bufflevel = Integer.valueOf(st.nextToken());
+				page = Integer.valueOf(st.nextToken());
+			}
+			else if (st.countTokens() == 2)
+			{
+				buffid = Integer.valueOf(st.nextToken());
+				page = Integer.valueOf(st.nextToken());
+			}
+			
+			if (buffid != 0)
+			{
+				MagicSkillUse mgc = new MagicSkillUse(this, player, buffid, bufflevel, 5, 0);
+				SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(this, player);
+				player.broadcastPacket(mgc);
+			}
+			
+			NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
+			html.setFile(getHtmlPath(getNpcId(), page));
+			html.replace("%objectId%", String.valueOf(getObjectId()));
+			html.replace("%npcname%", getName());
+			player.sendPacket(html);
+		}
 		
 		super.onBypassFeedback(player, command);
 	}
 

You taking the buff like this:

<a action="bypass -h npc_%objectId%_getbuff buffId buffLevel page">Buff</a>

Where "page" is the custom buffs page you should create for the buffs list in data\html\mods\buffer.

The buffLevel is optional.

Edited by Tessa
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.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock