Author | Message | Time |
---|---|---|
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. | April 2, 2004, 5:59 AM |
o.OV | [quote author=nYko link=board=17;threadid=6134;start=0#msg53161 date=1080885570] 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. [/quote] Do you understand the structure? What exactly is it that is stumping you? | April 2, 2004, 9:14 AM |
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 | April 2, 2004, 1:54 PM |
Myndfyr | [quote author=nYko link=board=17;threadid=6134;start=0#msg53161 date=1080885570] 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. [/quote] I remember Chr0nic having the same problem. I wonder if this isn't just a new account for him. :P | April 2, 2004, 3:44 PM |
BaDDBLooD | [quote author=Myndfyre link=board=17;threadid=6134;start=0#msg53203 date=1080920675] [quote author=nYko link=board=17;threadid=6134;start=0#msg53161 date=1080885570] 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. [/quote] I remember Chr0nic having the same problem. I wonder if this isn't just a new account for him. :P [/quote] he's pretty sneaky :) | April 2, 2004, 7:10 PM |
Archangel | [quote author=nYko link=board=17;threadid=6134;start=0#msg53161 date=1080885570] 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. [/quote] Here i go again, Bot Developmnet is not a good way to start learning VB. But u use: Mid, Left, Right | April 2, 2004, 9:31 PM |
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. | April 2, 2004, 9:57 PM |
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 | April 2, 2004, 11:15 PM |
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. | April 2, 2004, 11:43 PM |
nYko | [quote author=o.OV link=board=17;threadid=6134;start=0#msg53249 date=1080943074] 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. [/quote] I stated that I don't know how to extract the data from the packet. That is my problem. | April 2, 2004, 11:44 PM |
o.OV | [quote author=nYko link=board=17;threadid=6134;start=0#msg53269 date=1080949486] [quote author=o.OV link=board=17;threadid=6134;start=0#msg53249 date=1080943074] 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. [/quote] I stated that I don't know how to extract the data from the packet. That is my problem. [/quote] 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 author=nYko link=board=17;threadid=6134;start=0#msg53267 date=1080949406] What I don't understand is how I get the strings from the packet. [/quote] That is more specific. [quote] Can someone explain or post sample code? Sample code is a good way to learn. [/quote] 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. | April 3, 2004, 12:52 AM |
Myndfyr | [quote author=o.OV link=board=17;threadid=6134;start=0#msg53271 date=1080953555] [quote author=nYko link=board=17;threadid=6134;start=0#msg53269 date=1080949486] [quote author=o.OV link=board=17;threadid=6134;start=0#msg53249 date=1080943074] 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. [/quote] I stated that I don't know how to extract the data from the packet. That is my problem. [/quote] 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 author=nYko link=board=17;threadid=6134;start=0#msg53267 date=1080949406] What I don't understand is how I get the strings from the packet. [/quote] That is more specific. [quote] Can someone explain or post sample code? Sample code is a good way to learn. [/quote] 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. [/quote] A null-terminator is a byte that has a value of 0. | April 3, 2004, 1:31 AM |
nYko | I have the feeling this is going nowhere. | April 3, 2004, 2:47 AM |
nYko | Spht's bot uses 0x7D. I wish I could get ahold of him. | April 3, 2004, 2:48 AM |
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) | April 3, 2004, 3:15 AM |
Myndfyr | Ok... You read through each byte in your packet... The first four become a DWORD. The next 1 is the number of users to expect. For i = 0 To number of users to expect look through the packet to find the next 0. take all of the bytes from where you started to that location with the zero make those bytes all into one string. take the next byte, it's the rank the next two bytes become a WORD. Next Pseudocode. | April 3, 2004, 6:31 AM |
nYko | Thanks for the help. I really appriciate it. Can you tell me how that looks in VB code? | April 3, 2004, 7:09 AM |
Adron | [quote author=nYko link=board=17;threadid=6134;start=15#msg53313 date=1080976186] Thanks for the help. I really appriciate it. Can you tell me how that looks in VB code? [/quote] We can tell you that it looks good in VB code. You need to learn to translate pseudocode to VB code yourself some time, and you might as well do it now. If you need help with some specific translation, I invite you to post about that specific (short) translation you need on the VB forum. | April 3, 2004, 12:24 PM |
iago | [quote author=Adron link=board=17;threadid=6134;start=15#msg53322 date=1080995088] [quote author=nYko link=board=17;threadid=6134;start=15#msg53313 date=1080976186] Thanks for the help. I really appriciate it. Can you tell me how that looks in VB code? [/quote] We can tell you that it looks good in VB code. You need to learn to translate pseudocode to VB code yourself some time, and you might as well do it now. If you need help with some specific translation, I invite you to post about that specific (short) translation you need on the VB forum. [/quote] I agree with all of that, except that it probably looks bad in VB code :) | April 3, 2004, 2:44 PM |
SiMi | [quote author=nYko link=board=17;threadid=6134;start=15#msg53313 date=1080976186] Thanks for the help. I really appriciate it. Can you tell me how that looks in VB code? [/quote] Yep, Its chr0nic all right. Recently that guy has been trying to make his sentences complete by adding periods and all that other stuff (commas, question marks, etc). Did I miss something? Did chr0nic get banned? | April 3, 2004, 6:26 PM |
ChR0NiC | [quote author=nYko link=board=17;threadid=6134;start=0#msg53161 date=1080885570] 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. [/quote] [quote author=Myndfyre link=board=17;threadid=6134;start=0#msg53203 date=1080920675] I remember Chr0nic having the same problem. I wonder if this isn't just a new account for him. :P [/quote] I am happy to report I sucessfully parsed this packet without help from stuck up programmers like yourself MyndFire Edit: [quote author=Simi link=board=17;threadid=6134;start=15#msg53351 date=1081016795] Yep, Its chr0nic all right. Recently that guy has been trying to make his sentences complete by adding periods and all that other stuff (commas, question marks, etc). Did I miss something? Did chr0nic get banned? [/quote] Um.....it's not me you retard. Ask an admin to check the IP's or something. If anything, I think Simi should be banned from these forums, as he only posts to flame people. Edit2: [quote author=nYko link=board=17;threadid=6134;start=15#msg53313 date=1080976186] Thanks for the help. I really appriciate it. Can you tell me how that looks in VB code? [/quote] If you want this code written in VB for you, I'm sorry to say, perhaps you shouldn't be writing bots. As this was quite a fun packet, and it took me only around 30 minutes. So if you really wrote your own bot personally, this shouldn't be very hard. | April 3, 2004, 6:49 PM |
nYko | I didn't write my own bot. I am simply adding onto a friends project. | April 3, 2004, 10:25 PM |
Myndfyr | [quote author=ChR0NiC link=board=17;threadid=6134;start=15#msg53353 date=1081018148] [quote author=Myndfyre link=board=17;threadid=6134;start=0#msg53203 date=1080920675] I remember Chr0nic having the same problem. I wonder if this isn't just a new account for him. :P [/quote] I am happy to report I sucessfully parsed this packet without help from stuck up programmers like yourself MyndFire [/quote] Excuse me? I distinctly remember spending over an hour with you on AIM trying to get you to understand what a null character was and how to find where the strings began and ended. Don't give me that crap. Secondarily, what I said wasn't meant as a dig at you. It wouldn't be the first time someone registerred a new account to get help because people were sick of helping that specific person. Saying "I remember Chr0nic had this problem" was just me thinking that I remembered you having this problem, nothing more. So get off me Mr. Ungrateful! | April 4, 2004, 1:06 AM |
ChR0NiC | [quote author=Myndfyre link=board=17;threadid=6134;start=15#msg53414 date=1081040809] Excuse me? I distinctly remember spending over an hour with you on AIM trying to get you to understand what a null character was and how to find where the strings began and ended. Don't give me that crap. Secondarily, what I said wasn't meant as a dig at you. It wouldn't be the first time someone registerred a new account to get help because people were sick of helping that specific person. Saying "I remember Chr0nic had this problem" was just me thinking that I remembered you having this problem, nothing more. So get off me Mr. Ungrateful! [/quote] Stealth actually taught me what a null character what around 3 months ago, and I don't recall the other stuff you claim to have helped me with. Plus, you were the one who first accused me of creating the second account, followed up by BaDDBLooD and Simi. Edit: Sorry about the disrespect but I am quite offended that people would accuse me of doing such a thing. | April 4, 2004, 1:12 AM |
nYko | MydeFire, maybe you could help me parse this packet over AIM? Please IM me. My screen name is: ex1led0ne Thanks a lot. | April 5, 2004, 2:16 AM |
Soul Taker | Sometimes when I'm reading the BotDev forum, I get really confused and think to myself "How did I end up in the stupid people arguing about stupid things forum?"... | April 5, 2004, 10:30 AM |
nYko | [quote author=Soul Taker link=board=17;threadid=6134;start=15#msg53543 date=1081161025] Sometimes when I'm reading the BotDev forum, I get really confused and think to myself "How did I end up in the stupid people arguing about stupid things forum?"... [/quote] Oh, you're cool. I'm just stupid because I am asking for help. Wow, you are superior to me because you were born knowing everything about Battle.net's 0x7D packet. I shouldn't have asked for help. My bad. | April 6, 2004, 10:16 AM |
Adron | [quote author=nYko link=board=17;threadid=6134;start=15#msg53677 date=1081246606] Oh, you're cool. I'm just stupid because I am asking for help. Wow, you are superior to me because you were born knowing everything about Battle.net's 0x7D packet. I shouldn't have asked for help. My bad. [/quote] Yes, obviously! We're all cool, and you're the only one who is stupid. Just look at you, you started this topic asking for help!. You may observe that we all, every single one of us, fully understand the 0x7D packet, and that we have done so ever since opening our eyes for the first time. Yes, not having such basic knowledge, you must be utterly stupid. You may now thank us for sharing our divine wisdom with a poor lost soul as yourself, and then crawl back under whatever rock you were hiding under before. Having you sitting here begging for crumbs from our feast on knowledge leaves a stain on the surface of our perfect world. Shoo! | April 6, 2004, 3:28 PM |
Soul Taker | [quote author=nYko link=board=17;threadid=6134;start=15#msg53677 date=1081246606] [quote author=Soul Taker link=board=17;threadid=6134;start=15#msg53543 date=1081161025] Sometimes when I'm reading the BotDev forum, I get really confused and think to myself "How did I end up in the stupid people arguing about stupid things forum?"... [/quote] Oh, you're cool. I'm just stupid because I am asking for help. Wow, you are superior to me because you were born knowing everything about Battle.net's 0x7D packet. I shouldn't have asked for help. My bad. [/quote] Maybe you should read what I said again, and keep in mind that the mentioned forum is for housing arguments. | April 6, 2004, 8:19 PM |
Newby | [quote author=nYko link=board=17;threadid=6134;start=15#msg53677 date=1081246606] [quote author=Soul Taker link=board=17;threadid=6134;start=15#msg53543 date=1081161025] Sometimes when I'm reading the BotDev forum, I get really confused and think to myself "How did I end up in the stupid people arguing about stupid things forum?"... [/quote] Oh, you're cool. I'm just stupid because I am asking for help. Wow, you are superior to me because you were born knowing everything about Battle.net's 0x7D packet. I shouldn't have asked for help. My bad. [/quote] I don't think he was talking about you. I think he was talking about Chr0nic and Myndfire. | April 6, 2004, 9:06 PM |
ChR0NiC | [quote author=nYko link=board=17;threadid=6134;start=15#msg53677 date=1081246606] Oh, you're cool. I'm just stupid because I am asking for help. Wow, you are superior to me because you were born knowing everything about Battle.net's 0x7D packet. I shouldn't have asked for help. My bad. [/quote] [quote author=Adron link=board=17;threadid=6134;start=15#msg53691 date=1081265302] Yes, obviously! We're all cool, and you're the only one who is stupid. Just look at you, you started this topic asking for help!. You may observe that we all, every single one of us, fully understand the 0x7D packet, and that we have done so ever since opening our eyes for the first time. Yes, not having such basic knowledge, you must be utterly stupid. You may now thank us for sharing our divine wisdom with a poor lost soul as yourself, and then crawl back under whatever rock you were hiding under before. Having you sitting here begging for crumbs from our feast on knowledge leaves a stain on the surface of our perfect world. Shoo! [/quote] I couldn't have said it better myself, BRAVO ADRON !!! BRAVO !! | April 7, 2004, 3:20 AM |