(C++) HEX codes good for server programming

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
jimowns
Posts: 62
Joined: Thu Sep 28, 2006 5:28 pm
Location: X-Gamers

(C++) HEX codes good for server programming

Post 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
jimowns
Posts: 62
Joined: Thu Sep 28, 2006 5:28 pm
Location: X-Gamers

Post by jimowns »

please can someone help me with this .
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post 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.
jimowns
Posts: 62
Joined: Thu Sep 28, 2006 5:28 pm
Location: X-Gamers

Post 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 .
Coolkat88
Posts: 30
Joined: Tue Oct 03, 2006 3:14 pm

Post 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?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post 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.
jimowns
Posts: 62
Joined: Thu Sep 28, 2006 5:28 pm
Location: X-Gamers

Post 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 :)
Post Reply