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.
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
#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)