SRL Archive - RS3 Beginner Scripting Tutorials

what do you think about this antiban?


Nufineek

2014-02-23 12:28:46

I wrote this antiban, performing slightly different actions for each account. What do you think about that? What would you change? I call each of the procedures (Antiban and lookingAt Web) twice in the script.
Function Antiban: Boolean;
Var
I: Integer;
Begin
I := Random(600);
Case accNumber of
1, 4:
Begin
Case I Of
1:
begin
boredHuman(true);
minimap.clickCompass();
end;
4..45:
Begin
hoverSkill(Skill_herblore);
Wait(GaussRangeInt(1000,2000));
End;
46..48: mouseMovingObject;
49..100: SleepAndMoveMouse(RandomRange(100,MouseB));
101..270:
Begin
MouseOffClient(Random(4));
Wait(RandomRange(2000, MouseB));
End;
271..331:
wait(randomRange(1000, 4000));
331..333:
randomRClickItem();
339..341:
smallRandomMouse();
342..344:
randomGameTab(true);
345..349:
smallRandomMouse;
350..419:
pickUpMouse;
end;
end;
2, 5:
Begin
Case I Of
1..7:
begin
boredHuman(true);
minimap.clickCompass();
end;
8..25:
Begin
hoverSkill(Skill_herblore);
Wait(GaussRangeInt(1000,2000));
End;
26..48: mouseMovingObject;
49..100: SleepAndMoveMouse(RandomRange(100,MouseB));
101..199:
Begin
MouseOffClient(Random(4));
Wait(RandomRange(2000, MouseB));
End;
241..331:
wait(randomRange(4000, 7000));
331..338:
randomRClickItem();
339..341:
smallRandomMouse();
342..344:
randomGameTab(true);
345..349:
smallRandomMouse;
350..400:
pickUpMouse;
end;
end;
3, 6:
Begin
Case I Of
1..2:
begin
boredHuman(true);
minimap.clickCompass();
end;
3..38:
Begin
hoverSkill(Skill_herblore);
Wait(GaussRangeInt(1000,2000));
End;
39..40: mouseMovingObject;
41..121: SleepAndMoveMouse(RandomRange(100,MouseB));
122..199:
Begin
MouseOffClient(Random(4));
Wait(RandomRange(2000, MouseB));
End;
271..331:
wait(randomRange(8000, 13000));
331..360:
randomRClickItem();
361..368:
smallRandomMouse();
369..370:
randomGameTab(true);
371..420:
pickUpMouse;
end;
end;

End;
Wait(GaussRangeInt(0, AntiB));
End;
procedure lookingAtWeb;
var
I: integer;
begin
i := random(1000);
Case AccNumber of
1, 4:
begin
Case I of
0..12:
begin
mouseOffClient(OFF_CLIENT_RANDOM);
writeln('Pretending to looking at another website. (long)');
wait(30000 + randomRange(20000, 30000));
end;
13:
begin
mouseOffClient(OFF_CLIENT_RANDOM);
writeln('Pretending to looking at another website. (med)');
wait(30000 + randomRange(5000, 15000));
end;
14..18:
begin
mouseOffClient(OFF_CLIENT_RANDOM);
writeln('Pretending to looking at another website. (short)');
wait(5000 + randomRange(2000, 7000));
end;
end;
end;
2, 5:
begin
Case I of
0..1:
begin
mouseOffClient(OFF_CLIENT_RANDOM);
writeln('Pretending to looking at another website. (long)');
wait(30000 + randomRange(5000, 12000));
end;
2..15:
begin
mouseOffClient(OFF_CLIENT_RANDOM);
writeln('Pretending to looking at another website. (med)');
wait(15000 + randomRange(3000, 9000));
end;
16..19:
begin
mouseOffClient(OFF_CLIENT_RANDOM);
writeln('Pretending to looking at another website. (short)');
wait(1500 + randomRange(1000, 3000));
end;
end;
end;
3, 6:
begin
Case I of
0..2:
begin
mouseOffClient(OFF_CLIENT_RANDOM);
writeln('Pretending to looking at another website. (long)');
wait(30000 + randomRange(10000, 25000));
end;
3..11:
begin
mouseOffClient(OFF_CLIENT_RANDOM);
writeln('Pretending to looking at another website. (med)');
wait(11000 + randomRange(2000, 5000));
end;
12..22:
begin
mouseOffClient(OFF_CLIENT_RANDOM);
writeln('Pretending to looking at another website. (short)');
wait(4000 + randomRange(2000, 7000));
end;
end;
end;
end;
end;

Turpinator

2014-02-23 13:41:47

Looks very much like @Ashaman88's antiban…

Nufineek

2014-02-23 14:25:35

From: Turpinator
Looks very much like @Ashaman88's antiban…

Yeah, I am learning to script and I inspired by his. I am talking about the account profiles - whether you think this will differ the accounts for botwatch a bit at least. Of course I will not use it in any scripts that I will publish here.

Ashaman88

2014-02-23 18:15:27

From: Nufineek
Yeah, I am learning to script and I inspired by his. I am talking about the account profiles - whether you think this will differ the accounts for botwatch a bit at least. Of course I will not use it in any scripts that I will publish here.


Basically if it reflects how you play legit, then it's good. I know Mayor was going to come up with much more customized options - but if this is how you play legit, then you are good

Solar

2014-02-24 16:50:06

@Ashaman88; I guess you're ok if other people use these procedures if given credit?
I like the lookingAtWeb one in particular since I'm always multitasking and browsing.

Edit: In the first antiban code what is with the mouseB and AntiB? Also, why is AntiBan a function when the result is never changed?
I guess that AccNumber would be a global variable from the script this was pulled from?

Quentini

2014-10-30 12:17:37

From: Solar
@Ashaman88; I guess you're ok if other people use these procedures if given credit?
I like the lookingAtWeb one in particular since I'm always multitasking and browsing.

Edit: In the first antiban code what is with the mouseB and AntiB? Also, why is AntiBan a function when the result is never changed?
I guess that AccNumber would be a global variable from the script this was pulled from?


You and I have the same questions that I am hoping get answered soon. Other than that, as a learning scripter, this was very easy to follow and would seem to be neatly undetectable with a case nested in another case. My question would be, when should this Antiban function and Offscreen Browse be called? During every cycle of a script's main loop?

Ashaman88

2014-10-30 14:28:50

From: Solar
@Ashaman88; I guess you're ok if other people use these procedures if given credit?
I like the lookingAtWeb one in particular since I'm always multitasking and browsing.

Edit: In the first antiban code what is with the mouseB and AntiB? Also, why is AntiBan a function when the result is never changed?
I guess that AccNumber would be a global variable from the script this was pulled from?


hehe sorry i never responded and no i don't care :)

The function was there b/c for a specific script i needed to know if certain antiban procedures were fired. IDK about the rest

agent007

2014-11-09 00:23:08

Ash, I am looking to add some anti ban into my coal script.

If I were to use one of your examples and try to customize it on my script that just mines coal and deposits it into a deposit box, would I just call it once in my main() and of course paste the procedure with the others?

EDIT: left this part out..


Or perhaps would I be okay with just having breaks as an option for an anti ban?

Quentini

2014-11-11 17:50:39

From: agent007
Ash, I am looking to add some anti ban into my coal script.

If I were to use one of your examples and try to customize it on my script that just mines coal and deposits it into a deposit box, would I just call it once in my main() and of course paste the procedure with the others?

EDIT: left this part out..


Or perhaps would I be okay with just having breaks as an option for an anti ban?


Breaks are okay, but having both helps out tremendously in reducing the chances of a ban. Anti-ban is weak without a breaking system and vice-versa.

As for where to call your anti-ban procedure, there are many possibilities. I, myself, would like to hear Ash's response on what he prefers?