[Question] Hp and Mana Pointer / Recv

10/22/2009 09:46 QBassiQ#1
Hey could anyone tell me what's the hp pointer and mana pointer on private servers?
If i search myself my PC crashes

How can i see what's inside the Recv packets(what type/number)

Thanks
10/22/2009 11:01 MoepMeep#2
Don't do hp/mp stuff over memory, sucks :p

Well, and I can't understand your second question.
10/22/2009 13:42 QBassiQ#3
thanks Moep

if (packet[2] == 0x32)
{
//player appear
DWORD id;
memcpy((void*)&id,(void*)((DWORD)packet+3),4);
char name[255]={0};
memcpy((void*)&name,(void*)((DWORD)packet+7),16);
printf("Player: [ID: %d Name: %s]\n",id,name);

memcpy((void*)&(Player[i].Classe),(void*)((DWORD)packet+7+aftername+1),1);

How i get that offset and the size
10/22/2009 14:58 Mahatma#4
0x45 is the packet header 4 hp/mp
sniff it by yourself^^
10/22/2009 16:10 MoepMeep#5
Quote:
Originally Posted by QBassiQ View Post
thanks Moep

if (packet[2] == 0x32)
{
//player appear
DWORD id;
memcpy((void*)&id,(void*)((DWORD)packet+3),4);
char name[255]={0};
memcpy((void*)&name,(void*)((DWORD)packet+7),16);
printf("Player: [ID: %d Name: %s]\n",id,name);

memcpy((void*)&(Player[i].Classe),(void*)((DWORD)packet+7+aftername+1),1);

How i get that offset and the size
well, thats easy :p
First of all, give the buffer out byte for byte, something like that:
Code:
for(i=0;i<=size;i++)
{
      cout << buf[i];
}
you gonna see something like "2F 16 A3 B7..." I'm not sure about the packet structure(too lazy to look it up :p) but it's something like size = 2bytes, header =1 byte. As I said, not quite sure :p Just test with some known packets.
The offset is the position where the data starts. In your example packet+3 means, the data you want starts after the 3. byte if I remember right, just test it ^.^

Just count the bytes for the size
10/22/2009 17:11 QBassiQ#6
@Moep thanks u helped me very much