SRL Archive - RS3 Outdated / Broken Scripts

function MoveMouseOver, useful for opening doors and much more!


JAD

2007-05-07 00:35:06

Well, this is a very simple function, but could be used a lot for a little bit of anti ban while being used to check for up text. For example, this would be very useful when checking if a door is opened or closed, because it just acts like you are moving the mouse over it on accident almost, then moves it off it a bit randomly. Read description for more info.


program New;
{.include SRL/SRL.scar}

{*******************************************************************************
function MoveMouseOver(Color, MaxTol: Integer; Text: String): Boolean;
By: JAD
Description: Looks for color adding to tolerance until it finds, or is at
maximum tolerance. Then moves the mouse to the color, checking for the Text
and after looking for the text moves the mouse off it randomly on MS. if
the Text is up and stay is true, will keep the mouse there and not Mouse box away.
********************************************************************************}

function MoveMouseOver(ax,ay,Color, MaxTol: Integer; Text: String; Stay: Boolean): Boolean;
var Tol: Integer;
begin
repeat
Tol := Tol + 1;
until(FindColorTolerance(ax,ay,Color,MSX1,MSY1,MSX2,MSY2,Tol)) or (Tol > MaxTol);
if(Tol > MaxTol) then
Exit;
if(FindColorTolerance(ax,ay,Color,MSX1,MSY1,MSX2,MSY2,Tol))then
begin
MMouse(ax,ay,1,1);
if(IsUpText(Text))then
begin
Result := True;
if(Stay)then
begin
GetMousePos(ax,ay);
Result := True;
Exit;
end;
end;
MouseBox(MSX1,MSY1,MSX2,MSY2,3);
wait(300+random(300));
MouseBox(MSX1,MSY1,MSX2,MSY2,3);
end;
if(not(Result))then
begin
Writeln('Specified text was not up :(');
Result := False;
end;
end;

begin
SetupSRL;
ActivateClient;
wait(2000+random(500));
MoveMouseOver(12303556,50,'one');
end.

Very short I know, but still, could be very useful :D

PwNZoRNooB

2007-05-07 00:48:14

Looks nice, I'll use this maybe on doors if I need

JAD

2007-05-07 09:13:52

Yeah, should be less detectable if you use, because if the door (or whatever) is already open, you wouldn't need to move the mouse there and stop like your checking if it was like an auto would :p

Thanks for posting, and tell me how it goes if you use.

Hugolord

2007-05-07 09:26:31

uu i like it very anti-banish :P

JAD

2007-05-07 10:54:04

From: hugolord
uu i like it very anti-banish :P


Cool :p Yes, its just a more undetectable way to check if a door is open and things like that, or if a tree/rock is still there..etc

Thanks for posting.

the scar noob

2007-05-07 16:07:08

what about a slightly modification?
What if you should store the coords were the result has been found so you can work with in in future?
Couldn't this be done by putting after
Result:= True; 
:
GetMousePos(Ax, Ay);
Writeln('Object found in x coord: '+intToStr(Ax)+' ; y coord: 'intToStr(Ay)).
What you think of my idea??

JAD

2007-05-07 16:57:38

From: the scar noob
what about a slightly modification?
What if you should store the coords were the result has been found so you can work with in in future?
Couldn't this be done by putting after
Result:= True; 
:
GetMousePos(Ax, Ay);
Writeln('Object found in x coord: '+intToStr(Ax)+' ; y coord: 'intToStr(Ay)).
What you think of my idea??


I actually was going to add that before you posted it :p Thanks.

Updated!

the scar noob

2007-05-09 08:40:54

yes i like it now :p
Instead of ppl making a shopkeerper finder, door finder or so you can use this 2;
Are we allowed to modify it?

JAD

2007-05-09 17:25:42

From: the scar noob
yes i like it now :p
Instead of ppl making a shopkeerper finder, door finder or so you can use this 2;
Are we allowed to modify it?


Of course! Just say it was by me and modified by you of course :p

the scar noob

2007-05-10 10:19:52

From: JAD
Of course! Just say it was by me and modified by you of course :p


Ty i maybe going to use this soon :D hehe

3Garrett3

2007-05-11 12:30:16

looks good JAD thanks a bunch :p saves me some time, just need to modify a bit :p

JAD

2007-05-11 13:34:06

From: 3garrett3
looks good JAD thanks a bunch :p saves me some time, just need to modify a bit :p


Cool! And thanks :D

Anybody got any suggestions on how to improve it at all?

inSane

2007-05-13 15:13:33

What could i say :p i just love it :)

lordsaturn

2007-05-13 15:17:56

Great work JAD! Thanks!

JAD

2007-05-13 16:13:06

Thanks guys! Can't wait for it to be used in a few scripts :D

inSane

2007-05-20 15:00:24

From: JAD
Thanks guys! Can't wait for it to be used in a few scripts :D


I gonna use this on my Rune Mysteries Runner! You will see in few days :)

JAD

2007-05-20 15:11:11

From: inSane
I gonna use this on my Rune Mysteries Runner! You will see in few days :)


Cool! Can't wait :D

inSane

2007-05-20 15:16:26

From: JAD
Cool! Can't wait :D


Popup in MSN please, im having problems with this :D

JAD

2007-05-23 19:27:59

Updated! And added another feature to make it a LOT more useful :D

Timothegreat

2007-05-26 17:52:27

how do you modify this script to click an npc/trade with an npc?

3Garrett3

2007-05-26 19:19:41

haha insane cant use it, it looks like you were getting along, and all of a sudden, he frames you, and gets banned :p

JAD

2007-05-26 23:34:40

From: 3garrett3
haha insane cant use it, it looks like you were getting along, and all of a sudden, he frames you, and gets banned :p


:p I didn't know he was MOB before..

But anyways, back on topic.

To make it click, just use this to move the mouse over, and if the right text is up, it will stop the mouse on the npc trader or whatever you are moving it to, and then you can just use GetMousePos(x,y); and then Mouse(x,y,0,0,true) and that should work :)

sukomabawls

2007-07-12 18:04:34

i'll throw this into my upcoming falador miner, theres a door in the house where the stairs are that take you into the dwarf dungeon to automine coal!!!

JAD

2007-07-12 22:25:59

From: sukomabawls
i'll throw this into my upcoming falador miner, theres a door in the house where the stairs are that take you into the dwarf dungeon to automine coal!!!


Awesome! :) Glad some people will be using this.. =)

RiSe AgAiNsT

2007-07-16 23:40:38

Jad's Avatar Owns!

JAD

2007-07-17 00:39:57

From: RiSe AgAiNsT
Jad's Avatar Owns!


Thanks…? Lol :p