henryuscola
2015-03-06 21:20:14
Hello everyone,
I've been having trouble getting a simple script to basically find this Bitmap and after finding this bitmap it is in a place and when it is in this place it should be finding some color to attack and click on it. how do u think i should do this
heres i have
unction attack: integer;
var
x, y, Pit: integer;
begin
if FindBitmapToleranceIn(Pit, X, Y, 737, 263, 795, 335, 145) then
MoveMouse(x, y);
writeLn('inside pit') then
if findColorTolerance(x, y, 3035181, 20, 59, 768, 413, 5) then
begin
writeLn('target found');
MoveMouse(x, y);
wait(2000);
ClickMouse(x, y, MOUSE_LEFT);
wait(2000)
end else writeln('target not found, not in pit');
end;
P.s sorry i have no idea how to post simba code in its own seperate text box.
I've been having trouble getting a simple script to basically find this Bitmap and after finding this bitmap it is in a place and when it is in this place it should be finding some color to attack and click on it. how do u think i should do this
heres i have
unction attack: integer;
var
x, y, Pit: integer;
begin
if FindBitmapToleranceIn(Pit, X, Y, 737, 263, 795, 335, 145) then
MoveMouse(x, y);
writeLn('inside pit') then
if findColorTolerance(x, y, 3035181, 20, 59, 768, 413, 5) then
begin
writeLn('target found');
MoveMouse(x, y);
wait(2000);
ClickMouse(x, y, MOUSE_LEFT);
wait(2000)
end else writeln('target not found, not in pit');
end;
P.s sorry i have no idea how to post simba code in its own seperate text box.