Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: phvckmeh on May 07, 2004, 07:07 PM

Title: Bot anti-flood quick question
Post by: phvckmeh on May 07, 2004, 07:07 PM
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?
Title: Re:Bot anti-flood quick question
Post by: hismajesty on May 07, 2004, 07:09 PM
http://botdev.valhallalegends.com/documents/vbantiflood.html
Title: Re:Bot anti-flood quick question
Post by: 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

Title: Re:Bot anti-flood quick question
Post by: CodeMaster on May 07, 2004, 07:32 PM
Maybe you would get more help if your name wasn't so offensive.
Title: Re:Bot anti-flood quick question
Post by: phvckmeh on May 07, 2004, 07:37 PM
gj u figured it out lol
Title: Re:Bot anti-flood quick question
Post by: Dyndrilliac on May 08, 2004, 11:33 AM
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
Title: Re:Bot anti-flood quick question
Post by: MyndFyre on May 08, 2004, 12:28 PM
To clarify, this is ticks, correct?  And a tick is the same as a millisecond?
Title: Re:Bot anti-flood quick question
Post by: Dyndrilliac on May 08, 2004, 08:13 PM
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.
Title: Re:Bot anti-flood quick question
Post by: phvckmeh on May 08, 2004, 09:12 PM
thx, i found that len*10+1000 wasent enough
i tweaked it to len*15+1200