Page 1 of 1

(C++) HEX codes good for server programming

Posted: Tue Oct 24, 2006 1:53 pm
by jimowns
hey
my englis is not so good but i will do my best .



I am, as it happens, busy with program in C++.
I have already, however, what knowledge in C++ is but now I busy a private server of rpg game roseonline.
someone can give me a little explanation how I can these HEX read code and in source code can make.
here you've a example to makeing hex codes in source code
hex code
Closed shop (CHACKED):
[3]<<7c3-
[3]>>7c3- da a0
Closed shop window (CHACKED):
[3]<<7c3-

this hex code in source =
source code

Code: Select all

bool Ctest:: pakcloseshop( Ctest1* test12, Cpacket*p )
{ 
BEGINPACKET( pak, 0x7c3 ); 
ADDWORD( pak, test12->clientid ); 
SendToVisible( &pak, thisclient ); 
return true; 
}

i hope you can help me , how i can make hex codes in source codes .



thanks in advance

Posted: Wed Oct 25, 2006 3:31 pm
by jimowns
please can someone help me with this .

Posted: Wed Oct 25, 2006 4:58 pm
by vitek
No offense intended, but I don't think anyone understands what you are asking. I would have answered you the other day if I had known.

Posted: Wed Oct 25, 2006 7:29 pm
by jimowns
ow :s

how can i read this HEX codes with bytes and can makeing it in source codes .
can someone tell me with this exaple how his doing it .

Hex code:

Closed shop (CHACKED):
[3]<<7c3-
[3]>>7c3- da a0
Closed shop window (CHACKED):
[3]<<7c3-



in a source code:

Code: Select all

bool Ctest:: pakcloseshop( Ctest1* test12, Cpacket*p ) 
{ 
BEGINPACKET( pak, 0x7c3 ); 
ADDWORD( pak, test12->clientid ); 
SendToVisible( &pak, thisclient ); 
return true; 
} 

i hope you can understand what i em mean , my english is realy bad but i do my best .

Posted: Wed Oct 25, 2006 7:40 pm
by Coolkat88
jimowns wrote:how can i read this HEX codes with bytes and can makeing it in source codes .

Hex code:

Closed shop (CHACKED):
[3]<<7c3-
[3]>>7c3- da a0
Closed shop window (CHACKED):
[3]<<7c3-



in a source code:

Code: Select all

bool Ctest:: pakcloseshop( Ctest1* test12, Cpacket*p ) 
{ 
BEGINPACKET( pak, 0x7c3 ); 
ADDWORD( pak, test12->clientid ); 
SendToVisible( &pak, thisclient ); 
return true; 
} 
are you trying to turn hex code into source code.. as in.. reverse engineering?

Posted: Wed Oct 25, 2006 8:33 pm
by vitek
I think he is trying to read a value back out of his packet stream. He is showing us the method that writes the packet, but has no idea how to read it back. This is just my guess.

I don't think anyone here knows what the code you are posting is doing... Nobody knows what the macro BEGINPACKET and ADDWORD are doing, or where they are coming from. Without knowing at least that information, we have zero chance of being able to give you the answer you are looking for.

Posted: Thu Oct 26, 2006 10:16 am
by jimowns
Coolkat88 wrote:
jimowns wrote:how can i read this HEX codes with bytes and can makeing it in source codes .

Hex code:

Closed shop (CHACKED):
[3]<<7c3-
[3]>>7c3- da a0
Closed shop window (CHACKED):
[3]<<7c3-



in a source code:

Code: Select all

bool Ctest:: pakcloseshop( Ctest1* test12, Cpacket*p ) 
{ 
BEGINPACKET( pak, 0x7c3 ); 
ADDWORD( pak, test12->clientid ); 
SendToVisible( &pak, thisclient ); 
return true; 
} 
are you trying to turn hex code into source code.. as in.. reverse engineering?
ok , i try looking for other forum and posted there , if i know how to do it i send it here the information .



thank you to trying to help me :)