Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

#Include <Misc.au3>
Opt("WinWaitDelay", 100)
Opt("WinTitleMatchMode", 4)
Opt("WinDetectHiddenText", 1)
Opt("PixelCoordMode", 2)
Opt("MouseCoordMode", 2)
;~ Hold END To stop the bot
HotKeySet("{END}", "Terminate")
$pickuplabitems = 0
$ColorHP = 0
$ColorMP = 0
$sit = 0
$sit1 = 0
While $pickuplabitems = 0
WinWait("Nomad", "")
If Not WinActive("Nomad", "") Then WinActivate("Nomad", "")
WinWaitActive("Nomad", "")
Sleep(1000)
Send("{` 20}") ;use auto pickup ;~ Send("{` 20}") ;Presses the ` key 20 times for picking up items
$ColorHP = PixelGetColor(180, 36)
If $ColorHP = 592137 and $sit = 0 Then ;Checking For low HP in deciaml not hexa.
$ColorHP = 0
Send("{t Down}") ;Use heal item
Sleep(500)
Send("{t Up}")
Sleep(25000)
$sit = 1
Elseif $ColorHP <> 592137 and $sit = 1 Then
$sit = 0
Send("{t}")
Sleep(500)
Else
Sleep(1000)
Send("{space down}") ;use to auto fight pressing Space, 2 times
Send("{z up}")
sleep(700)
Send("{space down}")
Send("{q up}")
Sleep(15000)
EndIf
send("{d}")
WEnd
;~ Terminates the bot
Func Terminate()
$MB_MsgBoxButtons = 5 ;What buttons that show in messagebox 5 = Retry and Cancel
$MB_Cancel = 2 ;What button is pressed to exit the script 2 = Cancel, If Cancel buton is pushed the script stops.
If MsgBox($MB_MsgBoxButtons, "You Stopped the Bot!", "Retry or Cancel the bot?") == $MB_Cancel Then
Exit
EndIf
EndFunc ;==>Terminate ;Created by: Lab
