Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: MaGiC_MaN456 on July 24, 2003, 06:56 PM

Title: CSB BNLS Authorization
Post by: MaGiC_MaN456 on July 24, 2003, 06:56 PM
Hey- I've just started trying to set up a bot program using the CSB OCX, and im waiting to get an ID and such. I've been setting up a simple program so far, writing code for all the events and such before I can use it. When I try to connect right now, it runs only the BNLS connect, connecting, and disconnect events. I thought that it would go to the BNLS authorization event also, then disconnect me.

Quick Simple Example:

Private Sub CSB_BnetConnected()
   Text1.Text = Text1.Text & "BNET Connected!" & vbNewLine
End Sub

Private Sub CSB_BNLSAuthEvent(Success As Boolean)
   If Success = True Then
       Text1.Text = Text1.Text & "Authorized" & vbNewLine
   Else
       Text1.Text = Text1.Text & "Unauthorized" & vbNewLine
   End If
End Sub

Private Sub CSB_BNLSConnected()
   Text1.Text = Text1.Text & "BNLS Connected!" & vbNewLine
End Sub

Private Sub CSB_BNLSConnecting()
   Text1.Text = Text1.Text & "BNLS Connecting" & vbNewLine
End Sub

Private Sub CSB_BNLSDisconnected()
   Text1.Text = Text1.Text & "Disconnected" & vbNewLine
End Sub

Private Sub Form_Load()
   With CSB
       .BNLSBotID = ""
       .BNLSBotPassword = ""
       .CDKey = ""
       .Product = "RATS"
       .HomeChannel = Channel
       .Password = "**********"
       .Username = "magicman456"
       .Server = "uswest.battle.net"
       .Accept = "579728"
       .Disconnect
       .Connect
   End With
End Sub


Am I missing a csb property or do I just need an Id/Password to reach the authorization event?? Any help would be very very nice!
Title: Re:CSB BNLS Authorization
Post by: Camel on July 24, 2003, 06:59 PM
You need a BNLS id/password -- bug Skywing or Yoni.
Title: Re:CSB BNLS Authorization
Post by: MaGiC_MaN456 on July 24, 2003, 06:59 PM
Thanks, I'll keep trying at it!
Title: Re:CSB BNLS Authorization
Post by: hismajesty on July 24, 2003, 07:01 PM
you also need a cd key i beleive :-\
Title: Re:CSB BNLS Authorization
Post by: Camel on July 24, 2003, 07:14 PM
Quote from: hismajesty on July 24, 2003, 07:01 PM
you also need a cd key i beleive :-\

That comes later.