SCAR Code:
Function FindFishingSpot:boolean;
var
x, y, i:integer;
TPA:TPointArray;
begin
result:=false;
if not(FindfishspotsTPA(TPA)) then
exit;
SortTPAFrom(TPA, Point(MSCX, MSCY));
for i:=0 to high(TPA) do
begin
MMouse(TPA[i].x, TPA[i].y, 5, 5)
if isuptext('age') then
begin
getmousepos(x, y)
if players[currentplayer].strings[1]=lowercase('lobster') then
Mouse(x, y, 0, 0, true) else
begin
Mouse(x, y, 0, 0, false)
ChooseOption('harpoon')
end;
result:=true
exit;
end;
end;
end;
anyone find a problem in that code
btw [currentplayer].strings[1] is the type of fish they are fishing, only lobster, swordfish or tuna...