Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ^h::
- WinTitle = ahk_exe client.exe
- HpYPosition = 43
- MpYPosition = 56
- 0PercentXPosition = 1775
- 10PercentXPosition = 1784
- 20PercentXPosition = 1793
- 30PercentXPosition = 1802
- 40PercentXPosition = 1811
- 50PercentXPosition = 1820
- 60PercentXPosition = 1830
- 70PercentXPosition = 1839
- 80PercentXPosition = 1848
- 90PercentXPosition = 1857
- 100PercentXPosition = 1866
- RedHpColor = 0xF16161
- BlueMpColor = 0x6562F0
- Loop
- {
- if (not WinActive(WinTitle))
- {
- Sleep, 100
- Continue
- }
- PixelGetColor, EmergencyHpColor, 40PercentXPosition, HpYPosition, RGB
- if (EmergencyHpColor = RedHpColor)
- {
- }
- else
- {
- ControlSend,, {Numpad3}, %WinTitle%
- Sleep, 500 ; Simulate human-like delay
- Continue
- }
- PixelGetColor, NormalHpColor, 50PercentXPosition, HpYPosition, RGB
- if (NormalHpColor = RedHpColor)
- {
- PixelGetColor, MpColor, 70PercentXPosition, MpYPosition, RGB
- if (MpColor = BlueMpColor)
- {
- }
- else
- {
- ControlSend,, {Numpad0}, %WinTitle%
- Sleep, 500 ; Simulate human-like delay
- Continue
- }
- }
- else
- {
- }
- Sleep, 30
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement