Sign in to follow this  
Followers 0
Joker

Help with loop

8 posts in this topic

#1 ·  Posted (edited)

Made the script just fine and so on i just cant seem to get the func i want to loop to actually loop

any help would be great i also attached the script the scrip dont have any loop stuff set up in it this is just the func that i need looped

Hotkeyset("{End}","TogglePause")

hotkeyset("{Home}","farm")

While 1

sleep(100)

wend

func farm()

;send code

send("x")

sleep(random(1000,6000))

send("{w down}")

sleep(2000)

send("{w up}")

sleep(random(4000,8000))

send("{w down}")

sleep(random(13000,15000))

send("{w up}")

send("v")

sleep(random(1000, 4000))

send("{space down}")

sleep(1000)

send("{space up}")

sleep(random(1000,2500))

mouseclick("left" ,604,73,3)

sleep(1000)

mouseclick("left" ,584,216,1)

sleep(1000)

mouseclick("left" ,770,439,1)

sleep(200)

mouseclick("left" ,770,439,1)

sleep(200)

mouseclick("left" ,770,439,1)

sleep(200)

mouseclick("left" ,770,439,1)

sleep(200)

mouseclick("left" ,770,439,1)

sleep(200)

mouseclick("left" ,770,439,1)

sleep(200)

mouseclick("left" ,770,439,1)

sleep(200)

mouseclick("left" ,770,439,1)

sleep(200)

mouseclick("left" ,770,439,1)

sleep(200)

mouseclick("left" ,770,439,1)

sleep(200)

mouseclick("left" ,770,439,1)

sleep(200)

mouseclick("left" ,770,439,1)

sleep(200)

mouseclick("left" ,770,439,1)

sleep(200)

mouseclick("left" ,770,439,1)

sleep(200)

mouseclick("left" ,770,439,1)

sleep(2000)

mouseclick("left" ,864,438,1)

sleep(1000)

mouseclick("left" ,1164,281,1)

sleep(2000)

send("{s down}")

sleep(5000)

send("{s up}")

sleep(random(1000,3000))

send("{q down}")

sleep(random(16000,18000))

send("{q up}")

sleep(random(1000,6000))

send("{w down}")

sleep(random(9000,12000))

send("{w up}")

sleep(random(1000,3000))

send("1")

sleep(random(1200,2000))

send("2")

sleep(random(500,1500))

send("c")

sleep(200)

send("3")

sleep(random(1500,3000))

send("4")

sleep(9000)

send("{; down}")

sleep(500)

send("{; up}")

send("{space down}")

sleep(500)

send("{space up}")

sleep(500)

send("{; down}")

sleep(500)

send("{; up}")

send("{space down}")

sleep(500)

send("{space up}")

sleep(500)

send("{; down}")

sleep(500)

send("{; up}")

send("{space down}")

sleep(500)

send("{space up}")

sleep(500)

send("{; down}")

sleep(500)

send("{; up}")

send("{space down}")

sleep(500)

send("{space up}")

sleep(500)

send("{; down}")

sleep(500)

send("{; up}")

send("{space down}")

sleep(500)

send("{space up}")

sleep(500)

send("{; down}")

sleep(500)

send("{; up}")

send("{space down}")

sleep(500)

send("{space up}")

sleep(500)

send("{; down}")

sleep(500)

send("{; up}")

send("{space down}")

sleep(500)

send("{space up}")

sleep(500)

send("{; down}")

sleep(500)

send("{; up}")

send("{space down}")

sleep(500)

send("{space up}")

sleep(500)

send("{; down}")

sleep(500)

send("{; up}")

send("{space down}")

sleep(500)

send("{space up}")

sleep(500)

send("{; down}")

sleep(500)

send("{; up}")

send("{space down}")

sleep(500)

send("{space up}")

sleep(random(500,3000))

send("/")

send("resign")

sleep(random(1200,3000))

send("{ENTER}")

sleep(random(2000,4000))

mouseclick("left",632,527)

sleep(random(2000,4000))

;send code

EndFunc

Edited by Joker

Share this post


Link to post
Share on other sites



You don't specify anything about the loop?

Search help for "Language Reference - Loop Statements"

For $i = 1 to 10
    farm()
Next

BTW: I hope it's not a bot.

D

Share this post


Link to post
Share on other sites

ah i needed a second line with the farm uh i feel stupid now lol and no its not a bot

Share this post


Link to post
Share on other sites

hmm where should i add this i seem to be placing it wrong wont run uhhhh man i need to freshen up on this stuff again

Share this post


Link to post
Share on other sites

and i dont need a next function just need the one to repeat like 200 times then just be done so how do i set this up? man im sure this is all simple but im so outta touch

Share this post


Link to post
Share on other sites

is this for guild wars do you know how to write a proper sentence or even capital letters do you know how confusing your questions are?

Sorry...

Share this post


Link to post
Share on other sites

and i dont need a next function just need the one to repeat like 200 times then just be done so how do i set this up? man im sure this is all simple but im so outta touch

Could be as simple as reading this post again, and changing the 10 to 200..

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

i realize that making the 10 to 200 is what i need to do and no this is not for guild wars and is not a bot. And i dont need correct grammer or any of that i mean i am a gamer i dont use that lol but anyway i cant get the loop to actually work so i need to know where to put the loop but thanx for the help anyway i will eventually figure it out like i said i just need to freshen up on autoit again thanks anyway guys/gals

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0