While reflection is down, thought I'd go back to the roots with colour finding, thought this might be useful for some people..
Personally I love when I can take repetitive lines and condense them into a single line :P
Not sure if I was doing it wrong, but I can't see to do box:Tbox instead of having to use the x,y
Simba Code:
procedure findNPC(colour:Integer; x1:integer; y1:Integer; x2:integer; y2:integer; Tol:Integer; Uptext:String);
begin
repeat
if FindColorTolerance(x,y,colour,x1,y1,x2,y2,tol) then
begin
humanMMouse(point(x,y),3,3);
wait(random(50,100));
if waitUpText(upText,100) then
begin
fastClick(Mouse_Right);
wait(random(25,50));
end;
end;
until chooseOption(uptext);
wait(random(3000,4000));
end;
Pretty self explanatory, the values go colour -> tbox -> uptext -> interact option
Example in use:
chicken colour : 12345
chicken tol: 123
TBOX: 1,2,3,4
findNPC(12345,1,2,3,4,5,123,'Attack C','ttack');