Valhalla Legends Forums Archive | Battle.net Bot Development | How to make the bot reconnect (loop)

AuthorMessageTime
Vaxel
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
March 4, 2003, 9:45 PM
Camel
Private Sub Winsock_Close()
   AddChat "Server closed connection" & vbCrLf, vbRed
   Battlenet.Disconnect Winsock
   AntiIdle.Enabled = False
   Winsock.Connect
End Sub
March 4, 2003, 10:13 PM
iago
ReconnectTimer.Enabled = true
March 5, 2003, 8:22 PM
talon60k
i personally find it sad that anyone can make a bot like this in vb anyways, sorry for the ot
March 6, 2003, 8:28 PM
Etheran
My Grandma can't make a bot...  :-X
March 7, 2003, 2:14 AM
Zakath
With CSB sure she could.
March 7, 2003, 4:37 PM

Search