Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Xenoc1de on April 05, 2005, 12:17 PM

Title: SID_LOGONRESPONSE2
Post by: Xenoc1de on April 05, 2005, 12:17 PM
Can anyone give me examples of what to do for 0x0A, 0x0B, or 0x0C after your SID_LOGONRESPONSE2 (0x3A) has accepted and returned 0x00.

As of right now I can't get my client to join channel, here is my code for when it returns a DWORD value of 0 in 0x3A


     .InsertDWORD GetDWORD(GetFourLetterClient)
          'GetFourLetterClient trims for example "Starcraft" to "RATS"
     .Send frmMain.WS, SID_GETCHANNELLIST '0x0B
     
     .InsertNTString Bot.Username
     .InsertByte &H0
          'or .InsertNTString vbNullString ??
     .Send frmMain.WS, SID_ENTERCHAT '0x0A
                   
          'Join product-specific start channel
     .InsertDWORD &H2
     .InsertNTString Bot.Username
     .Send frmMain.WS, SID_JOINCHANNEL '0x0C
Title: Re: SID_LOGONRESPONSE2
Post by: Warrior on April 05, 2005, 12:21 PM
0x0A is enter Chat, then after that you send 0x0C to join whatever channel you want and it is optional to send 0x0B to view the channel list.
Title: Re: SID_LOGONRESPONSE2
Post by: UserLoser. on April 05, 2005, 12:32 PM
Do you get disconnected and banned?  I'm not sure on this, but you may have to enter chat before requesting a channel listing
Title: Re: SID_LOGONRESPONSE2
Post by: Xenoc1de on April 05, 2005, 12:37 PM
Yeah good point, I did get IPBanned for about 5 minutes with that code, I just took out sending SID_GETCHANNELLIST for right now and changed my code to:


     .InsertNTString Bot.Username
     .InsertNTString vbNullString
     .Send frmMain.WS, SID_ENTERCHAT '0x0A
                   
     .InsertDWORD &H1 '0x01 for First Join
     .InsertNTString Bot.Username 'Channel variable, avoid IPBan
     .Send frmMain.WS, SID_JOINCHANNEL '0x0C
Title: Re: SID_LOGONRESPONSE2
Post by: Xenoc1de on April 05, 2005, 12:43 PM
After it reaches this point in the logon sequence (testing on starcraft) should it be completely logged in to the account im connecting with

Talking about /whois <username>, showing the username online