Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Christ on April 13, 2003, 05:50 PM

Title: Need help with Reconnection code for vb
Post by: Christ on April 13, 2003, 05:50 PM
Whats a Good,Fast but realible Source code for reconnecting, say, i want to reconnect fast to a server, and login just as fast any ideas where to start?
Title: Re:Need help with Reconnection code for vb
Post by: haZe on April 13, 2003, 07:15 PM
Learn how to walk before you run. If you don't know how to reconnect it after it's connected, then you either
1) stole code
or
2) had someone else make the bot for you
But, I'll tell you anyways.

Winsock1.Close
Winsock1.Connect "server", 6112

-1 for turning visual basic into visual bot studio
Title: Re:Need help with Reconnection code for vb
Post by: FiReGoD on April 13, 2003, 09:30 PM
christ, are you using cleanslatebot or? plz describe better
Title: Re:Need help with Reconnection code for vb
Post by: Spht on April 14, 2003, 07:21 AM
Quote from: haze the cow on April 13, 2003, 07:15 PM
Learn how to walk before you run. If you don't know how to reconnect it after it's connected, then you either
1) stole code
or
2) had someone else make the bot for you
But, I'll tell you anyways.

Winsock1.Close
Winsock1.Connect "server", 6112


-1 for turning visual basic into visual bot studio

All insults ever deemed on someone from this forum summed up right here. Truly amazing.
Title: Re:Need help with Reconnection code for vb
Post by: Zakath on April 14, 2003, 10:24 AM
What is this craze for "reconnecting fast," anyway? Seems extremely pointless to me.
Title: Re:Need help with Reconnection code for vb
Post by: Banana fanna fo fanna on April 14, 2003, 06:58 PM
Can we just ban this punk now?
Title: Re:Need help with Reconnection code for vb
Post by: Arta on April 14, 2003, 07:52 PM
Quote from: Zakath on April 14, 2003, 10:24 AM
What is this craze for "reconnecting fast," anyway? Seems extremely pointless to me.


Floodbots.
Title: Re:Need help with Reconnection code for vb
Post by: ILurker on April 14, 2003, 08:02 PM
You wouldn't want a fast reconnecting bot for a floodbot, you'd want it to join/laave games fast, --Slowly reconnecting would decrease the chance of getting ipbanned (I think) ;)
Title: Re:Need help with Reconnection code for vb
Post by: dxoigmn on April 14, 2003, 08:50 PM
If a flood bot joined/leaved games then it could get banned from a channel thus defeating the purpose (if there is one  :-\) of that type of bot.
Title: Re:Need help with Reconnection code for vb
Post by: ILurker on April 14, 2003, 09:03 PM
That's what lord]zer0['s floodbot does, The bot joins and leaves a game over 10 times in less than a second and disconnects
Title: Re:Need help with Reconnection code for vb
Post by: Etheran on April 15, 2003, 12:55 AM
damn, I can't smite haze enough in a day, once isn't enough for me!
Title: Re:Need help with Reconnection code for vb
Post by: Christ on April 15, 2003, 06:19 PM
This isn't for a floodbot, its for Warrnet, being that drops happen and the only thing you can rely on to get ops is, speed/a good reconnecting bot. IS the reason i want some help, if anyone could supply a code better then what was supplied above, cause i've already used it, and ..it's slow.
Title: Re:Need help with Reconnection code for vb
Post by: Banana fanna fo fanna on April 15, 2003, 06:35 PM
Leave.
-1 to haze for being a hypocrite.
Title: Re:Need help with Reconnection code for vb
Post by: haZe on April 15, 2003, 07:34 PM
Quote from: St0rm.iD on April 15, 2003, 06:35 PM
Leave.
-1 to haze for being a hypocrite.
-1 to st0rm for accusing me falsely.
Title: Re:Need help with Reconnection code for vb
Post by: Zakath on April 15, 2003, 07:51 PM
+1 to st0rm for being smited unjustly by haze
-1 to haze for smiting st0rm in response to something that was true
Title: Re:Need help with Reconnection code for vb
Post by: Banana fanna fo fanna on April 15, 2003, 08:47 PM
Quote from: haze the cow on April 15, 2003, 07:34 PM
Quote from: St0rm.iD on April 15, 2003, 06:35 PM
Leave.
-1 to haze for being a hypocrite.
-1 to st0rm for accusing me falsely.

Like that hurts my karma at all. I like low karma, remember?
Title: Re:Need help with Reconnection code for vb
Post by: Christ on April 15, 2003, 10:08 PM
Can i get some fucken help..plz? ::)
Title: Re:Need help with Reconnection code for vb
Post by: Kp on April 15, 2003, 10:23 PM
Quote from: Christ on April 15, 2003, 10:08 PM
Can i get some fucken help..plz? ::)
Given that you've now admited you want this for warnet, I'd place the odds of help as being rather slim. :)
Title: Re:Need help with Reconnection code for vb
Post by: Zakath on April 15, 2003, 11:09 PM
Quote from: Christ on April 15, 2003, 10:08 PM
Can i get some fucken help..plz? ::)

The main problem is that most people disapprove of the concept of this "fast reconnection" fad. Hence, they aren't very willing to do a lot about it.
Title: Re:Need help with Reconnection code for vb
Post by: ILurker on April 16, 2003, 10:18 AM
Just do this,
Winsockname.close
Winsockname.connect Server 6112


If your using bnls then do this,
Cleanslatebot1.disconnect
Cleanslatebot1.connect


Getting rid of a few things in your connection may help reduce lag, for example, UDP, or Lagspoof, And make sure your not using timers to connect.

It's not very difficult, and I don't see why other people are having a hard time helping you...
Title: ILurker typo? =p
Post by: Kp on April 16, 2003, 04:54 PM
Quote from: â„¢ILurkerâ„¢ on April 16, 2003, 10:18 AM
Winsockname.close
Winsockname.connect Server 6112

If your using bnls then do this,
Cleanslatebot1.disconnect
Cleanslatebot1.connect

It's not very difficult, and I don't see why other people are having a hard time helping you...
I have a BNLS based client, but it doesn't use CleanSlateBot or Winsock.  Your code seems not to work then...? :)

Also, it's not so much a problem of having difficulty helping him; it's a problem of having difficulty figuring why he deserves help at all.
Title: Re:Need help with Reconnection code for vb
Post by: Christ on April 16, 2003, 05:41 PM
Uhh right PK, ur cool, i'm just someone asking help, and i was told here i'd get it, i didn't know PPL Flamed on others for no apparent reason. I dont care if this was just used to sit in a fucken channel, i'm not floodbotting and whats wrong wtih warrnet anyway, kindof run to do if your bored..I asked for help, not for anyone to stick their cocks in their asses and flame me.
Title: Re:Need help with Reconnection code for vb
Post by: ILurker on April 16, 2003, 05:41 PM
Winsockname.connect serverip, 6112         ****

And It's only 6112 for bnet, That's what he was asking for.
Title: Re:Need help with Reconnection code for vb
Post by: Christ on April 16, 2003, 05:42 PM
Lurker i've already tried that, that code sucks ass...its not fast enough.
Title: Re:Need help with Reconnection code for vb
Post by: Banana fanna fo fanna on April 16, 2003, 05:50 PM
Leave. No one wants you here anyway.