Page 1 of 1

SWG Macro - Crafting Bot

Posted: May 19th, 2007, 8:57 pm
by errorist
Hello,

I wrote an AutoCrafter for SWG using the macro program AutoIt. I uploaded a video to show how it works, as well as the program itself. I have it crafting some Survey Tool, but you can change it to whatever you like. Right now, the macro only uses one resource, Metal. However, tomorrow I will make versions that can use Mineral, Polymer, Gas, etc. Some things you'll need before using. The files are all clean, feel free to scan them.

1. AutoIt: http://www.autoitscript.com/files/autoit3/autoit-v3.2.4.4-setup.exe

2. The video: http://www.megaupload.com/?d=SYVK4YM4

3.
a) The program http://www.megaupload.com/?d=HKK70NRP
b) The program in script form:

Code: Select all

;StarWarsGalaxies AutoCrafter v1.0 by Errorist
MsgBox("48", "AutoCrafter Version 1.0", "Have Fun - Errorist", 5)
Sleep("5000")
WinActivate("Star Wars Galaxies", "")
Sleep("10000")
Opt("MouseClickDownDelay", 10)
$i = 0
Do
If WinActive( "Star Wars Galaxies", "" ) Then    
   MouseClick("left", 643, 834, 2, 0)
   Sleep("2000")
   MouseClick("left", 751, 662, 2, 0)
   Sleep("2000")
   MouseClick("left", 363, 264, 16, 0)
   Sleep("2000")
   MouseClick("left", 867, 836, 2, 0)
   Sleep("2000")
   MouseClick("left", 799, 750, 2, 0)
   Sleep("2000")
   MouseClick("left", 919, 718, 2, 0)
   Sleep("4000")
   MouseClick("left", 681, 830, 2, 0)
   Sleep("2000")
   MouseClick("left", 751, 662, 2, 0)
   Sleep("2000")
   MouseClick("left", 363, 264, 16, 0)
   Sleep("2000")
   MouseClick("left", 867, 836, 2, 0)
   Sleep("2000")
   MouseClick("left", 799, 750, 2, 0)
   Sleep("2000")
   MouseClick("left", 919, 718, 2, 0)
   Sleep("4000")
   MouseClick("left", 719, 832, 2, 0)
   Sleep("2000")
   MouseClick("left", 751, 662, 2, 0)
   Sleep("2000")
   MouseClick("left", 363, 264, 16, 0)
   Sleep("2000")
   MouseClick("left", 867, 836, 2, 0)
   Sleep("2000")
   MouseClick("left", 799, 750, 2, 0)
   Sleep("2000")
   MouseClick("left", 919, 718, 2, 0)
   Sleep("4000")
Else
   WinActivate( "Star Wars Galaxies", "")
EndIf
Until $i = 1


Switch from Full Screen to Windowed Mode, to reset the windows default position. Make sure you have the SWG cursor enabled, so the macro is able to click around the screen.(Press Alt, lol) Have your hotkey bar in it's default position. If you don't have it default and don't want to set it to default, you can edit my script's coordinates to make it click to your liking(using AutoIt Window Info). (note: If you don't want to bother with figuring out the window's default location, you can just see where the program first clicks and align your #1 hotkey so it clicks it, the rest should work like clockwork.)
If you don't want to use the file I uploaded and chose to use the script form, save it to your desktop as ErroristsCrafter.au3.
Once you are ingame with the window positioned as shown, rightclick ErroristsCrafter and select Run Script. Thanks for reading and happy crafting.


Errorist

Posted: May 20th, 2007, 7:54 pm
by expurt
Can premiums yay or nay this please.

Posted: May 24th, 2007, 12:53 pm
by errorist
Not a single reply? Really makes ya think.

Posted: May 24th, 2007, 1:48 pm
by vinnyboy32
I got this to work actualy. Realy a good bot.

Posted: May 24th, 2007, 3:43 pm
by errorist
Yeah it works better than any crafting bot I've ever tried, and not just because it's my own. I think the people who read it and are afraid to use it think it's too hard to setup. You can get the whole thing up and running in about 4 minutes, the longest part of the setup is the download.

Posted: May 24th, 2007, 4:37 pm
by vinnyboy32
Yup big Yay on this one.

Posted: May 24th, 2007, 8:19 pm
by errorist
I'm gonna think of other things I could write AutoIt scripts for, inside SWG that is.

Posted: May 24th, 2007, 8:22 pm
by expurt
Moved to confirmed and submitted.

Posted: May 25th, 2007, 3:05 pm
by jasonswan
this is good, but theres already a highly configurable script in the macro section that does the same thing

Posted: May 25th, 2007, 3:37 pm
by errorist
If you have a suggestion on something you want to be able to macro, send me a PM or post here.

Posted: May 25th, 2007, 8:11 pm
by Tault_admin
nice one 1k to you.