• Welcome to Valhalla Legends Archive.
 

Bot anti-flood quick question

Started by phvckmeh, May 07, 2004, 07:07 PM

Previous topic - Next topic

phvckmeh

alright so i have my bot, and it works great and all, and what i use for antiflood is, it adds all the commands im sending to bnet to a list, then a timer that goes off every 2 seconds sends the first item, etc etc.

im just wondering if there is a set ammout of time between each commands that you will not be banned for (d2) beacuse 2 secs between commands sound like a lot.

also, longer messages should take more time, but i dont know an accurate formula to set the delay with a message with x charactes.

any advice/formulas?


phvckmeh

#2
hmmm i cant seem to break this down into somthing simple

basiclly what i need is the forumula like
antiflood.interval = (len (whatever) *10) + 1000
or somethin


CodeMaster

Maybe you would get more help if your name wasn't so offensive.

phvckmeh


Dyndrilliac

#5
Quote from: phvckmeh on May 07, 2004, 07:22 PM
hmmm i cant seem to break this down into somthing simple

basiclly what i need is the forumula like
antiflood.interval = (len (whatever) *10) + 1000
or somethin

Dim sMessage As String
Dim dNum As Double
sMessage = NameOfControlForMessage.Text
dNum = Len(sMessage) * 10 + 1000
AntiFlood.Interval = dNum
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

MyndFyre

To clarify, this is ticks, correct?  And a tick is the same as a millisecond?
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Dyndrilliac

I imagine he wants to do something similar to the method most people use for Anti Idle's where he sets the interval to 1000(1k ms) and uses a counter to count in seconds. In my snippet dNum is the counter being used.
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

phvckmeh

thx, i found that len*10+1000 wasent enough
i tweaked it to len*15+1200