SRL Archive - RS3 Script Requests

need some help while tweaking script...


rotchy1

2012-03-07 18:01:03

if anyone that knows srl pretty well could please add me on msn and answer a few questions for me it would be very much appreciated!

ty!

msn: [email]rotchy1000@hotmail.com[/email]

Yago

2012-03-07 18:06:26

Come on IRC.

rotchy1

2012-03-07 18:07:09

i cant seem to connect to the irc page….getting a 404 errpr….it is this link correct?

irc.rizon.net

#srl

P1nky

2012-03-07 18:07:23

If you post the questions and what not, I would love to help on this thread.

Yago

2012-03-07 18:10:40

the link i believe is chat.rizon.net or qchat.rizon.net

rotchy1

2012-03-07 18:31:41

i got on irc, but its kinda hard to follow while everyone is talking…so maybe someone can help me here pelase?

im trying to use this fucntion

procedure Mouse(mousex, mousey, ranx, rany: Integer; button: variant);

to click on the 15th item in inv (similiar to like where you would click when stringing bows after you have already clicked "use bowstring with" assuming that you first withdrew 14 bowstrings and then 14 unf bows…if that makes sense)

can someone please explain what each variable in the procedure means? (i found it in the docs, but it doesnt say what to put in for each variable)

RISK

2012-03-07 18:33:53

Mousex and Mousey are the coordinates where you want the mouse to click. X and Y. You can get the coordinates by looking at the lower left of Simba. Where your mouse currently is will be the X and Y coordinates.

Ranx and Rany are the randomization for the coordinates where it will click. Which means where it click on the coordinates will always be different by X and Y amount of pixels.

Button is either MOUSE_LEFT or MOUSE_RIGHT, depending on the type of click you wish to do.

Mouse(500, 600, 10, 10, MOUSE_RIGHT);

rotchy1

2012-03-07 18:38:51

thankyou very much :) it makes sense now!

Yago

2012-03-07 18:40:05

From: rotchy1
i got on irc, but its kinda hard to follow while everyone is talking…so maybe someone can help me here pelase?

im trying to use this fucntion

procedure Mouse(mousex, mousey, ranx, rany: Integer; button: variant);

to click on the 15th item in inv (similiar to like where you would click when stringing bows after you have already clicked "use bowstring with" assuming that you first withdrew 14 bowstrings and then 14 unf bows…if that makes sense)

can someone please explain what each variable in the procedure means? (i found it in the docs, but it doesnt say what to put in for each variable)


you would do something link this:


program Name;

begin
Mouse(X,Y,0,0,MOUSE_LEFT);
end.

In that example, the x and the y are the coordinates you are trying to click. You need to fill in the x an y. The "0, 0" is the randomness on the click. The MOUSE_LEFT is a left click and MOUSE_Right is a right click.

To click an inventory slot you can use the function InvMouse;

rotchy1

2012-03-07 19:15:01

ok, ill look into that! thanks!