How would i getto look for a color in the middle of the mainscreen, Where the player is?SCAR Code:FindColorTolerance(x, y, Color, msx1, msy1, msx2, msy2, Tol)
How would i getto look for a color in the middle of the mainscreen, Where the player is?SCAR Code:FindColorTolerance(x, y, Color, msx1, msy1, msx2, msy2, Tol)
Depends on how great area around the player?(What box)
~Hermen
In a box of 50*50 do this:
SCAR Code:FindColorTolerance(x, y, Color, MSCX - 50, MSCY - 50, MSXY + 50, MSCY + 50, Tol)
![]()
Like this?:
SCAR Code:procedure CheckShark;
begin
if InvFull or (not LoggedIn) then Exit;
repeat
X := MSCX;
Y := MSCY;
if FindColorTolerance(x, y, 423, X - 50, Y - 50, Y + 50, Y + 50, 50) then
begin
RWait(1500,500);
end else
Exit;
until(not FindColorTolerance(x, y, 586, X - 50, Y - 50, Y + 50, Y + 50, 50))
end;
Last edited by DeSnob; 05-16-2009 at 04:41 AM.
no because x and y is where the colour is found. you need to doSCAR Code:FindColorTolerance(x, y, Color, MSCX - 50, MSCY - 50, MSXY + 50, MSCY + 50, Tol)
That gives me an error:
SCAR Code:Line 367: [Error] (17902:55): Unknown identifier 'MSXY' in script C:\Program Files (x86)\SCAR 3.20\Scripts\WishFish V1.2.scar
SCAR Code:procedure CheckShark;
begin
if InvFull or (not LoggedIn) then Exit;
repeat
if FindColorTolerance(x, y,767, MSCX - 50, MSCY - 50, MSXY + 50, MSCY + 50, 876) then
begin
RWait(1500,500);
end else
Exit;
until(not FindColorTolerance(x, y, 56, MSCX - 50, MSCY - 50, MSXY + 50, MSCY + 50, 456))
end;
D'oh just change the faulty MSXY to MSCY that's the error.
Ce ne sont que des gueux
change xy to cx. sorry my bad just copied Nauman
Yeah well..i searched everywhere. I make like 100+ silly mistakes![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)