this function will click the bucket in the inv and then find the fountain and click it
SCAR Code:Function FillBucket(Invspot : integer): boolean;
var
water: tpoint;
begin
if not gametab(tab_inv) then exit;
mouseitem(invspot, true);
if findcolorspiraltolerance(water.x, water.y, 14851710, msx1, msy1, msx2, msy2, 5) then
begin
mouse(water.x, water.y, 4, 4, true);
result := true;
exit;
end else
writeln('Failed to find water fountain');
result := false;
end;
tell me what u think




Reply With Quote














