SRL Archive - RS3 Script Requests

Need help with small script.. & get paid !!!


ayman255

2012-02-11 11:34:16

Hi,
I need very small script to say click Item one then Item two in the inventory. Say i am making headless arrows, I need it to click item 1 Then item 2 in my inventory then click the button to make them.
I am reading some tutorial & want to learn scripting ( I Do HTML, CSS & some PHP, so i have basic idea of coding :) )

I need it simple, No anti bans or failsafe, just the basic code .

Also, if you are active & willing to team up with me, I will be making alot of scipts here, & I have 1 bil GP, so Iwill pay in RS money too for people who realy help.

Thank you

weeps

2012-02-11 11:36:10

finddtm(item 1, x, y, ….etc)
mouse(x, y, 5, 5, 1)
finddtm(item2,x, y, etc)
mouse(x, y, 5, 5, 1)
Free dtms

Something like that should work.

Help is always free here, no need to pay.

laakerules

2012-02-11 11:38:35


Program Clicking;
{$DEFINE SMART}
{$i SRL/srl.simba}

procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

With Players[0] Do
Begin
Name := ''; //Your username
Pass := ''; //You password
Nick := ''; //Your Nickname, meant to see things needed to be seen! :)
Active := True;
End;

End;

procedure SetupChar;

begin

SetupSRL();
SetAngle(0);
ClickNorth(0);
end;

procedure Startup;
begin
Smart_Server := 69;
Smart_Members:= true;
Smart_Signed := true;
Smart_SuperDetail := false;
SetupSRL;
DeclarePlayers;
LogInPlayer;
wait(100+random(100));
end;

Procedure Clicking;
begin
InvMouse(1, 1);//This clicks inv slot 1
InvMouse(2, 1);//this clicks inv slot 2
Wait(500 + random(500));
end;

begin
Startup;
SetupChar;
repeat
clicking;
Until (not LoggedIn);
end.


From: weeps
finddtm(item 1, x, y, ….etc)
mouse(x, y, 5, 5, 1)
finddtm(item2,x, y, etc)
mouse(x, y, 5, 5, 1)
Free dtms

Something like that should work.

Help is always free here, no need to pay.


Lol, or you could use Srl's easy calls! :P

weeps

2012-02-11 11:41:02

From: laakerules

Program Clicking;
{$DEFINE SMART}
{$i SRL/srl.simba}

Procedure Clicking;
begin
InvMouse(1, 1);
InvMouse(2, 1);
Wait(500 + random(500));
end;

begin
repeat
clicking;
Until (not LoggedIn);
end.

Lol, or you could use Srl's easy calls! :P


Why you make me look bad? =3
But ye both works. If its the bolt thing then you should do the invmouse.

ayman255

2012-02-11 11:42:22

Woow.. quick reply.. ty all..
Where can i find a place to explain the things that already Defined . For example, How does the system know "InvMouse" ,& what does it do, hover or click?

laakerules

2012-02-11 11:44:12

Haha refresh page, i made a more elaborate one to really work! :)

weeps

2012-02-11 11:44:15

Check around under scripting tutorials. A lot of good guides there on useful commands.

laakerules

2012-02-11 11:46:18

Ya, i will be making a guide with my new and improved FindObjOnScreen, all ti does is allow you to have one function and call to find many different things with ACA :)

ayman255

2012-02-11 11:51:16

Also, i was thinking.. why do we have to declare players in every script !! Why not make one "Include" in the "C:\Simba\Includes" & call it "Players.simba" . It will have a list of all the persons accounts, then it can be included in any script & players only have to set it up once. all we will have to do is select the player number in the script & we ready to go ;)

laakerules

2012-02-11 12:01:57

Some do that i do believe! :P

ayman255

2012-02-11 12:08:31

From: laakerules
Some do that i do believe! :P


lol..ok.. this should be stander, & maybe a GUI for players to edit this include file. So we end up with a GUI to add & remove accounts, then all we have to do is include that file in our scripts & we set to go..
anyway, with the script provided , I need it to click on a location, how do i get the x,y locations & how do i make it work.

begin
InvMouse(1, 1);//This clicks inv slot 1
InvMouse(2, 1);//this clicks inv slot 2
Wait(500 + random(100));
MoveMouse( X, y ) // I need help here, move & click on location
end;

Yet, i cant find a thread that list all functions available to use , i do understand how all this work, but i need details. so a list of all functions & how they work can help me alot.. Only need the link to it ;)

again, ty so much

laakerules

2012-02-11 12:22:10

With the inv mouse you dont need to tell it to click X,Y

ayman255

2012-02-11 12:42:33

Ok, I have this, why the ClickMouse is not working !!
begin
InvMouse(1, 1);//This clicks inv slot 1
InvMouse(2, 1);//this clicks inv slot 2
Wait(1000 + random(100));
ClickMouse( 250, 450, mouse_Left ) ;
Wait(5000+ random(100));
end;

Markus

2012-02-11 12:50:16

Don't use clickmouse, it will get you banned.

laakerules

2012-02-11 16:26:47

REally :O

ayman255

2012-02-11 19:48:33

From: Markus
Don't use clickmouse, it will get you banned.


lol.. so do i have to do the Hold & release action ? How do i get it done in the above example. plzz

laakerules

2012-02-11 19:59:59

No just use mouse(coordX,CoordY,randX,RandY,RightClick true or false);

ayman255

2012-02-11 20:08:33

Ok , ty, How do I setup Variables here ? Example

Procedure Clicking;
//Variables:
Cordx1 := 250;
Cordx2 := 450;
randomize := 5 ; // randomize the click, this will be used in RandX & RandY
TorF := True;/ True or false

begin
mouse(Cordx1 ,Cordx2 ,randomize ,randomize ,TorF );
end;

This does not work for me ? I know its wrong, so what isthe best way to do it, I am reading http://docs.villavu.com/simba/ but not much about variables !
TY

laakerules

2012-02-11 20:30:15

next use simba tags! :P

Procedure Clicking;
var
Cordx1 := 250;
Cordx2 := 450;
randomize := 5 ; // randomize the click, this will be used in RandX & RandY
TorF := True;/ True or false

begin
mouse(Cordx1 ,Cordx2 ,randomize ,randomize ,TorF );
end;

ayman255

2012-02-11 20:39:59

From: laakerules
next use simba tags! :P

Procedure Clicking;
var
Cordx1 := 250;
Cordx2 := 450;
randomize := 5 ; // randomize the click, this will be used in RandX & RandY
TorF := True;/ True or false

begin
mouse(Cordx1 ,Cordx2 ,randomize ,randomize ,TorF );
end;


lol.. did not get it " use simba tags " ?
what do you mean.. & the code above still not working .

[Error] (45:8): colon (':') expected at line 44
Compiling failed.

line 44 is Cordx1 := 250; !!!
What is wrong in this

laakerules

2012-02-11 21:07:46

hmm, come to my chat in my sig and then post it to pastebin so i can look at it more affectively

ayman255

2012-02-11 21:15:57

From: laakerules
hmm, come to my chat in my sig and then post it to pastebin so i can look at it more affectively

WhaT DO YOU MEAN sig CHAT ? LOL .. HAVE NO IDEA..

drawboy11

2012-02-12 00:17:29

Procedure Clicking;
var
Cordx1 := 250: //<---- after every variable should always be colons until the last one ;P
Cordx2 := 450:
randomize := 5 : // randomize the click, this will be used in RandX & RandY
TorF := True;/ True or false //this is a semi-colon as it is the last variable ;P

begin
mouse(Cordx1 ,Cordx2 ,randomize ,randomize ,TorF );
end;


Hope this helped you haha Paste this script back in and it should work.

laakerules

2012-02-12 00:58:14


//At the top add these in your Var okay! :)
var
Cordx1,Cordx2,Randomize:Integer;

TorF:Variant;






Procedure Clicking;

Begin
Cordx1 := 250;
Cordx2 := 450;
randomize := 5;
TorF := True;

begin
mouse(Cordx1 ,Cordx2 ,randomize ,randomize ,TorF );
end;
End;

That should work if im not mistaken! :) Cant believe i didnt notice it earlier!:0

drawboy11

2012-02-12 01:08:15

^ lol hes right, sorry. It's like 3am here ;P

laakerules

2012-02-12 01:15:31

From: drawboy11
^ lol hes right, sorry. It's like 3am here ;P


Haha no worries drawboy! :) i didnt notice it at first either! :P