Author | Message | Time |
---|---|---|
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? | May 8, 2004, 12:07 AM |
hismajesty | http://botdev.valhallalegends.com/documents/vbantiflood.html | May 8, 2004, 12:09 AM |
phvckmeh | 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 | May 8, 2004, 12:22 AM |
CodeMaster | Maybe you would get more help if your name wasn't so offensive. | May 8, 2004, 12:32 AM |
phvckmeh | gj u figured it out lol | May 8, 2004, 12:37 AM |
Dyndrilliac | [quote author=phvckmeh link=board=17;threadid=6692;start=0#msg58986 date=1083975734] 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 [/quote] [code]Dim sMessage As String Dim dNum As Double sMessage = NameOfControlForMessage.Text dNum = Len(sMessage) * 10 + 1000 AntiFlood.Interval = dNum[/code] | May 8, 2004, 4:33 PM |
Myndfyr | To clarify, this is ticks, correct? And a tick is the same as a millisecond? | May 8, 2004, 5:28 PM |
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. | May 9, 2004, 1:13 AM |
phvckmeh | thx, i found that len*10+1000 wasent enough i tweaked it to len*15+1200 | May 9, 2004, 2:12 AM |