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, o ;open friends
RandSleep(633,731)
MouseClick, left, 851, 361 ; 411 ;;invite
;Sleep, 500
RandSleep(633,731)
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(633,731)
MouseClick, left, 401, 615
RandSleep(633,731)
RandSleep(633,731)
Send, {ESC} ;open menu
RandSleep(933,1231)
MouseClick, left, 474, 572 ;click leave game
RandSleep(633,731)
MouseClick, left, 422, 615 ;confirm leave
Sleep, 4500 ;Wait timer to make sure highlvl left game - if not, increase sleeptimer
MouseClick, right, 460, 423 ;leave party
RandSleep(633,731)
MouseClick, left, 530, 587 ; confirm leave
RandSleep(633,731)
MouseClick, left, 400, 616 ; confirm leave again
RandSleep(633,731)
MouseClick, left, -607, 22 ;select window left
RandSleep(633,731)
Send, {ESC}
RandSleep(633,731)
Send, {ESC} ;open menu
RandSleep(633,731)
MouseClick, left, 474, 572 ;click leave game
RandSleep(633,731)
MouseClick, left, 422, 615 ;confirm leave
MouseClick, left, 1121, 415 ;resume game right side
RandSleep(633,731)
MouseClick, left, -607, 22 ;select window left
Sleep, 4100
;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(633,731)
MouseClick, left, %Px%, %Py% ;click adria
Sleep, 3500 ;Waittime for walking to adria, if pressing esc to fast/slow adjust (Depends on movespeed)
RandSleep(633,731)
Send, {ESC} ;close conversation
RandSleep(633,731)
Send, {ESC} ;close conversation
RandSleep(633,731)
MouseClick, left, -607, 22 ;select window left
RandSleep(633,731)
MouseClick, left, 181, 415 ;resume game
Sleep, 5100 ;Waittime before highlvl joins game - Time this yourself and adjust accordingly!
MouseClick, left, 1121, 415 ;resume game right side
RandSleep(633,731)
Send, {ESC}
sleep, 500
MouseClick, left, -607, 22 ;select window left
RandSleep(633,731)
sleep, 500
}
return ;restart script
RandSleep(x,y) {
Random, rand, %x%, %y%
Sleep %rand%
}
Pause:
pause
return
=============================================================================
Code:
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
{
;MouseClick, left, 1121, 415 ;resume game right side
RandSleep(633,731)
Send, o ;open friends
RandSleep(633,731)
MouseClick, right, 700, 361 ; 460 ; right click flist
RandSleep(633,731)
MouseClick, left, 740, 488 ; 600 ; join party
Sleep, 375 ;This sleep and next are the main ones.
;Runner must leave game before leecher loads into game, but after leecher connects
MouseClick, left, -607, 22 ;select window left
Sleep, 375
Send, {ESC} ;open menu
Sleep, 375
MouseClick, left, 474, 572 ;click leave game
Sleep, 375
MouseClick, left, 422, 615 ;confirm leave
Sleep, 3750
MouseClick, left, 181, 415 ;resume game
RandSleep(333,431)
;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
MouseClick, left, %Px%, %Py% ;click adria
Sleep, 2850 ;Waittime for walking to adria, if pressing esc to fast/slow adjust (Depends on movespeed)
RandSleep(633,731)
Send, {ESC} ;close conversation
RandSleep(533,631)
Send, {ESC} ;close conversation
RandSleep(533,631)
Send, {ESC} ;open menu
RandSleep(533,731)
MouseClick, left, 474, 572 ;click leave game
Sleep, 2800
}
return ;restart script
RandSleep(x,y) {
Random, rand, %x%, %y%
Sleep %rand%
}
Pause:
pause
return
NOTES and SETUP: