• Log in or sign up for an account here: https://www.sythe.org/login

Ardy Knights AHK Help

pubby

Newcomer
Joined
Jul 17, 2016
Sythe Gold
0
Messages
8
Age
31
Currently using this script. How would you add pressing the ESC button and having a small delay and pressing it again to go back to thieving. Ideally it would be random per 18-25 pickpockets
q::
t:=!t
While (t){
Click down
SLeep 20
Click up
Random, rand, 80, 450
Sleep % rand

}
return
 
Potamus
Heidy
<3 n4n0
Two Factor Authentication User
Click down
SLeep 20 //you should use random sleep here also.
Click up

What kind of programming language is that?

Anyway, I would do it like this: before starting the script you should make a variable like:
int n = Random(18, 25);
And also make a counter before while.

q::
t:=!t
//int n = Random(18, 25);
//int counter = 0;

While (t){
Click down
SLeep 20
Click up
Random, rand, 80, 450
Sleep % rand

}
return

Then at the end of your while you should count clicks and check if clicks is equal to n:

q::
t:=!t
//int n = Random(18, 25);
//int counter = 0;

While (t){
Click down
SLeep 20
Click up
Random, rand, 80, 450
Sleep % rand
//counter = counter + 1;
//if(counter == n){
// //Press ESC button here
// Sleep(Random(1221, 5959)); //sleep here
// counter = 0; //reset counter
// n = Random(18, 25); //generate new random value
// //Press ESC button here
//}

}
return

I hope you know Java/C# basics. I don't know what kind of language is that so I wrote the code in Java(let's say)... Anyway, you know now how your code should work.
 
Last edited:
Runescape Gamblingrunescape gambling
Back
Top