Basicly I'm VERY NEW to scripting...So far all I'm doing is editing scripts for my personal use.
My problem is that I copied and pasted a procedure that turns on prayer...(Masterkill's procedure)
So I copied and pasted that into script, and I added theProcedure CastPrayer;
begin
if (Players[CurrentPlayer].Booleans[0] = False) then exit;
GameTab(6);
Wait(100 + random(100));
if (FindColorTolerance(x, y, 15533737, 551, 324, 583, 355, 20)) then
begin
Mouse(567, 340, 3, 3, True);
Mouse(715, 305, 3, 3, True);
end;
end;to the player setup.Players[0].Booleans[0] := True; // Use prayer? (!you need prayer lvl 34+!)
The error I'm getting now isAnd I'm guessing it will have an error with "identifier 'y' in script"Line 118: [Error] (14813:24): Unknown identifier 'x' in script
Failed when compiling
My question to you is how do I solve this problem???




Reply With Quote






