PDA

View Full Version : How to make an Auto Login Script



Naum
04-11-2008, 11:31 AM
Make Your Own Auto Login!! N00b Pr00f!!

Table Of Contents!
I- Intro
II - Explination.
III - Beggining Parts.
IV - Start To Put it together.
V - Assembling/See what we have Acieved.
VI - Glossary.
VII - End Notes/ Credits.


I - Intro.

Ok, I'm going to teach you how to make your first script. Many people think that making a script is hard, I can't sugar coat it, If your a learner
it is. But never fear becuase in this tutorial i will teach you how to make your very own, spectacular, ownage, pwnage, amazing, astonishing,
astounding, fabulous, fantastic, fantastical, incredible, marvelous, miraculous, phenomenal, prodigious, stupendous, unbelievable, wonderful,
wondrous,acceptable ,admirable, adorable ,amiable ,chaste ,comfortable ,convenient, and very very sexy - Auto Login!!!

II - Explanation?

So WTF!!! is an auto login, well autologin is my name for a script which will click on specified buttons and type in your 'User' and 'Pass' and
Literally log you in.

Why do you need something to log you in,
1) Saves Time.
2) Impresses your parents.
3) Makes you feel good.
4) First Script Made :)


III - Beginning Parts.

1)Ok so now we will begin, First Open Up scar:


http://i27.tinypic.com/25txnqa.jpg

2) Then Open Up the RuneScape window:


http://i28.tinypic.com/seuohs.jpg

^ HeHe ^


3) Then Drag the crosshair on the bar onto the runescape window:

http://i25.tinypic.com/2b5jbp.jpg

^^^^ Note: These 3 steps are called 'specifying the client' (for future reference) ^^^^


Ok now we've specified the client , We can Begin;

Making the script:

So we start of with something like this:


program New;
begin
end.


Ok now put some spaces between the lines:


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




begin


end.


Thats How we start any script we want to make.
Spaces here will help you save time instead of spacing the lines later.
Why add the {.include srl/srl.scar} because if you don’t you will die!!!!
j/k you need it because it has most of the things that you have to use e.g Mouse and TypeSend.


Ok Now what we need to do is declare a Procedure which will click on Existing User button, So we can start it like this:


program New;
{.include srl/srl.scar}
Procedure ClickOnExistingUserButton;
Begin


end;



begin


end.

As you can see here i've made a procedure called it ClickOnExistingUserButton, origonal,no?


Ok now what we need to do is pick the co-ords (coordinates) of the button Existing User
This is roughly what our Rs Screen looks like to S.C.A.R.

Rough Drawing

http://i25.tinypic.com/2ex7a4h.jpg

The ' - ' is where the co-ords of the button is so having a look at the origonal welcome screen:


http://i29.tinypic.com/16ib23s.jpg

^((note end cords aren't (700,700) they are (765,503)))^

You can see that the rough drawing is similar to the real screen.
So going back to picking our co-ords....
Drag S.C.A.R down so you can only see the color picker.

http://i28.tinypic.com/t6umwp.jpg

Now click the thingy in the red box (color picker) and move it on the Existing User Button , then click again to get the co-ords


Then Drag Up Scar and you'll see the co-ords in the debug box :).

http://i28.tinypic.com/i6mscm.jpg

Now the first bit says Color Picked: 5918541 at (426, 277).
Ignore the first part, thats the color, we're only interested in (426, 277) part.



IV - Start To Put it together.

Ok Now there are two main ways to make it click in SCAR and SRL (excluding GetMousePos) one of them is:

Number 1= ClickMouse(x,y,True)
^ What this does is you put your co-ords in the 'x, y' part and it left clicks it. (426, 277) are your x, y co-ords. ^
Ever Remember in Maths lessons when the explination of coordinates were 'along the corridor and up the stairs' (in england)

Well
x:= Along the corridor (426)
y:= Up the Stairs (277)

(x,y) in this case is equal to (426, 277) where the existing user button is.

SO what does True do?
True will tell it to click left or not? Left key on the mouse and right key:

http://i28.tinypic.com/2upsnjd.jpg

SO if it was False it would _____ click;

Acceptable answers: 'side','right' click.

You got it :)


Number 2= Mouse(x,y,1,1,true)
^ this is based upon the same priciples as clickmouse' (x,y := 426, 277). But the thing which makes this much much better and efficient to
use is that it has randomness in it ^

So whats randomness?
Well its located here (in bold)

Mouse(x,y,1,1, true)
On the screen there are loads of pixels (426, 277) means 426 pixels along 277 pixels up.( 'along the corridor and up the stairs') :)
what mouse cleverly does is that if you set it as 1,1 then it will change the values by adding or subtracting 1 from each co-ord.
SO the values could be (426, 277),(427,277),(427,276) ,(426,276) and (425,277) e.t.c. You can see it will randomly add or subtract 1 pixel.

SO if it was 1,0 it would subtract/add on 1 from the x co-ord. E.t.c.

And you know what True does :). If you don't, see the men in white coats.
You can never get banned for using Mouse ( unless your dumb enough to use co-ord clicking for walking with no randomness :) )


So which procedure will you use for clicking.

A) Mouse; ( Use this one hint hint!!!!!);
B) ClickMouse; (Dont use this!!!!!!!!!! hint hint!!!);

You will use the procedure _____ ;

Acceptable Answers:= 'A', 'Mouse';

If you said clickmouse you got 10% (Because i feel sorry for you :( )


++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++

Ok we're using Mouse.

So back to our Amazing (Put Wizzup? to shame!! Script).


program New;
{.include srl/srl.scar}
Procedure ClickOnExistingUserButton;
Begin
Mouse(426, 277,1,1,true);
Wait(1000+Random(2000))
WriteLn('Clicked Existing User Button')
end;



begin


end.

Ok so we now know it's going to click on the button co-ords, with 1 pixel randomness +/- on the x,y co-ords.

What WriteLn('') does is it writes something in the debug box.
Debug Box:= The place where (after we had selected the co-ords of the Existing User Button) the Color Picked: 5918541 at (562,
480) thing appered in.

So it WriteLn('Clicked Existing User Button') would make this happen:

http://i25.tinypic.com/rt49y1.jpg

What wait does is it Basically Waits in miliseconds. So 1000 would be 1 second so on. What Random(2000) does it that it waits between
0 and 2 secs.
When you click it it takes some time for the next screen to appear, also it stops you from getting banned :).


++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++

So, Ok, we've got this far..

This is what we have:

http://i28.tinypic.com/10gbt4m.jpg

So we just need our Amazing Ownage script to send our username and pass;

SO we can use two procedures in SCAR + SRL to type for us:

Number 1= SendKeys('Thing you want to type Here')
^ What this does is type the text between the ' ' ^ It does it really quickly and just does the whole sentence.
e.g.
Normal Person: hello h... (Take 1 second)
Send Keys: hellohowareyoudoingilikescarscriptingyayayayayayay ayayay (Takes 1/10 of a second)

This is bad because Jagex can detect this very easily.


BUT

Never fear..... TypeSend('Thing you want to type Here') Is Here!!!
^ What this does is it types it humanly ^ This is undetectable (Very Good!!!)
e.g.
Normal Person: hello how (Takes 1 second)
Send Keys: hello how (Takes 1 second)

Very good,no? And once more there are random waits between each word it types.

SO we declare another procedure;


program New;
{.include srl/srl.scar}
Procedure ClickOnExistingUserButton;
Begin
Mouse(426, 277,1,1,true);
Wait(1000+Random(2000))
WriteLn('Clicked Existing User Button')
end;

Procedure TypeInUserandPass;
Begin

end;



begin


end.


SO if you want someone else to use it you put:


program New;
{.include srl/srl.scar}
Procedure ClickOnExistingUserButton;
Begin
Mouse(426, 277,1,1,true);
Wait(1000+Random(2000))
WriteLn('Clicked Existing User Button')
end;

Procedure TypeInUserandPass;
Begin
TypeSend('UsernameHere') // username here!
end;



begin


end.

Ok thats what we have, so it will type the username of the dude, who is using it, in a human fashion. That will mean he won't get banned :) YaY!
Now we need to make it go to the password section of the screen. By doing that we press 'Enter';
Enter in S.CA.R is Chr(13); but TypeSend is really cool because it also presses enter after it types something.

TypeSend- Types and presses enter, exciting, no?


program New;
{.include srl/srl.scar}
Procedure ClickOnExistingUserButton;
Begin
Mouse(426, 277,1,1,true);
Wait(1000+Random(2000))
WriteLn('Clicked Existing User Button')
end;

Procedure TypeInUserandPass;
Begin
TypeSend('UsernameHere') // username here!
wait(1000+Random(200))
TypeSend('Password here')
end;



begin


end.

^ Ok now it enters are password in safely without any detectability, meaning your chance of being banned is minimum! ^


Ok so now time for the real part:


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

Procedure ClickOnExistingUserButton;
Begin
Mouse(426, 277,1,1,true);
Wait(1000+Random(2000))
WriteLn('Clicked Existing User Button')
end;

Procedure TypeInUserandPass;
Begin
TypeSend('UsernameHere') // username here!
wait(1000+Random(200))
TypeSend('Password here')
end;

Procedure CompleteLogin;
Begin

end;



begin


end.
Ok I've made a new procedure called CompleteLogin What this does is it completes the login. So you have something like this up to now:

http://i29.tinypic.com/29p7oxv.jpg

SO you ask why's the typing line on the username side once we've typed in the password???
Because TypeSend presses enter after it has typed something :).

Ok so we've got this far, now we need it to click the login button.

SO we get the color Picker and like we did with the existing user button you put it over the login button.
Look in the debug box you should get something like this:

Color Picked: 4471610 at (299, 316)
We're only interested in the (299, 316) part.

SO we want to make it click the co-ord, we have to use Mouse not ClickMouse.

Our script should look like this :)


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

Procedure ClickOnExistingUserButton;
Begin
Mouse(426, 277,1,1,true);
Wait(1000+Random(2000))
WriteLn('Clicked Existing User Button')
end;

Procedure TypeInUserandPass;
Begin
TypeSend('UsernameHere') // username here!
wait(1000+Random(200))
TypeSend('Password here')
end;

Procedure CompleteLogin;
Begin
Mouse(299, 316,1,1,true)
WriteLn('Clicked Login Button')
end;



begin


end.

SO it's clicked the login button now it needs to wait until the confirmation screen appears, so we can make it wait until it appears. Take approx
5 seconds. So lets add 2 secs random wait :) :


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

Procedure ClickOnExistingUserButton;
Begin
Mouse(426, 277,1,1,true);
Wait(1000+Random(2000))
WriteLn('Clicked Existing User Button')
end;

Procedure TypeInUserandPass;
Begin
TypeSend('UsernameHere') // username here!
wait(1000+Random(200))
TypeSend('Password here')
end;

Procedure CompleteLogin;
Begin
Mouse(299, 316,1,1,true)
WriteLn('Clicked Login Button')
WriteLn('Waiting For the Confirmation Screen!')
Wait(5000+Random(2000))

end;



begin


end.

Now we need to get the confirmation screen on and pic the co-ords of it:

http://i31.tinypic.com/1zojhbp.jpg

SO we pick it from the Blue Spot (middle of Click Here To Play button) and we use the color picker again...
Color Picked: 16777215 at (381, 338)
(381, 338) are the co-ords of the middle point of the button.
We dont want to get banned so we need Pixel Randomness

Remember in Mouse what the 1,1 is?
Well we can't have 1 pixel randomness or we will get banned!!!!
So we'll change it to 5,5. So our script should look like:


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

Procedure ClickOnExistingUserButton;
Begin
Mouse(426, 277,1,1,true);
Wait(1000+Random(2000));
WriteLn('Clicked Existing User Button');
end;

Procedure TypeInUserandPass;
Begin
TypeSend('UsernameHere'); // username here!
wait(1000+Random(200));
TypeSend('Password here');
end;

Procedure CompleteLogin;
Begin
Mouse(299, 316,1,1,true);
WriteLn('Clicked Login Button');
WriteLn('Waiting For the Confirmation Screen!');
Wait(5000+Random(2000));
Mouse(381, 338,5,5,true);
wait(2000+Random(3000));
end;



begin


end.

I added a wait in their because if you want to add anything then you need to make sure the game has fully loaded (Inventory, ChatBox,
MainScreen and Minimap :) ).


V - Assembling/See what we have Acieved.


SO what about the end bit??? You ask Edn Bit := begin


end.

Well thats what we call a Main Loop thats where we put all our procedures. Without a main lopp our script wouldn't do anything.
try running without the mainloop:


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

Procedure ClickOnExistingUserButton;
Begin
Mouse(426, 277,1,1,true);
Wait(1000+Random(2000));
WriteLn('Clicked Existing User Button');
end;

Procedure TypeInUserandPass;
Begin
TypeSend('UsernameHere'); // username here!
wait(1000+Random(200));
TypeSend('Password here');
end;

Procedure CompleteLogin;
Begin
Mouse(299, 316,1,1,true);
WriteLn('Clicked Login Button');
WriteLn('Waiting For the Confirmation Screen!');
Wait(5000+Random(2000));
Mouse(381, 338,5,5,true);
wait(2000+Random(3000));
end;



begin


end.

You'll Get this message Successfully compiled
Successfully executed
WTF!!!! It hasn't done anything!!!!! Rawr!!!!! Grrr!!!!!!!.
Thats why you need a mainloop saves anger and time :p.

Ok SO this is the prime Task, If you don't do this correctly you better go back to sythe.org :) !!

Ok a mainloop must start with SetupSRL; Because without it all the procedures in SRL won't work Like
Mouse and TypeSend .

SO our Script Looks Like this:


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

Procedure ClickOnExistingUserButton;
Begin
Mouse(426, 277,1,1,true);
Wait(1000+Random(2000));
WriteLn('Clicked Existing User Button');
end;

Procedure TypeInUserandPass;
Begin
TypeSend('UsernameHere'); // username here!
wait(1000+Random(200));
TypeSend('Password here');
end;

Procedure CompleteLogin;
Begin
Mouse(299, 316,1,1,true);
WriteLn('Clicked Login Button');
WriteLn('Waiting For the Confirmation Screen!');
Wait(5000+Random(2000));
Mouse(381, 338,5,5,true);
wait(2000+Random(3000));
end;



begin
SetupSRL;

end.

Ok we've SetupSRL; now what do we do.
We need to make sure the S.C.A.R window is minimized. How can we do this, we'll after Specifying the client (Steps 1-3) this thingy
works : ActivateClient.


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

Procedure ClickOnExistingUserButton;
Begin
Mouse(426, 277,1,1,true);
Wait(1000+Random(2000));
WriteLn('Clicked Existing User Button');
end;

Procedure TypeInUserandPass;
Begin
TypeSend('UsernameHere'); // username here!
wait(1000+Random(200));
TypeSend('Password here');
end;

Procedure CompleteLogin;
Begin
Mouse(299, 316,1,1,true);
WriteLn('Clicked Login Button');
WriteLn('Waiting For the Confirmation Screen!');
Wait(5000+Random(2000));
Mouse(381, 338,5,5,true);
wait(2000+Random(3000));
end;



begin
SetupSRL;
ActivateClient;

end.

SO thats done what else. We have 3 more procedures we have to call in Cronilogical order (First Second Thrid e.t.c).
So we have
ClickOnExistingUserButton;
TypeInUserandPass;
CompleteLogin;

And so our script fully made up and functioning (Working) is: gay(j/k)


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

Procedure ClickOnExistingUserButton;
Begin
Mouse(426, 277,1,1,true);
Wait(1000+Random(2000));
WriteLn('Clicked Existing User Button');
end;

Procedure TypeInUserandPass;
Begin
TypeSend('UsernameHere'); // username here!
wait(1000+Random(200));
TypeSend('Password here');
end;

Procedure CompleteLogin;
Begin
Mouse(299, 316,1,1,true);
WriteLn('Clicked Login Button');
WriteLn('Waiting For the Confirmation Screen!');
Wait(5000+Random(2000));
Mouse(381, 338,5,5,true);
wait(2000+Random(3000));
end;



begin
SetupSRL;
ActivateClient;
ClickOnExistingUserButton;
TypeInUserandPass;
CompleteLogin;
end.

http://i27.tinypic.com/21l35mv.png;


VI - Glossary.
Here are some Names that Scripters use when talking about certain things:

co-ords := Co ordinates;

Mouse := Click;

Procedure := Something which does something (Paradoxical :p)

Function := Something which does Something :p but also gives us a Result e.g.
Function FindMom : Boolean;
Begin
If FindBitmap(yourmom,x,y) Then
Result := True;
end;

ActivateClient := Minimizes S.C.A.R window.

Script := Something which is made up of Code.

Code := Writing which does something with your computer.

All I can think about Right Now!


VII - End Notes/ Credits.

Well basically I made this tut to inspire people that scripting isn't something thats really boring and that only elite people can do.
Every one was a noob once upon a time....
EveryOne has the potential. Thanks-

Credits:

YakMan- Started me Scripting. Thanks Buddy!
Devs- No SRL without you.
Fakawi - Nice Community.
Rest Of the members- Thanks guys!!!


End Note:= If you liked this tutorial You can rep++ me :)

GoF
04-11-2008, 11:53 AM
Hmm. This is very, very, very n00b pr00f :D Everything is well explained, but a quite long tutorial about such a simple task :p.. But good job.

E: <3 my sig.

E2: Please stop begging for rep :sasmokin: It's really gay.

Naum
04-11-2008, 12:21 PM
No rep is cool. And ty btw.
I hope this will teach other people aswell.

n3ss3s
04-11-2008, 12:50 PM
No rep is cool. and ty btw

If you mean that like "No, rep is cool", don't ask for reputation, it's an unwritten rule even though you may have seen many people do so.

Lee Lok Hin
04-11-2008, 12:54 PM
Personally, i think Mousebox would be better, but i suppose its a matter of personal prefernce.

Great tut though.

ShowerThoughts
04-11-2008, 01:14 PM
If you mean that like "No, rep is cool", don't ask for reputation, it's an unwritten rule even though you may have seen many people do so.

Yes, it is said can you - rep to?

Naum
04-11-2008, 04:55 PM
Personally, i think Mousebox would be better, but i suppose its a matter of personal prefernce.

Great tut though.

Umm leelokhin, No beginner would be interested in MouseBox.
First let them get the basics :p.

@N3ss3s O RLY?

bullzeye95
04-11-2008, 05:11 PM
Nice tutorial... A little long, but that's all the more information to learn.
Good job :)

EvilChicken!
04-11-2008, 05:13 PM
Its obvious you've spent some time on this, rep+ for you. ^_^

Naum
04-11-2008, 05:14 PM
Thanks Guys :)

kuikmaa
04-11-2008, 05:30 PM
Great tutorial,

You not only got into how to accomplish an auto logger, but you also went into great detail as to why these things are the way they are. For a beginner, this is perfect. You helped them to understand basic scar scripting, while having fun doing it. GREAT POST!

Naum
04-11-2008, 05:35 PM
Great tutorial,

You not only got into how to accomplish an auto logger, but you also went into great detail as to why these things are the way they are. For a beginner, this is perfect. You helped them to understand basic scar scripting, while having fun doing it. GREAT POST!

Thanks a writer is always happy to be complimented :).

Richard
04-11-2008, 06:37 PM
When I first saw the title of this I thought you had copied my logging in guide. But this is actually making the whole log in and everything. Nice!

Rep++

Naum
04-11-2008, 07:23 PM
Thanks man,

It means alot comming from the Main TuT writer.

I haven't read your 9 is it? Tut's but im sure there really good.

Maybe I should add a link section?

x_²
04-11-2008, 08:07 PM
hmm well i can now make an account maker =)

supergeof
04-11-2008, 08:21 PM
Very nice and well explained tutorial, I understood even if I just start with this program :)
Thanks a lot this will help me to make my first script.

Naum
04-12-2008, 07:30 AM
No problem :).

Glad I could help :).

Richard
04-12-2008, 07:46 AM
Thanks man,

It means alot comming from the Main TuT writer.

I haven't read your 9 is it? Tut's but im sure there really good.

Maybe I should add a link section?

A link to my tuts? Nah, if people need them they will find them ;)

And yeah, its 9 :p

PvH
04-12-2008, 08:18 AM
very nice tut
well explained:)
this will help a lot of beginners
i didn't learn anything from it,
but still very nice work
rep++ for you:D

Naum
04-12-2008, 09:01 AM
No Problem,
I am currrently working on my second tut :)

Richard
04-12-2008, 10:43 AM
Can you give us a hint what it is :)

syn7hetic
04-12-2008, 11:47 AM
wow i did the tut it was fun iv never scripted b4 :)

have a look at what i got plz?

also what is chatlog.txt? it keeps asking permission and i didnt type anything in about it that i know of

Naum
04-12-2008, 02:38 PM
program New;
{.include srl/srl.scar}
//This Was Made Using NaumanAkhlaQ On Auto Logins
//My First Ever Script :)
//I Know There Is Alot Of Waits That Arnt Needed But I Was Just Having Some Fun
//Hope You Like It :)


Procedure Existinguser;
Begin
WriteLn('Finding The Existing User Button');
Wait(500+Random(1000));
Mouse(426, 277,5,2,true);
Wait(500+Random(1000));
WriteLn('Clicked Existing User Button');
end;

//Account Info
Procedure Login;
Begin
Mouse(303, 256,4,1,true);
wait(100+Random(200));
TypeSend('User'); // Username
wait(100+Random(200));
TypeSend('password'); //Password
end;


Procedure Done;
Begin
Mouse(299, 316,5,2,true);
WriteLn('Clicked Login ');
Wait(500+Random(100));
WriteLn('Waiting...');
Wait(500+Random(100));
WriteLn('Waiting...');
Wait(500+Random(100));
WriteLn('Waiting...');
Wait(500+Random(100));
WriteLn('Not Really Its Done :)'); //Lol i hope u dont acutaly wait for this :P
wait(5000+Random(500));
WriteLn('Thanks For Using My Auto Loging');
end;


//You Need These Here, Keep Ur Hands Off :P
begin
SetupSRL;
ActivateClient;
Existinguser;
Login;
Done;

end.

Well Done! Its looks very good.
GL at learning scripting :).

Brain
04-13-2008, 03:54 AM
very nice, rep ++
I read a tut on how to do basically all this, but it wasn't in a big example like this, it just said "'Mouse' does this...blah blah"
But seeing it in action embeds the info better, so thanks for writing this
good job

Naum
04-13-2008, 06:32 PM
THANKS very much.
I made it so it would be more understandable :).

Glad I Could Help :)

PvH
04-13-2008, 06:40 PM
thanks
it helped me specify the client
i forgot that :duh:
kinda dumb eh
you'll get your rep++ later;)

sk8terbitu
04-13-2008, 07:13 PM
woh sikk script!

trav280
04-13-2008, 10:49 PM
wow this is very detailed thanks alot

Naum
04-15-2008, 09:18 AM
woh sikk script!


yeah im still working on the learning part im still lost but thanks so far


wow this is very detailed thanks alot

@ sk8: Please Don't Spam

@ Trav: No Problem glad i could help.

@ eugen : Keep on learning ;)

SeanJohn
04-15-2008, 09:58 PM
Thanks for the script Nauman it was really helpful.

infested999
04-15-2008, 10:24 PM
Nice tutorial and i like the amount of time you put into this (Pictures explaining everything).

REP++

Naum
04-16-2008, 07:30 AM
No problem guys. Glad you could learn from this :)

StrikerX
04-16-2008, 09:12 AM
hehe i can tell your at draynor

Naum
04-16-2008, 09:16 AM
Yeah, I was using my Karamja Fisher script ;).

syn7hetic
04-21-2008, 01:00 AM
i added smart to it :) i really need to thank you dude this is helping me heeps :) now i just gotta find something els easy to it so it does something :)





program New;
{.include SRL/SRL/Misc/Smart.scar}
{.include srl/srl.scar}
//This Was Made Using NaumanAkhlaQ Tutorial On Auto Logins
//My First Ever Script :)
//I Know There Is Alot Of Waits That Arnt Needed But I Was Just Having Some Fun
//Hope You Like It :)


Procedure Existinguser;
Begin
Wait(500+Random(200));
Mouse(426, 277,5,2,true);
WriteLn('Found Existing User Button');
end;

//Account Info
Procedure Login;
Begin
Mouse(303, 256,4,1,true);
wait(100+Random(200));
TypeSend('user'); // Username
wait(100+Random(200));
TypeSend('pass'); //Password
end;


Procedure Done;
Begin
Wait(200+Random(200));
Mouse(299, 316,5,2,true);
WriteLn('Clicked Login ');
Wait(2000+Random(2000));
Mouse(424, 337,10,2,true);
WriteLn('Clicked Play Lets Have Some Fun!');
Wait(500+Random(500));
WriteLn('Thanks For Using My Auto Loging');

end;

const
SmartWorld = 108; //What World To Use :)
Signed = true; //Signed Client
//--------------------------------------------------------------\\
//----------------------Dont Edit Below This----------------------\\
procedure SetupSmart;
begin
SmartSetupEx(SmartWorld, false, Signed);
ClearDebug;
WriteLn('Setting up Smart... Please Hold...');
Wait(10000 + random(5000));
SetTargetDC(SmartGetDC);
While not(SmartReady) do Wait(100);
end;


//You Need These Here, Keep Ur Hands Off :P
begin
SetupSRL;
SetupSmart;
ActivateClient;
Existinguser;
Login;
Done;

end.

what do u think?

Naum
04-22-2008, 05:23 PM
Well Done it looks really good!!!

Sneakdella
04-22-2008, 05:59 PM
Fixed my problems forgot to add the dot before

{.include} on all of them


Did not add true or ; after some of the code

Naum
04-23-2008, 04:56 PM
Ok glad to see you got over your problem, If you need any help i'm only a PM away ;).

NaumanAkhlaQ

Sneakdella
04-23-2008, 05:08 PM
I'm going to look at your other tuts :D

Iceevil
04-25-2008, 02:10 PM
I'm going to look at your other tuts :D

hehe, me too :P

really good tut,
now I know more about Scar and how to use it :)

Naum
04-25-2008, 03:26 PM
Thanks always glad to Help :)

ldg1414
04-30-2008, 01:12 AM
I liked it, very well put together. I gave it a try and everything turned out fine, I got confused alittle in the middle when I thought I could see my progress so far and started it up to find my mouse magnetised to the upper screen for some reason, only to find I forgot to start up srl :P.

Whakey
04-30-2008, 03:05 PM
Thanks for this great tut! Now im going to start learning more scripting ( I allready readed some beginner tut, but this was so good :;D)

Ty!

Naum
04-30-2008, 03:38 PM
No Problem :)

Griff
05-03-2008, 04:57 PM
hmm i got a when i tried to compile i got
Line 6: [Error] (12660:1): Invalid number of parameters in script
btw i have scar 3.15 and rev 16

slayerkiller13
05-03-2008, 06:24 PM
helped me a lot thx ...really a lot :D
at first mouse moved really slow like 1 pixel each time coz i 4got to add SetupSrl; to main loop :p

King of the Nites
05-03-2008, 07:44 PM
helped me a lot thx ...really a lot :D
at first mouse moved really slow like 1 pixel each time coz i 4got to add SetupSrl; to main loop :p

You could also do mousespeed := 15; in the beginning to make it go faster.

Griff
05-03-2008, 07:49 PM
very nice tut, helpped me out a lot, and it was kind of fun reading and following along.
One question for you though.(or anyone else reading this) I'm trying to make a very basic fisher. Any tuts for fishers out there?

Naum
05-03-2008, 08:05 PM
Yeah search JAD's (I think) TuT on power fishing ;).

Glad I Could Help Yall. :)

Jackrawl
05-05-2008, 05:06 AM
Yeah search JAD's (I think) TuT on power fishing ;).

Glad I Could Help Yall. :)

....
program AutoLogin;
{.include SRL/SRL.scar}
var
x, y:integer;
procedure declarePlayers;
begin
howManyPlayers := 1;
numberOfPlayers(HowManyPlayers);
currentPlayer := 0;

players[0].Name := ''; //user
players[0].Pass := ''; //pass
players[0].Nick := '';
players[0].Active := True;
end;
begin
setupSRL;
declarePlayers;
loginPlayer;
end.
???
How did you manage to write almost two pages on something like that? What were you doing? You were drawing penises on the Runescape Mainscreen, just how much time do you have exactly?

Naum
05-05-2008, 09:29 AM
....
program AutoLogin;
{.include SRL/SRL.scar}
var
x, y:integer;
procedure declarePlayers;
begin
howManyPlayers := 1;
numberOfPlayers(HowManyPlayers);
currentPlayer := 0;

players[0].Name := ''; //user
players[0].Pass := ''; //pass
players[0].Nick := '';
players[0].Active := True;
end;
begin
setupSRL;
declarePlayers;
loginPlayer;
end.
???
How did you manage to write almost two pages on something like that? What were you doing? You were drawing penises on the Runescape Mainscreen, just how much time do you have exactly?

Are you soo thick that you don't even get the Idea of this tutorial, I covered some of SRL's functions you twonk.
Thanks for your critisism want to say anything positive about it?

TheChineseMan
05-05-2008, 10:18 AM
do i have to have all of this tut in my script so that i can make my player log in or can i just make a declare player procedure and thats all?

Naum
05-20-2008, 01:24 PM
Decalre Players then Just do,

If Not LoggedIn Then
LoginPlayer ;)

Hope I Helped :)

ßlϊzzarÐ
05-21-2008, 06:47 AM
Nice tutorial. I really like the way you explained the codes and stuff. Good job


rep ++

xD

PhantomCode
05-21-2008, 11:10 AM
Great tutorial! I was excited to be introduced to the world of SCAR scripting by such a fun tut!
Definitely VERY noob proof! Congratulations!

Rep for you, Yay!

Naum
05-22-2008, 08:04 AM
Great tutorial! I was excited to be introduced to the world of SCAR scripting by such a fun tut!
Definitely VERY noob proof! Congratulations!

Rep for you, Yay!

I thanks you :)

edggy
05-24-2008, 12:03 AM
Nice tutorial
I think this will help me in the future
Thanks.

Naum
05-27-2008, 01:30 PM
No Problem.

0wn 4 skill
07-04-2008, 06:20 PM
Nauman, I love you mate.

Watch for my auto login. I expanded on this and its gonna be interesting...

goodhomeboy
07-04-2008, 08:45 PM
thanks, very detailed but when i try and urn it it says
"Mouse" unidentified in line and "clickonexistingUserbutton".

0wn 4 skill
07-04-2008, 09:51 PM
That is because there isnt an existing user button.

randy marsh
07-04-2008, 10:17 PM
Nice tutorial... A little long, but that's all the more information to learn.
Good job :) to a noob user like me its long but so helpfull best tut i have seen 5 stars for u!:)

can this work for the new update?

0wn 4 skill
07-04-2008, 11:41 PM
to a noob user like me its long but so helpfull best tut i have seen 5 stars for u!:)

can this work for the new update?


Sure, if you change Co-ordinates slightly!

randy marsh
07-05-2008, 12:48 AM
So if i copy this and paste into core - login and delte whats there
and paste this in, will it work?

Or is these script just what u put in at the start of a script?

Minkino
07-05-2008, 02:24 AM
Hey for the update u wouldnt need to put in the complete login because the Mouse presses enter att the end of typing, correct?

Naum
07-05-2008, 10:09 AM
Thanks for all the replies, This tutorial is kinda useless, but you can get the jist of things using this on the new Login Screen :)

0wn 4 skill
07-06-2008, 03:20 PM
Here is a fix for the new login.

Just paste into SRL Inclued Core file then overwrite the old one.

AzulDrake
08-22-2008, 06:00 AM
WTG! What an excellant tut. Thanx for your time and patients in putting everything toghter and making it fool/idiot proof :) Even I understood it :D

Naum
08-30-2008, 09:28 AM
No Problem :)

BenMan
09-13-2008, 08:11 AM
nice tut dude :P its the best one i've tried out so far lol :P

jakeyboy29
09-13-2008, 11:16 AM
cord clicking should be used any more, so i wouldnt recoment this tut.

Naum
09-13-2008, 11:43 AM
Arrghhh its not about co-ord clicking its about the main functions in srl and scar. But use SRL's one this is only for people who want to experiment.

Death12652
09-13-2008, 04:42 PM
pretty good tutorial but the pictures are a little out of date

Riazzer
10-08-2008, 10:57 PM
Thanks for the help. Helped me create my first script :)

Alligaattor
10-18-2008, 05:54 PM
WOW!!! i have no words to say how good tut this if for beginners...

tokkar
11-04-2008, 03:36 AM
Good tut.
I got it to work!:)
Im going to use this in my first script.

Laimonas171
11-05-2008, 03:20 PM
thnak you for that tutorial, for noob in scar like me it should help me to learn :) very very full tutorial :)

RaiNKhan
11-11-2008, 04:32 AM
tyvm man i just learning scripting and you helped out alot thanks!

Naum
11-20-2008, 09:19 PM
Wow this is still active :p. I might think of updating it.

newber_dan
11-23-2008, 02:56 AM
Thanks alot, helped me alot, with help of this tutorial i made a script that even loads up firefox > runescape.com > login screen > and completely logs me in.

much love brother

T0xicblood
11-26-2008, 06:51 PM
Very nice guide, but I wish there was an easier way. Because I'm not really good at this

Naum
12-01-2008, 05:14 PM
There is :
Loginplayer; :)

Phran6
01-25-2009, 05:52 PM
nice man i learned alot !!

Naum
01-26-2009, 05:36 PM
No problem, Im thimnking of updating this to work with the new RS interface.

Gearsnare
02-22-2009, 11:01 PM
Extremely helpful, thank you very much.
You helped me create my first scar script so +rep for you!

Here is a copy encase you update your post.

program AutoLogin;
{.include srl/srl.scar}

Procedure ClickOnExitstingUserButton;
begin
Mouse(382,184,22,4,true);
Wait(500+Random(1000));
WriteLn('Clicked Existing User Button');
end;

Procedure TypeInUsernameAndPassword;
begin
TypeSend('username'); //Username here.
Wait(750+Random(1000));
Typesend('password'); //Password here.
Wait(750+Random(1000));
end;

Procedure CompleteLogin;
begin
Mouse(377,271,26,11,true);
WriteLn('Clicked Log In Button');
WriteLn('Waiting For the Confirmation Screen!');
Wait(5000+Random(2000));
Mouse(383,350,282,20,true);
end;

begin
SetupSRL;
ActivateClient;
ClickOnExitstingUserButton;
TypeInUsernameAndPassword;
CompleteLogin;
end.

Valkyrie
12-24-2011, 07:53 PM
Thanks it helped me alot to implement that to my future scripts.