SRL Archive - First Scripts

edited humidify script


baboushkah

2014-08-27 11:46:09

Hey everyone, a friend and I worked to get this script we found on here to suit our needs by using hotkeys.

Here's the code:
program humidifyBot;

//Start with 27 empty vials and 1 astral rune in inventory with mouse over bank

{$DEFINE SMART}
{$I SRL-6/SRL.simba}

procedure closeBank();
begin
typeSend('1');
end

procedure openBank();
begin
fastClick(MOUSE_LEFT);
end

procedure useHumidify();
begin
typeSend('q');
end

begin
writeLn('The script will start in 5 seconds...');
wait(5000);
repeat
useHumidify();
wait(randomRange(2500,3000));
openBank();
wait(randomRange(1500,2000));
closeBank();
wait(randomRange(1000,1500));
until isKeyDown(53) = true
end

Right now, it only works if I leave Runescape open, so I can't do anything else. How could I get smart to work with this, so I could leave it minimized while doing other stuff.
Really new to this, sorry for the nooby question.

thanks

Turpinator

2014-08-27 12:02:06

begin
SetupSRL;
writeLn('The script will start in 5 seconds...');
wait(5000);
repeat
useHumidify();
wait(randomRange(2500,3000));
openBank();
wait(randomRange(1500,2000));
closeBank();
wait(randomRange(1000,1500));
until isKeyDown(53) = true
end.

baboushkah

2014-08-27 12:30:08

Hey, I dont quite understand we already have that in our code
oh nevermind the setupsl. Thanks trying it out now

baboushkah

2014-08-27 12:57:55

Hey thanks for that, the smart works. Now, how can I get it so the cursor moves around every few minutes and make it so it's always over the bank.

Turpinator

2014-08-27 13:11:14

https://villavu.com/forum/showthread.php?t=109161

Lipcot

2014-08-27 13:18:42

From: cachuey
Hey thanks for that, the smart works. Now, how can I get it so the cursor moves around every few minutes and make it so it's always over the bank.


check out other scripts antibans and break systems! check the srl include "antiban" it has some features for mouse movements you can use and read TheMayors tutorial on scripting to understand about color and DTMs so you move your mouse to the bank

baboushkah

2014-08-27 13:27:24

Hey undorak, thanks for your help. We did find some antiban code that we want to use:
 

procedure smallRandomMouse(radius: integer = 80);
var
randSpeed: Extended;
x, y, rx, ry, fs: Integer;
begin
fs := MouseSpeed;
mouseSpeed := randomRange(10, 20);
randSpeed := (random(MouseSpeed) / 2.0 + MouseSpeed) / 10.0;
getMousePos(x, y);

rx := randomRange(x-radius, x+radius);
ry := randomRange(y-radius, y+radius);

_humanWindMouse(x, y, rx, ry, 30, 55, (10.0/randSpeed), (12.0/randSpeed), (10.0*randSpeed));
MouseSpeed := fs;
end

However we want this to happen every few minutes so like a random time between let's say 2 and 5 minutes.
thanks again