• Welcome to Valhalla Legends Archive.
 

How to make the bot reconnect (loop)

Started by Vaxel, March 04, 2003, 03:45 PM

Previous topic - Next topic

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

Camel

#1
Private Sub Winsock_Close()
    AddChat "Server closed connection" & vbCrLf, vbRed
    Battlenet.Disconnect Winsock
    AntiIdle.Enabled = False
    Winsock.Connect
End Sub

iago

#2
ReconnectTimer.Enabled = true
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


talon60k

#3
i personally find it sad that anyone can make a bot like this in vb anyways, sorry for the ot

Etheran

#4
My Grandma can't make a bot...  :-X

Zakath

#5
With CSB sure she could.
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.