[MAC] Anti - AFK - Bot

07/25/2007 15:54 Zentral#1
Original von tamen
Quote:
This is for Macintosh only!

Macintosh comes with AppleScript installed. And AppleScript is all you need for this to work, so no third-party apps needs to be installed.

Open up Script Editor and make a new script.

Paste the following code into it:

Code:
repeat X times
tell application "System Events"
tell application "World of Warcraft" to activate
key code 49
end tell
delay Y
end repeat
Replace X with how many times you want the loop to be run, that is how many times you want your char to be jumping. Replace Y with how long between the jumps in seconds.

If you set X = 10 and Y = 7, your char will jump 10 times with 7 seconds between jumps. Not really useful. But if you scale Y up to something near half an hour, you got yourself an Anti-AFK bot, running for X*Y seconds.

You may want to "random-up" Y. So as not to be too predictable. Half an hour in seconds is 1800, so you might want this script:

Code:
repeat 10 times
tell application "System Events"
tell application "World of Warcraft" to activate
key code 49
end tell
delay (random number from 1200 to 1800)
end repeat
The above code will make your char breake AFK 10 times with 20-30 minutes between jumps.

Script Editor can save the above script as an application. Here is a step-by-step:

1: Open Script Editor (Applications/AppleScript/Script Editor)
2: Copy/Paste code from above
3: Save (Choose "application" in "File Format"
4: Run your sparkly new anti-AFK bot.
5: Profit ;)
07/27/2007 23:04 bumhunter#2
mac 4tw..
danke zentral
06/04/2008 22:12 LLeoisimba#3
3h ban :)
06/05/2008 07:05 0x1337#4
Quote:
Originally Posted by LLeoisimba View Post
3h ban :)
bitte aufhören monate alte threads wieder hochzupushen.

pls stop pushing old threads.

mfg
06/05/2008 09:59 bumhunter#5
naja wen er wegen dem script gebannt wurde machts sinn das er es hier schnell postet finde ich, nur bezweifle ich das es wegen dem script ist :)
07/03/2008 15:22 Greggus#6
A script with this technique for Mac OS X is great, but for powerleveling, how can i use a script with Script Editor ?

Thanks :)