Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Vaxel on March 04, 2003, 03:45 PM

Title: How to make the bot reconnect (loop)
Post by: Vaxel on March 04, 2003, 03:45 PM
Ok after my bot gets d/c it never reconnects this is the code:
Private Sub Winsock_Close()
    AddChat "Server closed connection" & vbCrLf, vbRed
    Battlenet.Disconnect Winsock
    AntiIdle.Enabled = False
End Sub


now how do i make it reconnect fast like every 2 seconds
Title: Re: How to make the bot reconnect (loop)
Post by: Camel on March 04, 2003, 04:13 PM
Private Sub Winsock_Close()
    AddChat "Server closed connection" & vbCrLf, vbRed
    Battlenet.Disconnect Winsock
    AntiIdle.Enabled = False
    Winsock.Connect
End Sub
Title: Re: How to make the bot reconnect (loop)
Post by: iago on March 05, 2003, 02:22 PM
ReconnectTimer.Enabled = true
Title: Re: How to make the bot reconnect (loop)
Post by: talon60k on March 06, 2003, 02:28 PM
i personally find it sad that anyone can make a bot like this in vb anyways, sorry for the ot
Title: Re: How to make the bot reconnect (loop)
Post by: Etheran on March 06, 2003, 08:14 PM
My Grandma can't make a bot...  :-X
Title: Re: How to make the bot reconnect (loop)
Post by: Zakath on March 07, 2003, 10:37 AM
With CSB sure she could.