SRL Archive - First Scripts

auto loginer


Awkwardsaw

2008-04-27 17:51:55

this is my very first script. i got tired of using other peoples scripts, so i decided to try and get into scripting for myself.

i cant test this because every time i hit run ( or ctr-alt-r )
i get:

Line 58: [Error] (249:11): Unknown identifier 'CreateTPAFromBMP' in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/Math.scar

and the little guide on how to get rid of it didnt help at all.

i'm welcom to any support, bug fixes, or constructive critisism.

{.Script Info:
# ScriptName = akwardsaw's auto login
# Author = akwardsaw
# Description = this is my very first script
# Version = 1
# Date = 4-27-08
# Comments = thanks to NaumanAkhlaQ for making the
How to make an Auto Login Script tut
/Script Info}

// REMEMBER TO SELECT YOUR CLIENT, THING


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


Procedure TypeInUsernameAndPassword;
Begin
Mouse(426, 277, 5, 5, true);
Wait(1000+Random(2000))
Writeln('typing username')
TypeSend('username here') //username here
Wait (500+random(1000))
Writeln('typing password now')
Typesend('type password here') // password here
end;

Procedure LogIntoRunescape;
Begin
Mouse(297, 321, 10, 10, true);
Wait(7000+random(5000))
Mouse(405, 336, 7, 7, true)
Writeln('you are now logged into runescape, have fun and be carefull')
end;

Procedure Stay;
Begin
Wait(4000+random1679))
end;

Begin
TypeInUsernameAndPassword;
Stay;
LogIntoRunescape;
end.

Iceevil

2008-04-30 10:00:34

I like ur style, its looks really nice.
And its good, that u use comments :)

now, some mistakes:
1.Wait(4000+random1679)), u forget a round bracket ;)
2.There is no procedure like Mouse (i didnt found it in the Munual), but i think u want to use the procedure "ClickMouse" ;)

But for ur first scripts its really nice :D

Runescapian321

2008-04-30 10:12:55

Pretty decent, but there's already a function in SRL called 'LoginPlayer;', though you probably knew that :p You could make it more user friendly by setting the Username/Password as a const. And then to decrease detectability you could use TypeSend.

Like so

const
Username = 'username here'; //Username here
Password = 'password here';//Password here

That would be right after program Login; (or w/e).

Then later

TypeSend(Username);
TypeSend(Password);

GL scripting ;)


From: Iceevil
I like ur style, its looks really nice.
And its good, that u use comments :)

now, some mistakes:
1.Wait(4000+random1679)), u forget a round bracket ;)
2.There is no procedure like Mouse (i didnt found it in the Munual), but i think u want to use the procedure "ClickMouse" ;)

But for ur first scripts its really nice :D


Mouse is an SRL function (look through the SRL include folders). SCAR mouse functions are extremely detectable in Runescape (so is SendKeys).

Iceevil

2008-04-30 10:31:29

From: Runescapian

Mouse is an SRL function (look through the SRL include folders). SCAR mouse functions are extremely detectable in Runescape (so is SendKeys).


okay, didn't know :D
I learn more and more (h)

Naum

2008-04-30 11:49:15

Man That looks really good :)
And you learned it from my tutorial :).
Keep It Up!

alpine

2008-04-30 12:24:35

wonderfull first :) learn more and keep scripting

Nava2

2008-04-30 15:36:31

The error in Math.scar usually happens when you try to compile without a username and password in. Just use Username as the username and Password as the password.

Nava2

Awkwardsaw

2008-04-30 17:13:00

Mouse is an SRL function (look through the SRL include folders). SCAR mouse functions are extremely detectable in Runescape (so is SendKeys).
yeah, thats what i thought too,

and to nava, i know, i got it fixed. i had to get srl rev thingy

FreakyMonkey

2008-04-30 19:57:47

good first try, but u definitely should try to add a declare players and use the login function rather than relying on straight coordinates. u should use mouse coordinates when there is no possibility of failure

P1nky

2008-04-30 21:13:16

lmao this looks like a great decent auto loginer , this is a great start. now get into the RS world and make some scripts for that too.

btw if u want to u should put a option to turn off rs music :P

Awkwardsaw

2008-04-30 21:57:43

btw if u want to u should put a option to turn off rs music :P


oh i bet that would be origonal =P

and check out my lletya flaxer