; ----------------------------------------------------------------------------
;
; Author: tMs
; Script Function: Anti Afk Warzone
;
; ----------------------------------------------------------------------------
AutoItSetOption ( "MouseCoordMode", 2 ) ; Do not change this parameter! It's needed for windowed.
AutoItSetOption ( "PixelCoordMode", 2 ) ; Do not change this parameter! It's needed for windowed.
local $signup = 0
local $inwarzone = 0
local $bike = 0
local $0hp = 0
local $antiafk = 0
local $inhuttball = 0
local $invoidstar = 0
local $warzonefinished = 0
WinActive("Star Wars: The Old Republic")
ToolTip("Starting BOT", 0, 0)
SendKeepActive("Star Wars: The Old Republic")
While $signup < 1
sLeep(2500)
prepare()
WEnd
Func prepare()
WinActive("Star Wars: The Old Republic")
TooLTip("Signing up for a warzone", 0, 0)
MouseClick ("primary", 1009, 734, 2)
sleep(500)
MouseClick ("primary", 508, 510, 2)
sleep(500)
$signup = $signup + 1
ToolTip("Signed up, waiting for popup window", 0, 0)
waitforqueue()
EndFunc
Func waitforqueue()
WinActive("Star Wars: The Old Republic")
while 1
$pixel = PixelSearch(406, 105, 617, 173, 0xE84344, 1)
If @error = 0 Then
Tooltip("Warzone is ready, joining warzone", 0, 0)
sleep(1000)
MouseClick ("primary", 455, 158, 2)
warzoneselection()
EndIf
WEnd
EndFunc