As title said, need help be pointed the way towards fixing this skill! I am trying to copy how the Xenon Gauge works but its quite complicated. Where does these gauges come from? Can't seen to find the source
Printable View
As title said, need help be pointed the way towards fixing this skill! I am trying to copy how the Xenon Gauge works but its quite complicated. Where does these gauges come from? Can't seen to find the source
Make sure your EnergyCharged buffstats are correct, and that your attacks are calling the giveBuff packet which charges the energy bar. I must also say that Energy Bar is one of the more difficult packets to get fully working, as it is one of the 6 few buffs in the game that is a Two State Temporary Stat buff. Also, foreign buff packets just show the effects to the other players, you don't send those to yourself.
I would but I wouldn't be able to know unless the gauge is actually visible ! I always like a challenge
The gauge visuals are client-sided. If you are of the correct job, using the correct skills and items etc, then the empty gauge will appear (unless newer versions send it through a packet, doubt it'd change though). The energy will charge through packets otherwise.
Yeah I figure its client sided. Well here's the packet for Energy Charge
The thing is if I am not seeing the gauge and assuming this is correct I am not sending it to the client then? How would I go about that?Code:ENERGY_CHARGE(0x2000000, 8),
Is there not any empty energy charge bars on your screen? There should be. That is also not a packet, that is a buffstat (or what nexon calls a Character Temporary Stat). You use that mask to update the energy bar when you send the giveBuff packet (though Odin probably uses some weird packet for it because it is a special buff).
no sir, trying telling you that. There's not even an empty gauge.
On the side note I believe I found the packet that gets send out to the client, but it doesnt.
But I don't believe it won't matter if the gauge is visually not there, (Both empty/Full) just nothingnessCode: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();
}