Code:
; Script by 08449, also known as Adessis
; Version 1.2
; 6/21/2012
; Working with patch 1.03
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(101,431)
MouseClick, left, 851, 359 ;invite
RandSleep(501,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(301,431)
MouseClick, left, 401, 615
RandSleep(301,431)
MouseClick, left, -607, 22 ;select window left
RandSleep(401,631)
MouseClick, left, 181, 415 ;resume game
Sleep, 4000 ;Waittime before highlvl joins game - Time this yourself and adjust accordingly!
RandSleep(101,431)
Send, {ESC} ;open menu
RandSleep(101,431)
MouseClick, left, 474, 572 ;click leave game
RandSleep(101,231)
MouseClick, left, 422, 615 ;confirm leave
Sleep, 500 ;Wait timer to make sure highlvl left game - if not, increase sleeptimer
RandSleep(401,531)
;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(201,367)
MouseClick, left, %Px%, %Py% ;click adria
Sleep, 3500 ;Waittime for walking to adria, if pressing esc to fast/slow adjust (Depends on movespeed)
RandSleep(101,431)
Send, {ESC} ;close conversation
RandSleep(101,431)
Send, {ESC} ;close quest complete panel
RandSleep(101,431)
Send, {ESC} ;open menu
RandSleep(101,431)
MouseClick, left, 474, 569 ;click leave game
RandSleep(101,231)
MouseClick, left, -392, 144 ;select window left
RandSleep(101,231)
sleep, 1500
}
return ;restart script
RandSleep(x,y) {
Random, rand, %x%, %y%
Sleep %rand%
}
Pause:
pause
return