Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- #SingleInstance, Force
- SetBatchLines, 1ms
- SetKeyDelay,0
- xexura := 1853 ;2418-2508 2498 = 90% 2475 = 60%
- xvita := 1833
- xgran := 1850
- xsio := 1230 ;1080-1280 1230 = 80% 1210 = 70% 1190 = 60% 1170 = 50%
- xtrue := 1071
- HealthYsio := 419
- HealthY := 153
- Loop,
- {
- label:
- Sleep, %var%
- Random, var, 20, 40
- Random, vary, 5, 10
- Random, varx, 1001, 1030
- If WinActive("Tibia")
- {
- SetKeyDelay,%var%,%var%
- PixelGetColor, Checkexura, %xexura%, %HealthY% ;Pixel of %yourhp for exura
- PixelGetColor, Checkvita, %xvita%, %HealthY% ;Pixel of %yourhp for vita
- PixelGetColor, Checkgran, %xgran%, %HealthY% ;Pixel of %yourhp for egran
- If ((Checkexura != 0x7D7DFF) And (Checkvita != 0x7D7DFF))
- {
- Sleep, %vary%
- Send, {F8 down}
- Sleep, %var%
- Send, {F8 up}
- ;hotkey for exura vita
- Goto, label3 ;ignore rest of script if heal is done
- }
- Else
- If ((Checkgran != 0x7D7DFF) And (Checkexura != 0x7D7DFF))
- {
- Sleep, %vary%
- Send, {F2 down}
- Sleep, %var%
- Send, {F2 up} ;hotkey for exura gran
- Goto, label3 ;ignore rest of script if heal is done
- }
- Goto, label
- label3:
- Sleep, %varx% ;cooldown for healing
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement