Valhalla Legends Forums Archive | Battle.net Bot Development | [c++]quick and simple packet question

AuthorMessageTime
mentalCo.
ok what would a packet look like that sent the text "hello" into a channel. like the actual data sent.
June 9, 2004, 9:16 PM
hismajesty
[code]FF 0E 0A 00 48 65 6C 6F 00 ....Hello.[/code]

Edit: Forgot an 'L' when posting, fixed down below.
June 9, 2004, 9:27 PM
mentalCo.
EXACTLY what i was looking for. thanks mate.
June 9, 2004, 9:28 PM
UserLoser.
[quote author=hismajesty[yL] link=board=17;threadid=7173;start=0#msg64377 date=1086816427]
[code]FF 0E 0A 00 48 65 6C 6F 00 ....Hello.[/code]
[/quote]

Try again
June 9, 2004, 11:30 PM
iago
[quote author=UserLoser. link=board=17;threadid=7173;start=0#msg64403 date=1086823813]
[quote author=hismajesty[yL] link=board=17;threadid=7173;start=0#msg64377 date=1086816427]
[code]FF 0E 0A 00 48 65 6C 6F 00 ....Hello.[/code]
[/quote]

Try again
[/quote]

Looks like a counting mistake :)

Correct would be:
[code]FF 0E 09 00 48 65 6C 6F 00 ....Hello.[/code]

<edit> actually, the size isn't wrong, you missed an L in the hex :P
June 10, 2004, 12:32 AM
hismajesty
[code]FF 0E 0A 00 48 65 6C 6C 6F 00 ....Hello.[/code]
June 10, 2004, 1:09 AM
mentalCo.
is there an easy way to convert text to hex. also to convert the size of the text into a hex value? i just put together some sloppy ass code that just does text. using c++ of course.
June 10, 2004, 2:22 AM
R.a.B.B.i.T
Just convert the strlen of the string (or character array) into hex, not too hard.

I forget the conversion call though.. -.-
June 10, 2004, 2:33 AM
mentalCo.
nvm i got it. thanks people. cool forums. ill let everyone have my source to my bot when im done with it to learn.
June 10, 2004, 2:36 AM
BaDDBLooD
[quote author=mentalCo. link=board=17;threadid=7173;start=0#msg64451 date=1086835019]
nvm i got it. thanks people. cool forums. ill let everyone have my source to my bot when im done with it to learn.
[/quote]

that'd be nice.. maybe you could put some Comments?
June 10, 2004, 2:52 AM
iago
[quote author=BaDDBLooD link=board=17;threadid=7173;start=0#msg64459 date=1086835963]
[quote author=mentalCo. link=board=17;threadid=7173;start=0#msg64451 date=1086835019]
nvm i got it. thanks people. cool forums. ill let everyone have my source to my bot when im done with it to learn.
[/quote]

that'd be nice.. maybe you could put some Comments?
[/quote]

Commenting code? Unheard of!
June 10, 2004, 12:12 PM

Search