Im New Sry
2012-05-26 12:35:53
So I'm using ACA to find colors and the same code as in this thread. But something fails.
My Function for Finding Furnace.
[Error] C:\Simba\Scripts\ProgressINSCrafter.simba(165:19): Unknown identifier 'x' at line 164
Compiling failed.
That is at my procedure for crafting ammys
Error is
wat do?
My Function for Finding Furnace.
Function FindFurnace(var x,y:Integer):boolean;
var
a:Integer;
TPA:TPointArray;
ATPA:T2DPointArray;
MP:TPoint;
tmpCTS:Integer;
Box,SearchArea:TBox;
begin
if not LoggedIn then Exit;
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.15,1.38);
SearchArea := IntToBox((MSCX - 200),(MSCY - 100),(MSCX),(MSCY + 150));
SMART_DrawBoxEx(True,SearchArea,clPurple);
FindColorsSpiralTolerance(MSCX,MSCY,TPA,3158066,MSCX -200,MSCY - 100 ,MSCX,MSCY + 150,9);
SortTPAFrom(TPA,point(MSCX,MSCY));
ATPA := TPAtoATPAEx(TPA,15,15);
for a := 0 to High(ATPA) do
begin
MP := MiddleTPA(ATPA[a]);
Box := IntToBox((MP.x - 20),(MP.y - 20),(MP.x + 20),(MP.y + 20));
SMART_DrawBoxEx(True,Box,clYellow);
MMouse(MP.x,MP.y,4,4);
if(WaitUpText('rnace',1000))then
begin
x := MP.x; y := MP.y;
Result := True
SMART_ClearCanvas;
Exit;
end;
end;
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2,0.2);
end; [Error] C:\Simba\Scripts\ProgressINSCrafter.simba(165:19): Unknown identifier 'x' at line 164
Compiling failed.
That is at my procedure for crafting ammys
Procedure CraftDemAmmys;
var
TheRoad:TPointArray;
begin
SPS_Setup(RUNESCAPE_SURFACE,['12_9']);
TheRoad := [Point(111, 396), Point(139, 383), Point(148, 345), Point(134, 320)];
SPS_WalkPath(TheRoad);
InvMouse(1,1);
if (FindFurnace(x,y)), then
begin
If WaitColor(137, 228, 3358280, 0, 5000); then
Mouse(32490324, 329034, 5, 5, True);
end; Error is
if (FindFurnace(x,y)), thenwat do?