Results 1 to 18 of 18

Thread: Adding Randoms And Antiban

  1. #1
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Adding Randoms And Antiban

    How to add randoms and antiban to you're script

    ---------- My First Tut ---------


    Ok im considering you know some scar knowledge just the basics of the basics.


    --------------------------Randoms---------------------------

    Ok somewere were you want to declare randoms put Procedure Randoms; It does not have to be Randoms; itcan be anything but make sure you put ; on the end of it.After that put Begin. so you have this

    SCAR Code:
    Procedure Randoms;
    Begin

    Now Under Begin put Findnormalrandoms;
    Then under thaat put End; so that ends the procedure

    final outcome should be
    SCAR Code:
    Procedure Randoms;
    Begin
    Findnormalrandoms;
    End;
    Very SIMPLEEE


    <<<<<<------------Anitban----------->>>>>>

    Ok put Procedure Antibanactions; or what ever name you want it to be.There are alot of ways of antiban here i will show you some of them.

    SCAR Code:
    Procedure AntiBanActions;
    var
      DBanMe: Integer;
    begin
    DBanMe:= Random(10);
     case DBanMe of

        0: RandomRClickEvery(2 + Random(13));
        1: HoverSkill('Mining', False);
        2: RandomChatEvery(10 + Random(5));
        3: RotateEvery(20 + Random(10));
        4: LeaveScreenEvery(5 + Random(5));
        5: HoverEvery(15 + Random(5), 'Attack');
        6: PickUpMouse;
        7: BoredEvery(9 + Random(24));
        8: DragItem(1, 1 + Random(18));
        9: GameTab(1 + Random(12));
        10: RotateEvery(7 + random(4));
      end;
    end;
    now i added in a
    Var
    DBanMe: integer; that just means when i say DBanMe scar will know that means a number/numbers.In Begin I Put DBanMe:= Random(10) then Case DBanMe of 1. then 2. ect..... that means it will pick a randon number up to 10 and perform that antiban action.

    Here are just some antiban moves...

    HoverSkill('Mining', False); this will how the mining skill.
    GameTab(1 + Random(12)); that will click any gametab (a gametab it like the inventory tab the fighting tab ect...).

    RotateEvery(7 + random(4)); That will rotate the screen every 7 + a random 1 - 4 secs.

    THANKS FOR LOOKING AT MY TUT its my first

  2. #2
    Join Date
    Mar 2007
    Posts
    138
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It doesn't really teach you more just like giving us it. Start from scratch and say what is all about and what is does and used for. It's pretty good for first TUT but its more like giving you my antirandoms and ban then a tut. Try doing this

    Code:
    Procedure Randoms;
    Begin
    Findnormalrandoms;
    End;
    Say something like, what this will do and used for blah blah and go into details and start from scratch like

    Code:
    Program New;//Make name
    Procedure Anyname;//I added procedure i'll explain later. Change name.
    begin
        Write what ever you want//then tell them why etc and teach them it not just give them it
    
    begin// tell them why you are repeating this and how to make it repeat so 
    repeat// there randoms actualy work
    Anyname
    until(false)// until(whenever);
    end.
    Good tut i guess for your first one. Keep trying!

    My basic tut for intermedites/Advanced coming soon!

  3. #3
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks i look nfoward for ur tut to

  4. #4
    Join Date
    Nov 2006
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Failed when compiling
    Line 11: [Error] (14761:4): Unknown identifier 'RandomRClickEvery' in script

    is that because i didn't use includes?

    if it is, which should i use?

  5. #5
    Join Date
    Nov 2006
    Location
    In an Amish Paradise
    Posts
    729
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes you need includes... Just add this under Program...

    SCAR Code:
    Program New;
    {.Include SRL/SRL.scar}
    Procedure{name of procedure};
    begin
    //then your script

    Hope this helps
    ~Stupedspam

  6. #6
    Join Date
    Nov 2006
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Program New;
    {.Include SRL/SRL.scar}
    Procedure AntiBanActions;
    var
    DBanMe: Integer;
    begin
    DBanMe:= Random(10);
    case DBanMe of

    0: RandomRClickEvery(2 + Random(13));
    1: HoverSkill('Mining', False);
    2: RandomChatEvery(10 + Random(5));
    3: RotateEvery(20 + Random(10));
    4: LeaveScreenEvery(5 + Random(5));
    5: HoverEvery(15 + Random(5), 'Attack');
    6: PickUpMouse;
    7: BoredEvery(9 + Random(24));
    8: DragItem(1, 1 + Random(18));
    9: GameTab(1 + Random(12));
    10: RotateEvery(7 + random(4));
    end;
    end;


    still get this:
    Line 10: [Error] (14760:4): Unknown identifier 'RandomRClickEvery' in script

  7. #7
    Join Date
    Jun 2007
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ya i got the same thing as takemu

  8. #8
    Join Date
    Nov 2006
    Location
    basingstoke(u.k woot!)
    Posts
    382
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by dialeyj2 View Post
    Ya i got the same thing as takemu
    use 2,6(srl)

    if not use scar 2,03.

  9. #9
    Join Date
    Jun 2007
    Location
    Tampa, FL
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    there is 2 things wrong with yoru anti ban, the hover skill doesnt change back to the right game tag, so you should put that in. and you have the variable equal to random(10) when it shoudl be random (11) because you actually have 11 including 0.
    Can't sleep Clowns will eat me
    Can't eat Clowns will sleep with me

  10. #10
    Join Date
    May 2007
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lil short lol.

  11. #11
    Join Date
    Mar 2007
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Every good script should have anti ban + randoms. So thanks for this tut. Just another thing I will add onto mine once I get time to learn. Thanks!

  12. #12
    Join Date
    Nov 2007
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ty helped me alot

  13. #13
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    where would u put these in script?
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  14. #14
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    Why gravedig an extremely OLD thread.

    Surely you should know these are outdated, you were an SRL Member, no?
    Jus' Lurkin'

  15. #15
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    Coz i was tired and i later knew theses where outdated!
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  16. #16
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    You can't gravedig threads in the Tutorial Island anymore, due to the new layout.

    Anyway to answer your question, all you really have to do is have a procedure like this:

    SCAR Code:
    procedure AntiRandoms;
    begin
      FindNormalRandoms;
    end;

    And you can call upon that procedure anywhere in your main loop.

    Example:

    SCAR Code:
    begin
      procedure1;
      procedure2;
      AntiRandoms;
      procedure3;
    end.

    Or you could do this:

    SCAR Code:
    begin
      AntiRandoms;
      procedure1;
      AntiRandoms;
      procedure2;
    end.

    You can have it anywhere, any amount of times in your main loop, as long as it's after SetupSRL;

    Hope I helped,
    Richard
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  17. #17
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    Ok thanks dude
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  18. #18
    Join Date
    Oct 2008
    Location
    I Forgot
    Posts
    193
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nice tut but ur sorta telling us how to do it not teaching us but very good for your first :P

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. help with adding antiban and anti randoms
    By chip111 in forum OSR Help
    Replies: 1
    Last Post: 11-06-2007, 01:38 PM
  2. Adding Randoms to Your Scripts
    By WhiteShadow in forum Outdated Tutorials
    Replies: 26
    Last Post: 07-01-2007, 03:42 AM
  3. Adding Anti-randoms!!!!
    By marre in forum OSR Help
    Replies: 2
    Last Post: 05-13-2007, 11:28 PM
  4. Adding randoms to scripts
    By xMichael in forum OSR Help
    Replies: 6
    Last Post: 01-04-2007, 12:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •