Advertisement
Guest User

Untitled

a guest
Apr 10th, 2020
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn  ; Enable warnings to assist with detecting common errors.
  3. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  5.  
  6. SetKeyDelay, 0
  7. SetMouseDelay, 0
  8. Setbatchlines, -1
  9. #SingleInstance, Force
  10. x40 := 1851 ; change value if u want to heal more higher for example to 1855 or 1855 +.
  11. x39 := 1790 ;
  12. HealthY := 315 ; do not touch
  13.  
  14. Loop,
  15. {      
  16.     If WinActive("Tibia")
  17.     {
  18.             PixelGetColor, Check40, %x40%, %HealthY%
  19.             If(Check40 != 0x6161F1){
  20.                 sendInput {F4}}
  21.                 Random, rand, 400, 500
  22.                 Sleep, rand
  23.             }
  24.     ;}            
  25.     }
  26.         Random, rand, 400, 500
  27.         Sleep, rand
  28. }
  29. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement