public static MaplePacket giveEnergyChargeTest(int bar) {
        MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();

        mplew.writeShort(SendPacketOpcode.GIVE_BUFF);
        long mask = 0;
        mask |= MapleBuffStat.ENERGY_CHARGE.getValue();
        mplew.writeLong(mask);
        mplew.writeLong(0);
        mplew.writeShort(0);
        mplew.writeShort(bar); // 0 = no bar, 10000 = full bar
        mplew.writeLong(0);
        mplew.writeInt(0);
        mplew.writeShort(0);
        mplew.write(0);

        return mplew.getPacket();
    }