Function by Mat:
Simba Code:
function FindObj_pX(Mouse:Boolean;pX, pY,Null,Null2: Integer; Mod1,Mod2:Extended;Lol1:String): Boolean;
var
CTS, I: Integer;
TPA: TPointArray;
ATPA: Array of TPointArray;
begin
CTS := GetColorToleranceSpeed;
FindNormalRandoms;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(Mod1, Mod2);
If Not Mouse then
FindColorsSpiralTolerance(MSCX, MSCY, TPA,Null, 190, 140, 320, 230, Null2) else
FindColorsSpiralTolerance(MSCX, MSCY, TPA,Null, MSX1, MSY1, MSX2, MSY2, Null2);
ColorToleranceSpeed(CTS);
ATPA := TPAToATPAEx(TPA, 15, 15);
For I := 0 to High(ATPA) do
begin
MiddleTPAEx(ATPA[i], pX, pY);
If Mouse then
begin
MMouse(pX, pY, 2, 2);
Wait(300+Random(75));
If(IsUpTextMultiCustom([Lol1])) then
begin
Result := True;
GetMousePos(pX, pY);
Break;
end;
end else
Result := True;
end;
end;
Example of use:
Simba Code:
If FindObj_pX(false,pX,pY,13890040,3,0.13, 6.73,'asket') then
begin
ClickMouse2(True);
Wait(2000+Random(200))
Result := True;
end;
Simba Code:
function FindObj_pX(Mouse:Boolean;pX, pY,Null,Null2: Integer; Mod1,Mod2:Extended;Lol1:String): Boolean;
Mouse: Set to false if you want to search the entire screen, set to true to search within these coordinates:190, 140, 320, 230, not sure what area they cover but you can find out.
px, py: mouse coordinates when pointing to the object
Null, NUll2 : Null is color and Null2 is tolerance
Mod1, Mod2: Mod1 is hue, Mod2 is Sat
Lol1: uptext