Quote:
Originally Posted by Real~Death
i really hate asking but caan somone explain a little of whats going on here?i know i should learn java/read a book & if i dont know what it says i should leave it alone.
if(packetID(b)==0x3ec) {
int a=18+b[17]&0xff;
a+=(b[a]&0xff)+1;
if(b[a]==0) a++;
if(b[a+1]==35) {
int l=(b[a]&0xff);
String c="";
for(int i=a+2; i<a+l+1; i++)
c+=(char)b[i];
all honesty i understand prolly none of whats here.
::EDIT::i can log-in fine lie works,but can someone tell me what im supost to be changing.i thought it was the structure(bytes in the packet) was changed(read the packet itself changed 0x3ec is a different packet).sorry for asking questions,i just dont understand wat changed??thanks for any help
IM NOT ASKING FOR WHAT "TO DO",im asking what am i looking for?
|
Yes that is the part I ment, it is the second part I was talking about. Look int 18 which isn't 18 anylonger it's well I wont say that is the whole part about you learning it :P lol look I will tell you HOW to get it.
Stat packet logging for the 0x3ec basicly /filter 0x3ec, then type something and log out so do you don't get spammed with packets. in that packet find your text, where does it start? what byte? well locate it and see for how many bytes it goes, how to locate it? A easy way is to go to hex edit and type the same text then you will see in the hex what it is and then you can see it in the packet easy. Now look at what byte it starts at right? Also notice the byte BEFORE the text starts, the byte before is the length of the text, so like 09 would be 9 bytes, does it look correct? well it should so what you do in the above you posted.
if(packetID(b)==0x3ec) {
int a=18+b[17]&0xff;
a+=(b[a]&0xff)+1;
if(b[a]==0) a++;
if(b[a+1]==35) {
int l=(b[a]&0xff);
String c="";
for(int i=a+2; i<a+l+1; i++)
c+=(char)b[i];
you say wher eit says 18 + b[17] ? it's telling that it reads of the first byte of text and all the way till how many bytes it is, and since in b17 it says how many letters/bytes/diggits it understands how long the text is.
All you do is change byte 18 to wherever the text starts and byte17 to the byte before the byte of text starts, for example text starts at byte 40 so then byte 18 is 40 and byte 17 is 39.
Oh and my post sucks in english since I'm very busy :P that is also why I haven't helped you in a while ;) and cya really gotta go.