Code:
; Script
Hotkey, F2, Pause ; If different pausebutton is needed, replace F2 with hotkey code
F1:: ; If different pausebutton is needed, replace F1 with hotkey code
loop
{
Send, f ;open friends
RandSleep(101,431)
MouseClick, left, 851, 358 ;invite
;Sleep, 500
RandSleep(301,431)
MouseClick, left, 1780, 890 ;accept invite - If too fast, increase sleeptimer one rule above this
; This next click is needed when you don't leave game with lowlvl correctly, this happens ad random to me
; When script did leave the game like its supposed to, nothing happens.
RandSleep(501,831)
MouseClick, left, 401, 615
RandSleep(201,401)
Send, {ESC} ;open menu
RandSleep(101,211)
MouseClick, left, 474, 572 ;click leave game
RandSleep(101,201)
MouseClick, left, 422, 615 ;confirm leave
Sleep, 5000 ;Wait timer to make sure highlvl left game - if not, increase sleeptimer
MouseClick, left, 480, 615 ; ok error
RandSleep(101,201)
Send, o
RandSleep(201,401)
MouseClick, right, 480, 423 ;leave party
RandSleep(201,431)
MouseClick, left, 530, 587 ; confirm leave
RandSleep(201,431)
MouseClick, left, 400, 616 ; confirm leave again
RandSleep(201,431)
MouseClick, left, -407, 476 ;select window left
RandSleep(301,431)
Send, {ESC}
RandSleep(301,431)
Send, {ESC} ;open menu
RandSleep(301,431)
MouseClick, left, 474, 572 ;click leave game
RandSleep(301,431)
MouseClick, left, 422, 615 ;confirm leave
Sleep, 2000
MouseClick, left, 1125, 415 ;resume game right side
RandSleep(100,200)
Send, o ;close all windows right side this is incase resume was greyed out on previous run
MouseClick, left, 162, 415 ;resume game right side
RandSleep(301,431)
RandSleep(100,200)
MouseClick, left, -788, 415 ;resume game left
RandSleep(150,300)
Sleep, 3500
;SEARCH FOR ADRIA, you spawn at different locations so have to perform a pixelsearch
;Color might not work for everyone, use windowspy to find color that works for you
Pixelsearch, Px, Py, 970, 40, 1145, 120,0x1E2438, 4, fast
RandSleep(301,467)
MouseClick, left, %Px%, %Py% ;click adria
Sleep, 3000 ;Waittime for walking to adria, if pressing esc to fast/slow adjust (Depends on movespeed)
;RandSleep(401,631)
Send, {ESC} ;close conversation
RandSleep(201,431)
Send, {ESC} ;close conversation
RandSleep(201,431)
;MouseClick, left, -407, 476 ;select window left
;Sleep, 1000 ;Waittime before highlvl joins game - Time this yourself and adjust accordingly!
;MouseClick, left, 1445, 574 ;resume game right side
;RandSleep(401,531)
;Send, {ESC}
;sleep, 500
MouseClick, left, -407, 476 ;select window left
RandSleep(401,631)
sleep, 1000
}
return ;restart script
RandSleep(x,y) {
Random, rand, %x%, %y%
Sleep %rand%
}
;1440,615
;480,615
Pause:
pause
return