
Originally Posted by
Gaston7eze
If i put End after Case then in line 36 it shows me an error
Then after all this on line 41 other error.
[Error] (37:1): Identifier expected at line 36
Compiling failed.
FORMAT your code.. and use code tags.. it was so hard to read :c As for your problems. The Mod above pointed them out. After Begin, don't put any ;.. and after End you must put a ;..
For hover skill, the function definition is HoverSkill(Skill here, Action here).. Skills can be either numbers or strings as that is a variant. Actions can be False or True as its a boolean.. True is to click left, false is to right click.
As for formatting, try to indent a little, and use the enter button more to separate lines from eachother rather than bunching them all up. That way you know which begin matches with which end..
Simba Code:
program New;
{.include srl/srl.scar}
Procedure DeclarePlayers;
begin;
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
end;
Procedure ChopTree;
Var
x,y: Integer;
Begin
If FindObj(x,y,'hop',1785912, 35) Then
begin
Mouse(x,y,0,0, False);
ChooseOption('Hop');
end;
Repeat
Wait(1200+random(250));
Until (not IsUpText('yew')) or InvFull;
End;
Procedure AntiBan;
Begin;
If(Not LoggedIn)then
Exit;
Case Random(8) of
0:
Begin
HoverSkill('Woodcutting', false);
Wait(2453+random(432));
End;
1:
PickUpMouse;
2:
Begin;
MakeCompass('N');
Wait(100 + random(133));
MakeCompass('S');
Wait(50+random(133));
MakeCompass('N');
End;
End;
End;
begin;
SetUpSRL;
ActivateClient;
DeclarePlayers;
ChopTree;
end.