ok but howcan i make something like (and using the above functions)
Simba Code:
var
MyTPA : TPointArray;
MyPoint : TPoint;
x, y, i : Integer;
p := GetMiniMapDots(WhatDot);
If (whatDot = 'npc', 'n', 'yellow', 'y': Col := clYellow) then
begin
getIntToBox(x1,y1,x2,y2) //get dimenson of the yellow square
begin
(idk what to write to make it searche the yellow square only) //searches the yellow square
FindColorsTolerance(MyTPA, 4414308, MSx1, MSy1, MSx2, MSy2, 5);
if Length(MyTPA) = 0 then
FindColorsTolerance(MyTPA, 4414308, MSX1, MSY1, MSX2, MSY2, 5);
for i := 0 to High(MyTPA)do
begin
MyPoint := MyTPA[i]
MMouse (MyPoint.x, MyPoint.y, 3, 3);
if (IsUpTextMultiCustom(['potted', 'tted kebbit'])) then
begin
GetMousePos(x, y);
Mouse(x, y, 0, 0, False);
ChooseOption('atch');
Wait(2000+random(250));
emd;
end;
end;
end;