SRL Archive - RuneScape Private-Server Scripts

Adding Randomness? Maybe MouseBox?


jstemper

2015-03-24 20:39:55

Begin

if findBitmapToleranceIn(specific_rock, X, Y, 12, 319, 524, 404, 20) then

begin
MoveMouse(626, 128);
wait(250);
ClickMouse(626, 128, mouse_left)
end;
end;


What's a good way to Click x +/- 5, and y +/- 5 around the coordinates above? And yes, I know this a bad method for walking :p

riwu

2015-03-24 20:46:38

If you are using the SRL6 include:
mouseBox(IntToBox(x-5, y-5, x+5, y+5), MOUSE_LEFT)

jstemper

2015-03-24 20:54:25

From: riwu
If you are using the SRL6 include:
mouseBox(IntToBox(x-5, y-5, x+5, y+5), MOUSE_LEFT)


oh sorry! i'm using {$i srl/srl.simba} (for a rsps)

KeepBotting

2015-03-24 21:07:32

From: jstemper
oh sorry! i'm using {$i srl/srl.simba} (for a rsps)

In that case, for SRL-5, you can


MMouse(x, y, rx, ry);

where x, y are the coords you want to move to, and rx, ry are your randomness (usually something like -3, 3)

jstemper

2015-03-24 21:25:44

From: KeepBotting
In that case, for SRL-5, you can


MMouse(x, y, rx, ry);

where x, y are the coords you want to move to, and rx, ry are your randomness (usually something like -3, 3)


I seriously love you man

rj

2015-03-25 12:51:19

I wouldn't add randomness if it was a pserver I would concentrate on making it as efficient as possible since they don't detect bots

King

2015-03-25 13:33:15

From: rj
I wouldn't add randomness if it was a pserver I would concentrate on making it as efficient as possible since they don't detect bots

I agree, RSPS do not have any where near the bot detection, if any, that Runescape does. I would suggest just making it as efficient as possible, but also being very diligent in checking for loops and failsafes as that way they cannot visually tell the difference which is usually how it goes for RSPS.

henryuscola

2015-03-29 05:49:30

hi, i'm working on a script for an rsps using srl -5 i just wanted to ask why mmouse doesnt move to the exact cordinates like i didnt even add randomness coz i dont really want it to have randomness and the mousebox function i use is inaccurate for some reasons

KeepBotting

2015-03-29 09:45:56

From: henryuscola
hi, i'm working on a script for an rsps using srl -5 i just wanted to ask why mmouse doesnt move to the exact cordinates like i didnt even add randomness coz i dont really want it to have randomness and the mousebox function i use is inaccurate for some reasons


Post the code that moves your mouse

henryuscola

2015-04-15 23:49:37

Well haven't been on a pc awhile but it's like mmouse(223,224,1,1); or mousebox(233,435,244,545,2); it's never accurate though completely misses the static position I want it to move to

The Legendary

2015-04-16 04:47:56

From: henryuscola
Well haven't been on a pc awhile but it's like mmouse(223,224,1,1); or mousebox(233,435,244,545,2); it's never accurate though completely misses the static position I want it to move to


The y coordinate simba give is off. you'll always have to subtract the y axis by 22 to be accurate.
So for your, it should be like this:
mmouse(223,202,1,1); or mousebox(233,413,244,523,2);

henryuscola

2015-04-24 10:39:03

From: The Legendary
The y coordinate simba give is off. you'll always have to subtract the y axis by 22 to be accurate.
So for your, it should be like this:
mmouse(223,202,1,1); or mousebox(233,413,244,523,2);


Oh that works well thanks now