To make the specials work please visit http://www.rune-server.org/showthread.php?t=135646
Purpose: Adding a special bar to a Spersific Wepon
Tested server: JC's 525 PVP server.
Open Actionsender.java
Find:
Code:
public void setInterfaceConfig(int interfaceId, int childId, boolean set) {
StaticPacketBuilder spb = new StaticPacketBuilder().setId(41)
.addLEInt((interfaceId << 16)+childId)
.addShort(ID++)
.addByteA(set ? 0 : 1);
player.getSession().write(spb.toPacket());
}
Declare
Code:
private int ID = 0;
Then search for "sendConfig2" and you will get this:
Code:
public void sendConfig2(int id, int value) {
player.getSession().write(new StaticPacketBuilder().setId(173)
.addShortA(id)
.addLEInt(value).toPacket());
}
Configs are the same as 508.
Set 300 to energy * 10.
Set 301 to 0 if not activated or 1 if activated.
This packet can also be used to switch between shops main/player stock and many other things.
*This Will not make the special work but only add the bar*
Credits: JC, d0nt v3ng and Ramsin