• Welcome to Valhalla Legends Archive.
 

0x7D

Started by nYko, April 01, 2004, 11:59 PM

Previous topic - Next topic

nYko

Can anyone explain how they handle 0x7D being recieved from Battle.net? (Visual Basic)

How do I extract all that data from the packet?

You can refer to BnetDocs for the packet's structure. I just don't know how to do that in VB.

o.OV

Quote from: nYko on April 01, 2004, 11:59 PM
Can anyone explain how they handle 0x7D being recieved from Battle.net? (Visual Basic)

How do I extract all that data from the packet?

You can refer to BnetDocs for the packet's structure. I just don't know how to do that in VB.

Do you understand the structure?
What exactly is it that is stumping you?
If the facts don't fit the theory, change the facts. - Albert Einstein

BaDDBLooD

Well you use one of these 3 functions

Mid
Right
Left

to pick whatever data you want out of the Void

And somtimes you have to Clng the string, or Change it to Hex, or Change the hex into string, or Clng and Change it to Hex
There are only two kinds of people who are really fascinating: people who know absolutely everything, and people who know absolutely nothing.

MyndFyre

Quote from: nYko on April 01, 2004, 11:59 PM
Can anyone explain how they handle 0x7D being recieved from Battle.net? (Visual Basic)

How do I extract all that data from the packet?

You can refer to BnetDocs for the packet's structure. I just don't know how to do that in VB.

I remember Chr0nic having the same problem.  I wonder if this isn't just a new account for him.  :P
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

BaDDBLooD

Quote from: Myndfyre on April 02, 2004, 09:44 AM
Quote from: nYko on April 01, 2004, 11:59 PM
Can anyone explain how they handle 0x7D being recieved from Battle.net? (Visual Basic)

How do I extract all that data from the packet?

You can refer to BnetDocs for the packet's structure. I just don't know how to do that in VB.

I remember Chr0nic having the same problem.  I wonder if this isn't just a new account for him.  :P

he's pretty sneaky :)
There are only two kinds of people who are really fascinating: people who know absolutely everything, and people who know absolutely nothing.

Archangel

Quote from: nYko on April 01, 2004, 11:59 PM
Can anyone explain how they handle 0x7D being recieved from Battle.net? (Visual Basic)

How do I extract all that data from the packet?

You can refer to BnetDocs for the packet's structure. I just don't know how to do that in VB.

Here i go again, Bot Developmnet is not a good way to start learning VB.
But u use: Mid, Left, Right
I'm not an Addict.

o.OV

Though I'm not sure what his problem is..
I think he is having problems determining the length of each set of data.
He hasn't clearly stated his problem yet.
If the facts don't fit the theory, change the facts. - Albert Einstein

BaDDBLooD

you can use Len() to determine the length of the string

than you use mid / left / right along with the length of the string, to take information out of the packet

you may have to use CLng() or get a StrToHex, HexToStr functions as well
There are only two kinds of people who are really fascinating: people who know absolutely everything, and people who know absolutely nothing.

nYko

I am not Chr0nic. I am new to Battle.net and Visual Basic. I doubt anyone here knows me.

What I don't understand is how I get the strings from the packet. Can someone explain or post sample code? Sample code is a good way to learn.

What does the CLing function do?

I know I sound "newbie" but we all have to learn somewhere.

nYko

Quote from: o.OV on April 02, 2004, 03:57 PM
Though I'm not sure what his problem is..
I think he is having problems determining the length of each set of data.
He hasn't clearly stated his problem yet.

I stated that I don't know how to extract the data from the packet. That is my problem.

o.OV

Quote from: nYko on April 02, 2004, 05:44 PM
Quote from: o.OV on April 02, 2004, 03:57 PM
Though I'm not sure what his problem is..
I think he is having problems determining the length of each set of data.
He hasn't clearly stated his problem yet.

I stated that I don't know how to extract the data from the packet. That is my problem.

That is too broad.
What.. you don't know how to extract any part of it even after looking on the documentation on bnetdocs?

Quote from: nYko on April 02, 2004, 05:43 PM
What I don't understand is how I get the strings from the packet.

That is more specific.

Quote
Can someone explain or post sample code? Sample code is a good way to learn.

Although I think sample source code is a great for learning, I think you are chr0nic's long lost brother.

Hi.

A string is null terminated for a reason and is always followed by X number of bytes before the start of the next set.
If the facts don't fit the theory, change the facts. - Albert Einstein

MyndFyre

Quote from: o.OV on April 02, 2004, 06:52 PM
Quote from: nYko on April 02, 2004, 05:44 PM
Quote from: o.OV on April 02, 2004, 03:57 PM
Though I'm not sure what his problem is..
I think he is having problems determining the length of each set of data.
He hasn't clearly stated his problem yet.

I stated that I don't know how to extract the data from the packet. That is my problem.

That is too broad.
What.. you don't know how to extract any part of it even after looking on the documentation on bnetdocs?

Quote from: nYko on April 02, 2004, 05:43 PM
What I don't understand is how I get the strings from the packet.

That is more specific.

Quote
Can someone explain or post sample code? Sample code is a good way to learn.

Although I think sample source code is a great for learning, I think you are chr0nic's long lost brother.

Hi.

A string is null terminated for a reason and is always followed by X number of bytes before the start of the next set.

A null-terminator is a byte that has a value of 0.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

nYko

I have the feeling this is going nowhere.

nYko

Spht's bot uses 0x7D. I wish I could get ahold of him.

Archangel

S->C
Packet id: 0x7D - &H7D

Format:
(DWORD) Cookie
(BYTE) Number of users

For each user:
(STRING) Username
(BYTE) Clan rank
(WORD) Online status

Additional information:
None.

The Clan rank is a BYTE used to describe a W3 clan member's level.

0x04 - Chieftain (One per clan)
0x03 - Shaman (Up to five per clan)
0x02 - Grunt
0x01 - Peon
0x00 - Recruit (Peon icon; new members are this rank for seven days, and then promoted to Peon)
I'm not an Addict.