Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- While 1
- if disconnected() Then
- login()
- EndIf
- sleep(10000) ; wait time before checking if logged in set to 30seconds.
- WEnd
- Func login()
- sleep(60000) ; sleep 1min to ensure character is logged out of game after disconnecting.
- WinActivate ("FINAL FANTASY XIV: A Realm Reborn")
- sleep(1000)
- mouseclick("Left", 960, 597, 3)
- sleep(2000)
- mouseclick("Left", 952, 814, 3)
- Sleep(8000)
- mouseclick("Left", 1547, 141, 3)
- Sleep(2000)
- mouseclick("Left", 907, 554, 3)
- sleep(20000)
- EndFunc
- ; check to see if the game is d/c'd
- Func disconnected()
- sleep(2000)
- ; create a search box with these coordinates (the white part of ET next to server time)
- Local $x1 = 1769
- Local $y1 = 39
- Local $x2 = 1774
- Local $y2 = 41
- ; hex code for color to search
- Local $search_color = 0xFFFFFF
- Local $results = PixelSearch ( $x1, $y1, $x2, $y2, $search_color )
- if @error Then ; game disconnected
- Return True
- EndIf
- Return False
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement