kingarabian
2008-08-03 04:13:04
Ah lol, I need some help. Well runescape is full of packets. Each packet does a certain thing. Anyways when you click something, the server shows what the packet is for the thing you clicked. Anyway's im tryna make a 503 cache private server. When I click something its supposed to show what the packet is. However packet 163 always shows, for everything that you click. The code below is supposed to stop it and modify it to tell you what the real packet is.
So my problem is
I seriously have no idea whats wrong. It works fine if you replace buttonid to actionbuttonid. But I need it to be ButtonID.
case 163:
buttonId = HexToInt(p, packetSize);
Buttons b = new Buttons(p, buttonId);
b = null;
break;
public static int HexToInt(Player p, int len) {
int temp = 0;
int i = 1000;
for (int cntr = 0; cntr < len; cntr++) {
Player player;
int num = (p.inStream.buffer[cntr] & 0xff) * i;
temp += num;
if (i > 1)
i = 1;
}
return temp;
}
So my problem is
.\RS2E\Packets\ActionButtons.java:37: cannot find symbol
symbol : variable packetSize
location: class RS2E.Packets.ActionButtons
buttonId = HexToInt(p, packetSize);
^
1 error
Press any key to continue . . .
I seriously have no idea whats wrong. It works fine if you replace buttonid to actionbuttonid. But I need it to be ButtonID.