Fair play for getting involved mate, nice work. ~rep
major overhaul of my macro/bot ! I've taken this thing a step further, and made 3 separate .exe files which will let you send our companions on different crew skills mission (either 1, 2 or 3) and improved the macro a little by forcing them to go on lower level missions if there are no higher level ones available.
i was pretty bored today so I decided to make a completely unnecessary video to compliment my little bot:
SWToR Crew Skills Bot - YouTube
download link: Crewskill Bot.rar
This bot only works on 1980x1080 resolution. but I think another (more knowledgeable) user is creating another bot that will cater for different resolutions too, so hang in there :P
The bot will do this sequence:
- Spams ESC to remove any open windows or popups
- Accepts any successful mission rewards
- Accepts any failed mission rewards
- Open up the Crew Skills window (keybind "H")
- Send your companions (max: 4) out on missions
- (If no missions are available for the highest skill level, then it will pick a lower level skill)
- *OPTIONAL* Clicks 8 times directly infront of your character. This is for farming chests in the world, but you must position your character so that the cursor clicks on the chest. Also, auto-loot must be enabled. If you don't want to use this, then it doesn't matter, all it does it click on the screen. It won't affect the bot at all if you don't use it.
- Sits down (keybind "," (comma))
- Waits for 30 seconds
- Repeats
######### SETUP #########
- You MUST be using 1920x1080 fullscreen resolution for this to work.
- You MUST change your keybind for "Toggle Crew Skills Pane" to the "H" key
- If you want to use the anti-AFK feature, you MUST change the keybind for "Sit / Move Down" to the "," (comma) key, or if you want it to jump every 30 seconds instead, then just bind 'Jump' to the "," key instead.
and i know, before anyone says it, this bot is an incredibly basic, crude & messily written thing, but we've all gotta start somewhere, right?
- xiandri
I have included the original post I made in the spoiler below:
[spoiler]This is the first autoit macro i've ever created, so my apologies for it being very basic, but it does work very well... and people do say that the most simple solution is often the best!
so basically, this will send 4 companions out to do the 3rd crew skill you have (these ones). it will just pick the mission at the top of the list, and does not make any distinction between them
** IF IT DOESN'T WORK FOR YOU, THEN TRY RIGHT-CLICK THE MACRO FILE, CLICK ON 'COMPILE SCRIPT (x86 )', THEN RUN THE .EXE AS AN ADMINISTRATOR!! **
SETUP:
- you NEED to have the game on 1920 x 1080 resolution to work, and the game must be in fullscreen (or fullscreen windowed)
- you NEED to have your 'open crew skill' window bound to the 'H' key
- *OPTIONAL* bind your 'sit / move down' key to ',' (comma) key (this is for anti-AFK)
- *OPTIONAL* turn on 'auto-loot' at the ingame options menu, if you want to use the chest farm
WHAT THIS MACRO DOES:
- clears any popups or rogue windows that are open (spams esc)
- opens the crew skill window (presses H to open it)
- opens any 'pending' mission rewards you have
- accepts any mission rewards you have, and any 'failed' mission rewards
- clicks your 3rd crew skill for companion (these are the '3rd' crew skills))
- sends the companion on mission at the top of the list
- >>>repeats this 4 times in total (it doesn't matter if you can't actually send out 4 companions)<<<
- clicks 8 times directly infront of your character (this is for farming chests, but you must position your character like in this screenshot)
- sits down (presses the , (comma) key, which should be bound to 'sit')
*** if you don't want to farm chests then it will just click on the screen anyway. not a problem.***
THE MACRO (autoit version 3.3., just copy and paste this whole macro into autoit 3 and then save it, then right-click on the file and click 'Run Script', then alt-tab back to SWToR and press F5 to start the macro. press F6 to stop it.
enjoy itCode:#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.8.0 Author: Xiandri #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here AutoItSetOption ( "MouseCoordMode", 2 ) AutoItSetOption ( "PixelCoordMode", 2 ) HotkeySet ("{F5}", "Start") HotkeySet ("{F6}", "Stop") WinActive("Star Wars: The Old Republic") ToolTip("CrewSkill Bot: Press F5 to start, F6 to stop.", 0, 0) SendKeepActive("Star Wars: The Old Republic") Func Start () WinActivate ("Star Wars: The Old Republic") $i=1 While $i<3600001 ToolTip("CrewSkill Bot: Running missions...", 0, 0) Send('{ESCAPE}') Sleep(250) Send('{ESCAPE}') Sleep(250) Send('{ESCAPE}') Sleep(250) Send('{ESCAPE}') Sleep(250) Send('{ESCAPE}') Sleep(250) ;anti AFK (sits down) **YOU MUST BIND YOUR 'SIT DOWN' KEY TO "," (comma) for this to work!!** Send(",") Sleep(250) ;open the crew skill window Send("h") Sleep(250) MouseClick("Left", 1832, 13, 1) Sleep(250) ;accept sucessful mission rewards before sending companions out on new missions MouseClick("Left", 1766, 700, 1) Sleep(100) MouseClick("Left", 1766, 710, 1) Sleep(250) MouseClick("Left", 1766, 720, 1) Sleep(100) MouseClick("Left", 1766, 730, 1) Sleep(100) MouseClick("Left", 1766, 740, 1) Sleep(100) MouseClick("Left", 1766, 750, 1) Sleep(100) MouseClick("Left", 1766, 760, 1) Sleep(100) MouseClick("Left", 1766, 770, 1) Sleep(100) MouseClick("Left", 1766, 780, 1) Sleep(100) MouseClick("Left", 1766, 790, 1) Sleep(100) ;accept failed mission rewards MouseClick("Left", 1766, 745, 1) Sleep(100) MouseClick("Left", 1766, 745, 1) Sleep(100) MouseClick("Left", 1766, 745, 1) Sleep(100) MouseClick("Left", 1766, 745, 1) Sleep(100) ;send companions out ;1st companion, 3rd crew skill MouseClick("Left", 280, 475, 1) Sleep(100) MouseClick("Right", 1576, 363, 1) Sleep(100) ;------- ;click lower level missions if needed.. ;selects level 41-48 missions MouseClick("Left", 1682, 271, 1) Sleep(100) MouseClick("Left", 1680, 375, 1);41-48 Sleep(100) MouseClick("Right", 1576, 363, 1) Sleep(100) ;selects level 33-40 missions MouseClick("Left", 1682, 271, 1) Sleep(100) MouseClick("Left", 1680, 355, 1);33-40 Sleep(100) MouseClick("Right", 1576, 363, 1) Sleep(100) ;selects level 25-32 missions MouseClick("Left", 1682, 271, 1) Sleep(100) MouseClick("Left", 1680, 336, 1);25-32 Sleep(100) MouseClick("Right", 1576, 363, 1) Sleep(100) ;------ ;2nd companion, 3rd crew skill MouseClick("Left", 280, 575, 1) Sleep(300) MouseClick("Right", 1576, 363, 1) Sleep(300) ;------- ;click lower level missions if needed.. ;selects level 41-48 missions MouseClick("Left", 1682, 271, 1) Sleep(100) MouseClick("Left", 1680, 375, 1);41-48 Sleep(100) MouseClick("Right", 1576, 363, 1) Sleep(100) ;selects level 33-40 missions MouseClick("Left", 1682, 271, 1) Sleep(100) MouseClick("Left", 1680, 355, 1);33-40 Sleep(100) MouseClick("Right", 1576, 363, 1) Sleep(100) ;selects level 25-32 missions MouseClick("Left", 1682, 271, 1) Sleep(100) MouseClick("Left", 1680, 336, 1);25-32 Sleep(100) MouseClick("Right", 1576, 363, 1) Sleep(100) ;------ ;3rd companion, 3rd crew skill MouseClick("Left", 280, 675, 1) Sleep(300) MouseClick("Right", 1576, 363, 1) Sleep(300) ;------- ;click lower level missions if needed.. ;selects level 41-48 missions MouseClick("Left", 1682, 271, 1) Sleep(100) MouseClick("Left", 1680, 375, 1);41-48 Sleep(100) MouseClick("Right", 1576, 363, 1) Sleep(100) ;selects level 33-40 missions MouseClick("Left", 1682, 271, 1) Sleep(100) MouseClick("Left", 1680, 355, 1);33-40 Sleep(100) MouseClick("Right", 1576, 363, 1) Sleep(100) ;selects level 25-32 missions MouseClick("Left", 1682, 271, 1) Sleep(100) MouseClick("Left", 1680, 336, 1);25-32 Sleep(100) MouseClick("Right", 1576, 363, 1) Sleep(100) ;------ ;4th companion, 3rd crew skill MouseClick("Left", 280, 775, 1) Sleep(300) MouseClick("Right", 1576, 363, 1) Sleep(300) ;------- ;click lower level missions if needed.. ;selects level 41-48 missions MouseClick("Left", 1682, 271, 1) Sleep(100) MouseClick("Left", 1680, 375, 1);41-48 Sleep(100) MouseClick("Right", 1576, 363, 1) Sleep(100) ;selects level 33-40 missions MouseClick("Left", 1682, 271, 1) Sleep(100) MouseClick("Left", 1680, 355, 1);33-40 Sleep(100) MouseClick("Right", 1576, 363, 1) Sleep(100) ;selects level 25-32 missions MouseClick("Left", 1682, 271, 1) Sleep(100) MouseClick("Left", 1680, 336, 1);25-32 Sleep(100) MouseClick("Right", 1576, 363, 1) Sleep(100) ;------ ;CHEST FARMING THING *optional* ;this part of the macro is for farming a chest while you craft items ;zoom your camera out to the max and position it so it is directly above your character (so you are looking down at the top of their head) ;this part will click directly infront of your character 8 times in a vertical line (starting from your characters head) MouseClick("Right", 958, 540, 1) Sleep(1500) MouseClick("Right", 958, 520, 1) Sleep(1500) MouseClick("Right", 958, 500, 1) Sleep(1500) MouseClick("Right", 958, 480, 1) Sleep(1500) MouseClick("Right", 958, 460, 1) Sleep(1500) MouseClick("Right", 958, 440, 1) Sleep(1500) MouseClick("Right", 958, 420, 1) Sleep(1500) MouseClick("Right", 958, 400, 1) Sleep(1500) ;wait for 30 seconds Sleep(30000) WEnd EndFunc While (1) Sleep (1) WEnd Func Stop () Exit 0 EndFunc[/spoiler]
Last edited by Xiandri; 01-10-2012 at 03:58 PM. Reason: updated to send crew out on lower level missions if it runs out of higher level missions
Fair play for getting involved mate, nice work. ~rep
thanks
tested it last night, and it worked... only problem was it ran out of missions to send my companions on because it was leveling the crew skill too fast. gonna tweak it so that it will send companions out on lower level missions if higher level ones are not available
i'll upload the modified macro incase anyone wants it :P mostly this is for my own personal use but i think this could be really useful for grinding materials and leveling the skills!
Hey, I play on my 32-inch tv, so the resolution only goes up to 1366x768, what would i have to do to get it to work with that?
you NEED to have the game on 1920 x 1080 resolution to work
That sucks, but can edit it to make it work on lower resolutions right? Also using AutoScript or other? Would be nice to see it on 800x600 resolutions since its pretty default resolutions as well as 1280x768 (I think default web resolution). I am using 1600x1024
+1 Rep though![]()
Did all that and when I hit F5 nothing works. I saved your script as a .au3 file, chose it when the pop up box for "Run Script x86" comes up, goes back into the game as instructed and nothing happens. Any ideas?
Thanks! That works but it's choosing the missions I'm maxed out for, lol. My third crew skill isn't being chosen when I open up the Crew Skills Window. it's going to the middle one which is Archaeology. My third is Underworld Trading. Any way to make it chose that one instead? Maybe move it over a few clicks?
awesome thanks mate! do you know the coords for 2nd crew skill so that i can change the code to this?
you guys can change the position it moves the mouse to
you just need to find out what the mouse cordinates are, then edit the macro. i use this website: CodeLifter.com - JavaScript Capturing the Mouse X-Y Position Mini-Tutorial and Script
then I make the site fullscreen (F11 in google chrome),
then I alt-tab back into SWToR and put my mouse over the thing i wanna find the cordinates for,
then I alt-tab back to the website and i write the numbers down
then you need to right-click the autoit macro, click 'Edit', then you need to change
you need to change this part mainly = MouseClick("Left", xxx, yyy, 1)Code:;1st companion, 3rd crew skill MouseClick("Left", 280, 475, 1) <-- this part clicks on the crew skill panel (the one that shows which crewskills you have and their level) Sleep(100) MouseClick("Right", 1576, 363, 1) <-- this part clicks on the actual missions that popup when you click on a crew skill (the widnow that says a description of the mission and how much it costs .etc) Sleep(100)
put your X cordinates in the xxx part, and the Y cordinates in the Y part
now the macro will move your mouse to the cordinates that you specified
goodluck
---------- Post added at 08:21 PM ---------- Previous post was at 07:50 PM ----------
updated the macro to now send crew out on lower level missions if it runs out of higher level missions
kinda rushed doing this since its 1am here, but on testing it seems to work. gonna leave it afk for a few hours and see how it does
this works great and I have it set so that 1 companion is doing the second tradeskill while the rest are doing the third.
None of the other crew skill bots on here would work for me but this one is flawless.
+rep'd you
thankyou sir!
i tested it last night for 6 hours, went from 250 underworld trading to almost 400
success!![]()
Not sure what the issue is but it didn't move on to the next quest after my companions came back from the next one. I woke up to see the Quest Completed with rewards window opened and the script didn't click the Accept button on the screen.
Yes and yes. it's in Full Screen Windowed mode so I can alt-tab out. One thing I did notice when I started it to is that it would open up the Options window and not even open up the Crew Skills window which I had to do manually. Also, if you're tracking any quests it would open those as the cursor would start on the right side of the screen and slowly move downward selecting the individual missions. So something is not right, maybe it's just working on your computer but mine is set up EXACTLY how you specified.
Bookmarks