SRL Archive - Java Help and Tutorials

Private server java help.


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.



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.

Krazy_Meerkat

2008-10-23 04:03:22

Replace buttonid to actionbuttonid, then make buttionid = actionbuttionid?

kingarabian

2008-10-23 16:41:57

From: Krazy_Meerkat
Replace buttonid to actionbuttonid, then make buttionid = actionbuttionid?


EDIT:Oh lol wtf, this was kinda a bit a long time ago ;). I fixed it.