Results 1 to 3 of 3

Thread: How do i add click randomness to this function?

  1. #1
    Join Date
    Aug 2013
    Posts
    63
    Mentioned
    0 Post(s)
    Quoted
    27 Post(s)

    Post How do i add click randomness to this function?

    Hello SRL:

    I'm currently making a script, but wanted to include some anti-ban into clicking the movement on the SPS mapping function. My goal was to achieve a similar result to this guide:
    https://villavu.com/forum/showthread.php?t=97520

    Here is the script below:

    Code:
    program test;
    {$DEFINE SMART}
    {$i srl-6/srl.simba}
    {$i sps/lib/sps-rs3.simba}
    {$i srl-6/lib/misc/srlplayerform.simba}
    
    procedure walkToPlace(place: Integer);
    var
      pathWalk: TPointArray
    begin
    
      case place of
        1:
        begin
          pathWalk := [Point(170, 118), Point(150, 178)]; //Walk to Fishing Spot
        end;
        2:
        begin
          pathWalk := [Point(150, 178), Point(170, 118)]; //Walk to Bank
        end;
      end;
    
      SPS.walkPath(pathWalk);
      minimap.waitPlayerMoving();
      wait(randomRange(800,1000));
    end;
    Any help would be greatly appreciated.

    Edit: I meant to say procedure in the title and not function.

  2. #2
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by General_Patrick View Post
    Hello SRL:

    I'm currently making a script, but wanted to include some anti-ban into clicking the movement on the SPS mapping function. My goal was to achieve a similar result to this guide:
    https://villavu.com/forum/showthread.php?t=97520

    Here is the script below:

    Code:
    program test;
    {$DEFINE SMART}
    {$i srl-6/srl.simba}
    {$i sps/lib/sps-rs3.simba}
    {$i srl-6/lib/misc/srlplayerform.simba}
    
    procedure walkToPlace(place: Integer);
    var
      pathWalk: TPointArray
    begin
    
      case place of
        1:
        begin
          pathWalk := [Point(170, 118), Point(150, 178)]; //Walk to Fishing Spot
        end;
        2:
        begin
          pathWalk := [Point(150, 178), Point(170, 118)]; //Walk to Bank
        end;
      end;
    
      SPS.walkPath(pathWalk);
      minimap.waitPlayerMoving();
      wait(randomRange(800,1000));
    end;
    Any help would be greatly appreciated.

    Edit: I meant to say procedure in the title and not function.
    you can add a random int to a point index

    example: Point(170 + randomRange(-5, 5), 118 + randomRange(-5, 5)

  3. #3
    Join Date
    Aug 2013
    Posts
    63
    Mentioned
    0 Post(s)
    Quoted
    27 Post(s)

    Default

    oh sweet. Thank you very much man!

Thread Information

Users Browsing this Thread

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

Posting Permissions

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