Code:
; 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)
; Exits out of open Windows
$x = 0
Do
Send('{ESCAPE}')
Sleep(Random(200, 400, 1))
$x = $x + 1
Until $x > 5
;anti AFK (sits down) **YOU MUST BIND YOUR 'SIT DOWN' KEY TO "," (comma) for this to work!!**
Send(",")
Sleep(Random(200, 400, 1))
;open the crew skill window
Send("h")
Sleep(Random(200, 400, 1))
LeftClicker(1832, 13)
;accept sucessful mission rewards before sending companions out on new missions
$x = 1766
$y = 10
$Counter = 0
Do
LeftClicker($x, 700 + ($y * $Counter))
$Counter = $Counter + 1
Until $Counter > 9
;accept failed mission rewards
$Counter = 0
Do
LeftClicker(1766, 745)
$Counter = $Counter + 1
Until $Counter > 4
$ThirdCrewSkillX = 280
$AcceptCrewX = 1576
$AcceptCrewY = 363
$NumberOfCompanions = 4
$Counter = 1
Do
LeftClicker($ThirdCrewSkillX, (375 + ($Counter * 100)))
RightClicker($AcceptCrewX, $AcceptCrewY)
ClickMissions()
$Counter = $Counter + 1
Until $Counter > $NumberOfCompanions
;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)
;$Counter = 0
;Do
; RightClicker(958, (400 + ($Counter * 20)))
; $Counter = $Counter + 1
;Until $Counter > 7
;wait for 30 seconds
Sleep(30000)
WEnd
EndFunc
While (1)
Sleep (1)
WEnd
Func Stop ()
Exit 0
EndFunc
Func LeftClicker ($x, $y)
MouseClick("Left", $x, $y, 1)
Sleep(Random(100, 400, 1))
EndFunc
Func RightClicker ($x, $y)
MouseClick("Right", $x, $y, 1)
Sleep(Random(100, 400, 1))
EndFunc
Func ClickMissions ()
;click lower level missions if needed..
;selects level 41-48 missions
LeftClicker(1682, 271)
LeftClicker(1680, 375) ;41-48
RightClicker(1576, 363)
;selects level 33-40 missions
LeftClicker(1682, 271)
LeftClicker(1680, 355) ;33-40
RightClicker(1576, 363)
;selects level 25-32 missions
LeftClicker(1682, 271)
LeftClicker(1680, 336) ;25-32
RightClicker(1576, 363)
;------
EndFunc