Page 1 of 1

Very simple AutoIt forage bot.

Posted: July 5th, 2008, 10:42 pm
by genosis
This bot is made extremly simple so that as many people as possible can understand the way AutoIT works, and start to gleen the possibilities with it.
Hope you find it usefull (either ingame, or as a learning tool).
Feel free to ripp any or all parts of the code, its open source as far as im concerned.

Code: Select all

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.2.13.3 (beta)
 Author:         Genosis (aka Shadowlord_gbg) 
 
 Greetings: 	 To all my old friends, you know who you are.

 Script Function:
	Very basic and simple forage bot for SWG, after 10 forages it randomly changes direction slightly...
	Best used on planets sutch as Tatooine!
	This is NOT the one im currently working on, but rather a "taste test".
	The bot asumes that you have placed your "forage" macro link in the "0" slot on your toolbar.
	(and that you have mapped zero to it) 
	To exit the bot, use CTRL+ALT+X.
	
	If you have any questions you can contact me on genosis_do@hotmail.com
	
#ce ----------------------------------------------------------------------------

WinWaitActive ("Star Wars Galaxies");
HotKeySet("^!x", "ExitBot")
While 1=1
	$i = 0
	While $i <= 10
		Send ("{0}")
		Sleep (1000)
		Send ("{w down}")
		Sleep (2000)
		Send ("{w up}")
		$i = $i + 1
	WEnd
	$move = Random (1, 100, 1)
If $move < 50 Then
	Send ("{a down}")
	Sleep (500) 
	Send ("{a up}")
Else
	Send ("{d down}")
	Sleep (500)
	Send ("{d up}")
EndIf
WEnd
Func Exitbot()
    Exit 
EndFunc 
I recomend you use SciTE to look at the code with, marks everything so its easy to understand.
(if your going to use it for learning)

Posted: July 8th, 2008, 1:40 am
by Tault_admin
Can members say yay or nay to this so we may give tu bucks and/or premium. If you nay the submission remember to include as to why.

Posted: July 15th, 2008, 8:26 am
by genosis
Ok, so people probably dont know how to use the script..
Here's a script file, and compiled exe same settings still aply..