Hi everyone, I have created a simple code to attack zombies in Payon cave. It is very much effective in finding zombies and attacking them, but the Auto pots (potion) was not working anymore. Is there something wrong with my code? Please see below
ALso, I would like to add more color pixels for the other monsters that I would like to attack. Can I just add another If within the AutoAttack function? or is it another function? If so how would it look like?
I got the codes from dupikien and the contributors in his thread. Kudos to you guys!
Thanks in advance guys.
Code:
begin
Function.Execute("AutoPots")
Function.Execute("AutoAttack")
end
function("AutoPots")
begin
if Color.At coordinate is (RGB)("247", "247", "247", "146", "81")
begin loop()
Keyboard.Press key("{<f3>}")
if Color.At coordinate is not (RGB)("247", "247", "247", "146", "81")
begin
Macro.Break from loop("yes")
end
end
end
function
function("AutoAttack")
begin
if Color.Can be located on screen (RGB)("130", "112", "162", "0")
begin loop()
// Color of High Orc
Mouse.Click at color (RGB)("130", "112", "162", "0", "Left")
end
end
function