There are better ways to write your special bar...
Code:
public void setConfig2(int id, int state) {
client.outStream.createFrame(87);
client.outStream.writeWordBigEndian(id);
client.outStream.writeDWord_v1(state);
}
public void specialBar(int id, int i) {
client.outStream.createFrame(171);
client.outStream.writeByte(i);
client.outStream.writeWord(id);
client.flushOutStream();
}
Code:
client.outStream.writeByte(i);
// 1 to show, 0 to hide (could be the other way around .)
Usage:
Code:
setClientConfig(301, 0); // highlights the bar, 0 to non highlight, 1 to highlight
actionSender.setConfig2(300, 1000); // This is the bar filling, its just like the 508s, you would write it like, setConfig2(300, specialAmount * 10);
actionSender.specialBar(12323, 0);// Here on done is the special bar ids...
actionSender.specialBar(7574, 0);
actionSender.specialBar(7599, 0);
actionSender.specialBar(7549, 0);
actionSender.specialBar(8493, 0);
actionSender.specialBar(7499, 0);
Hopefully this helps...