SRL Archive - OSR Help

help with colorspeed modifiers


westkevin12

2013-05-02 04:25:05

so i am trying to add colorspeed2modifiers and i used the aca tool to get my modifiers and colour but i am getting a syntax error, here is my function.




function findtheiron(x, y: Integer): Boolean;
var
MyTPA: TPointArray;
MMTPA: TPoint;
MyATPA: T2DPointarray;
TPAL, CTS, i: Integer;
PBox: TBox;
begin
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(.10, .77);
FindColorsSpiralTolerance(MSCx,MSCy,MyTPA, 1252407, MSx1, MSy1, MSx2, MSy2, 4);
ColorToleranceSpeed(CTS);
if Length(MyTPA) = 0 then
begin
FindColorsSpiralTolerance(MSCx,MSCy,MyTPA, 1450046, MSX1, MSY1, MSX2, MSY2, 5);
end;
SMART_DrawDots(MyTPA);
MyATPA := tpatoatpaex(mytpa, 40, 40);
TPAL := High(MyATPA);
for i := 0 to TPAL do
MMTPA := MiddleTPA(MyATPA[i]);
MMouse(MMTPA.x, MMTPA.y, 3, 3);
if (IsUpTextMultiCustom(['ine', 'roc'])) then
begin
result := true;
ClickMouse2(Mouse_Left);
end;

Exit;
end;

[Error] C:\Simba\Scripts\Westkevin12sYanillIronBankerV1.3.simba(200:25): Syntax error at line 199
Compiling failed.

Haxz

2013-05-02 04:30:51

SetColorSpeed2Modifiers(0.10, 0.77);

Don't forget the 0.

westkevin12

2013-05-02 04:31:42

ohhhh thanks haxs!

Sk1nyNerd

2013-05-02 14:59:42

dont forget to set ur modifiers back to normal after finding the object too