this is a code:
Code: Select all
#SingleInstance, Force
SetKeyDelay,0
x40 := 1050
x75 := 1075
HealthY := 163
Loop,
{
If WinActive("Tibia")
{
PixelGetColor, Check75, %x75%, %HealthY%
PixelGetColor, Check40, %x40%, %HealthY%
If (Check75 != 0x7D7DFF And Check40 != 0x7D7DFF)
Send, {End}
Else If (Check75 != 0x7D7DFF)
Send, {PageDown}
}
Sleep, 1000
}
Return
The problem is that the code would be to press a key with a certain percentage of life.
but it ends up spamming the key even with a full life.
I've done several tests and I can't imagine why
this image shows the tibia life bar could someone help me?
https://imgur.com/a/0jdWLuV