|
Post by playaplaya on Feb 5, 2005 23:08:55 GMT -5
Hey Tiny, I have been working on perfecting the fastest bot I can and I was wondering how I could make a loop. I have a Do **** ***** If ****** ******* ******** EndIf Until
"*" meaning my arbitrary code. Can I stick a "ElseIf" in there before the EndIf telling it to repeat the Do command? Thanks.
Playaplaya
|
|
|
Post by TinyTerror on Feb 5, 2005 23:18:23 GMT -5
So you want to repeat the upper block of *** after the if statement?
|
|
|
Post by playaplaya on Feb 6, 2005 3:43:49 GMT -5
Ok I'll make it simple and enter my script in ><. Theives will take it though! lol. Okay here...
Do Sleep(100) Send("{TAB}") FFACT_Update() $mob = FFACT_GetTargetName() If $mob = " Digger Wasp" Then Send($MyStunMacro); EndIf Until $fight = 1
I want this to cycle through faster, so is there a way I can make it so if the mob isnt " Digger Wasp" it will just skip to the Do command again? I don't know if this will even speed things up, just kind of seems like it would. Thanks and sorry for the confusion it's newbs like me who waste your time.
Playaplaya
|
|
|
Post by TinyTerror on Feb 6, 2005 15:19:28 GMT -5
Nope. If the mob isnt digger wasp, the stuff in the if will be skipped and the do code will loop. The only way to make this faster is to reduce the sleep time. Reducing it to 20 or 10 might work.
|
|
|
Post by TinyTerror on Feb 6, 2005 15:21:33 GMT -5
Are you still getting slowdowns in FFACT_Helper? If so, give Autoterror a try. I ran it for 2 million updates yesterday and it didnt slow down
|
|
|
Post by playaplaya on Feb 13, 2005 18:46:06 GMT -5
sorry i took a week vaction from scripting ^^. yea my bot i made just lags way down, even with high or low sleep values. lol. did u redo autoterror? send me alink if so. i would like to write an efficent script if your prog runs smoother than what im using ><. thanks cya.
|
|
|
Post by TinyTerror on Feb 14, 2005 0:37:21 GMT -5
How long did you leave it running? Are you still including FFACT_Helper at the top? I havent had this issue before. Its possible it might be an autoit thing. I don't know if these scripts were designed to run over long periods of time.
|
|