Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: ChR0NiC on December 28, 2003, 07:03 PM

Title: 0x50 vs 0x1E
Post by: ChR0NiC on December 28, 2003, 07:03 PM
Someone told me there is 2 login methods.....
And I was wondering what differences are made using each one

This is 0x50


With pBuffer
.InsertDWORD &H0
.InsertNonNTString "68XI" & "PXES"
.InsertDWORD "C7"
.InsertDWORD &H0
.InsertDWORD &H0
.InsertDWORD &H0
.InsertDWORD &H0
.InsertDWORD &H0
.InsertNTString "USA"
.InsertNTString "United States"
.SendPacket frmMain.sckBnet, &H50
End With


This is 0x1E

  With pBuffer
   .InsertDWORD 0
   .InsertDWORD 0
   .InsertDWORD 0
   .InsertDWORD 0
   .InsertDWORD 0
   .InsertNTString "."
   .InsertNTString "."
   .sendPacket &H1E
   .InsertNonNTString "68XI" & "PXES"
   .InsertDWORD "&H" & "C7"
   .InsertDWORD 0
   pbuffer.sendPacket &H6
 End With


Why might you use one over the other?? Are there any advantages to using one or the other??
Title: Re:0x50 vs 0x1E
Post by: Lenny on December 28, 2003, 07:27 PM
0x50 is the new login method
I believe all clients except W2BN use it...

Although 0x1E still works for all clients, its not a good idea to use an outdated protocal on battle.net.

Use 0x50 on battle.net except for W2BN, unless you want battle.net to know you're a bot.
Title: Re:0x50 vs 0x1E
Post by: ChR0NiC on December 28, 2003, 07:32 PM
So W2BN still uses 1E??
Title: Re:0x50 vs 0x1E
Post by: Lenny on December 28, 2003, 07:35 PM
W2BN clients do, if I remember correctly.

But you can login using 0x50 for W2BN.
Title: Re:0x50 vs 0x1E
Post by: ChR0NiC on December 28, 2003, 07:37 PM
ok Thanks Lenny, you really helped me alot

+1  ;D
Title: Re:0x50 vs 0x1E
Post by: Dark-Feanor on December 28, 2003, 07:37 PM
0x50 works for every client except for Starcraft Japanese. 0x1E can not be used for warcraft 3.
Title: Re:0x50 vs 0x1E
Post by: Lenny on December 28, 2003, 07:43 PM
Quote from: DaRk-FeAnOr on December 28, 2003, 07:37 PM
0x50 works for every client except for Starcraft Japanese. 0x1E can not be used for warcraft 3.

But actual W2BN clients do not use 0x50.
Title: Re:0x50 vs 0x1E
Post by: l)ragon on December 28, 2003, 07:48 PM
Quote from: Lenny on December 28, 2003, 07:43 PM
Quote from: DaRk-FeAnOr on December 28, 2003, 07:37 PM
0x50 works for every client except for Starcraft Japanese. 0x1E can not be used for warcraft 3.

But actual W2BN clients do not use 0x50.

nor does SSHR, DSHR, or DRTL.
But you can logon useing 0x50 at the risk of posibly one day getting caught.
Title: Re:0x50 vs 0x1E
Post by: UserLoser. on December 28, 2003, 08:03 PM
Quote from: DaRk-FeAnOr on December 28, 2003, 07:37 PM
0x50 works for every client except for Starcraft Japanese. 0x1E can not be used for warcraft 3.

0x50 works for JSTR
Title: Re:0x50 vs 0x1E
Post by: UserLoser. on December 28, 2003, 08:10 PM
Quote from: ChR0NiC on December 28, 2003, 07:03 PM
Someone told me there is 2 login methods.....
And I was wondering what differences are made using each one

This is 0x50


With pBuffer
.InsertDWORD &H0
.InsertNonNTString "68XI" & "PXES"
.InsertDWORD "C7"
.InsertDWORD &H0
.InsertDWORD &H0
.InsertDWORD &H0
.InsertDWORD &H0
.InsertDWORD &H0
.InsertNTString "USA"
.InsertNTString "United States"
.SendPacket frmMain.sckBnet, &H50
End With


This is 0x1E

  With pBuffer
   .InsertDWORD 0
   .InsertDWORD 0
   .InsertDWORD 0
   .InsertDWORD 0
   .InsertDWORD 0
   .InsertNTString "."
   .InsertNTString "."
   .sendPacket &H1E
   .InsertNonNTString "68XI" & "PXES"
   .InsertDWORD "&H" & "C7"
   .InsertDWORD 0
   pbuffer.sendPacket &H6
 End With


Why might you use one over the other?? Are there any advantages to using one or the other??

Those are very ewwish.

InsertNonNTString "68XI" & "PXES" - those are DWORDs, treat them as DWORDs not strings!
InsertDWORD "C7" - That's a DWORD, not a string
InsertDWORD "&H" & "C7" - That's a DWORD, that's also very ugly
InsertNTString "USA" - What if a user in Korea downloaded use your bot? (Not that this makes a big difference)
InsertDWORD &H0 - People always complaining about /time being wrong...
Title: Re:0x50 vs 0x1E
Post by: o.OV on December 28, 2003, 08:24 PM
Quote from: ChR0NiC on December 28, 2003, 07:03 PM
Someone told me there is 2 login methods.....

Why might you use one over the other?? Are there any advantages to using one or the other??

Yea =) I would like to know too..
Title: Re:0x50 vs 0x1E
Post by: Mesiah / haiseM on December 28, 2003, 09:42 PM
Of course there is an advantage, why use something older, compared to newer? I'm sure you can answer that for yourself. W2BN, JSTR, DRTL and the shareware clients do not support the new login system because there has been no client-updates to implement this feature to the client, but since the server still parses the packets, any client can use it.
Title: Re:0x50 vs 0x1E
Post by: Dark-Feanor on December 29, 2003, 12:41 AM
In my previous post, wheN I said 0x50, I meant to say 0x50, 0x51 and 0x3A, and 0x51 can not be writen for Japanese SC.