Legendary Battlemage
- Joined
- Mar 7, 2013
- Messages
- 686
- Reaction score
- 43
Hi can you help me with this change?
what happens is that the job had a pirate Buccanner megaRevamp update in RED
and now change the way to get energybuff
Now this gauge is shown, but not how to achieve this: c
i use v144 and my energy packet is
what happens is that the job had a pirate Buccanner megaRevamp update in RED
and now change the way to get energybuff
Now this gauge is shown, but not how to achieve this: c
i use v144 and my energy packet is
Code:
public static byte[] giveEnergyChargeTest(int bar, int bufflength) {
return giveEnergyChargeTest(-1, bar, bufflength);
}
public static byte[] giveEnergyChargeTest(int cid, int bar, int bufflength) {
if (true) {
return CWvsContext.enableActions();
}
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
if (cid == -1) {
mplew.writeShort(SendPacketOpcode.GIVE_BUFF.getValue());
} else {
mplew.writeShort(SendPacketOpcode.GIVE_FOREIGN_BUFF.getValue());
mplew.writeInt(cid);
}
PacketHelper.writeSingleMask(mplew, MapleBuffStat.ENERGY_CHARGE);
mplew.writeShort(0);
mplew.write(0);
mplew.writeInt(Math.min(bar, 10000));
mplew.writeLong(0L);
mplew.write(0);
mplew.writeInt(bar >= 10000 ? bufflength : 0);
mplew.write(0);
mplew.write(6);
return mplew.getPacket();
}