Le Jingle
03-13-2012, 08:05 AM
If I have a function antiban, then I don't need to call it in my main loop which is listed towards the end of my script, correct?
Ex. of my current antiban that is stated after the procedures and before the final loop:
function Antiban (Rate:integer;SKillName:string):Boolean;
begin
if(not(LoggedIn)) then
Exit;
Result:=True;
case random(Rate) of
0..200: RandomMovement;
201..500: RandomRClick;
501..1000: begin
HoverSkill('Magic', False);
Result := True;
end;
else Result:= False;
end;
end;
Is this correct or should I try to change it to a procedure and include it into my main loop..? (Any help welcomed as I'm new :P )
Ex. of my current antiban that is stated after the procedures and before the final loop:
function Antiban (Rate:integer;SKillName:string):Boolean;
begin
if(not(LoggedIn)) then
Exit;
Result:=True;
case random(Rate) of
0..200: RandomMovement;
201..500: RandomRClick;
501..1000: begin
HoverSkill('Magic', False);
Result := True;
end;
else Result:= False;
end;
end;
Is this correct or should I try to change it to a procedure and include it into my main loop..? (Any help welcomed as I'm new :P )