My first script, whats up with this?
SCAR Code:
program MonkFighter;
{.include srl/srl.scar}
{.include srl/srl/skill/fighting.scar}
Const
MonkColor = 12172221; //color of the monks robes
Betweentime = 5; //Time between finding monks (in seconds)
MouseSpeed = 8+Random(3); //speed of the mouse (no lower than 5) THIS IS LINE SEVEN<<<<<<<<<
FoodColor = 1598653 //color of the food you are using
Var x1,y1:Integer;
function FindMonk: Boolean;
begin
if(FindColorSpiral(x,y,MonkColor,5,5,760,495)) then
Result:= True;
else
Result:= False;
Begin
SetupSRL;
ActivateClient;
repeat
Begin FindColor;
wait((Betweentime * 1000) + random(300)) if(FindMonk) then if (IsUpText('Attack Monk') then
Mouse(x, y, 10, 10, True);
until (not(LoggedIn))
end.
Procedure EatFood
if(FindColorSpiral(x,y,FoodColor,652,329,650,326)) then
Result:= True;
else
Result:= False;
I try to compile and it says this:
SCAR Code:
Line 7: [Error] (15889:1): Duplicate identifier '' in script C:\Documents and Settings\Owner\Desktop\fighter part(1).scar
Also, is there any simpler ways to eat food then my way?