I will test that. This is what I had after bullzeye helped me:
function InMageShop: Boolean;
var xx,yy: Integer;
begin
if (FindColorSpiralTolerance(x,y,5066067,155,66,355,266,10)) and
(FindColorSpiralTolerance(x,y,6579307,155,66,355,266,10)) and
(FindSymbol(xx,yy,'magic shop')) and
(FindSymbol(x,y,'water')) and
(FindSymbol(x,y,'Jewelery')) then
begin
WriteLn('I'#39'm in the mage shop');
Result:=True
end else
begin
Result:=False
end;
begin
if (not(Result)) then
Mouse(xx,yy,4,4,True);
Flag;
Result:=True
end;
end;
procedure Betty;
var Tries,Tries2,Trys: Integer;
begin
MouseSpeed:=5
Tries:=0
if (InMageShop) then
begin
repeat
if (FindMsColorTol(x,y,6490468,10))
and (Distance(x,y,MSCX,MSCY)<300) then
MMouse(x,y,4,4);
if (IsUpText('etty')) then
begin
Mouse(x,y,4,4,False)
PopUp('rade');
FTWait(2);
Flag;
If(ShopScreen) then
Exit;
end else
if (not(FindMSColorTol(x,y,6490468,10))) then
begin
if (FindColorTolerance(x,y,195836,618,56,678,116,10)) then
begin
Mouse(x+2,y,0,0,True);
Flag;
Mouse(MSCX,MSCY,4,4,False);
PopUp('rade');
FTWait(2);
Flag;
if (ShopScreen) then
Exit;
end else
begin
repeat
if (FindColorTolerance(x,y,16777215,638,76,658,96,10)) or
(FindColorTolerance(x,y,14869218,638,76,658,96,10)) then
begin
Mouse(x+2,y+1,1,1,True);
Flag;
begin
MMouse(MSCX,MSCY,4,4);
if (IsUpText('etty')) then
begin
GetMousePos(x,y);
Mouse(x,y,4,4,False);
ChooseOption(x,y,'rade');
FTWait(2);
Flag;
if (ShopScreen) then
Exit;
Trys:=Trys+1
end else
begin
if (FindObject(x,y,'etty',6490468,10,True)) then
Mouse(x,y,4,4,False);
ChooseOption(x,y,'rade');
FTWait(2);
Flag;
if (ShopScreen) then
Exit;
Trys:=Trys+1
end;
end;
end;
until(ShopScreen) or (Trys>5)
begin
if (Trys>5) then
begin
WriteLn('I'#39've given up hope. Logging out. I will try later');
NextPlayer(True);
end;
end;
end;
end;
Tries:=Tries+1
until(Tries>4);
if (Tries>4) then
begin
WriteLn('Could not find Betty');
if (FindSymbol(x,y,'magic shop')) then
Mouse(x,y,4,4,true);
Tries2:=Tries2+1
if (Tries2>2) then
begin
NextPlayer(True);
end;
Betty;
end;
end;
end;