I'm a bit confuzzled. :S In your Anti-ban, you also want to be checking for randoms, yes?
How about something like this?:
Simba Code:
Procedure AntiBan;
var
i: Integer;
begin
if not LoggedIn then Exit;
R_FindRandoms;
i := Random(250);
case i of
1..10: RandomAngle(1);
11: Hoverskill('Farming',False);
12: RandomMovement;
end;
Wait(RandomRange(100,250));
end;
So as long as 'AntiBan' is being called, it will randomly pick a number between 1 and 250 every 100-250 milliseconds. If that number is between 1-12, it will do one of those anti-bans, but from 13-250 (obviously checked more often) it will search for Randoms and if you're player is logged in.
Hopefully that answers your question.