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.