Code:
#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
enjoy it