SRL Archive - First Scripts

AutoLogin


Baked0420

2008-04-30 18:35:55

my first script…. well first script I finished anyway, took me 5 minutes, I just got to lazy to log into Runescape so I made this script, not that I play much anymore because I auto mostly now but it uses SMART and logs you into world 66 (members). It also disguises Scar, was supposed to be grand exchange data base, but runescape has the same thing for every page.

also SmartWorld= ''; wasn't working for me, can someone please help, it'll come in handy for the scripts im working on. You can put it under DeclarePlayers right? like this

procedure DeclarePlayers;
Begin

HowManyPlayers:= 1;
CurrentPlayer:= 0;
NumberOfPlayers(HowManyPlayers);

Players[0].Name := '';
Players[0].Pass := '';
Players[0].Active := True;

SmartWorld='';
End;

then under the main loop have

SmartSetupEx(SmartWorld, False, True);
While Not SmartReady Do Wait(100);
SetTargetDC(SmartGetDC);

Go to line 19 to change the world by changin 66 with the world you want

btw, I'm more skilled then this, I can do way more things I just made this autlogger because i was bored and as mentioned before lazy, but since I made it I decided to post it.

and just realized verison 1 has an unneeded constant, must have forgotten to take it out.

well here's the script:

benjaa

2008-04-30 18:38:28

for Standard, you would put SmartWorld should go in setup, or maybe even Const

Baked0420

2008-04-30 18:42:34

I tried putting it as a constant but it said begin expected because I did it like a code I think, i put SmartWorld= '66'; under constant, which doesn't go under Const, does it? if it does idk why it says begin expected. Could you give me an example please.

EDIT:nevermind I figured out what you meant, I had it right up there, I just needed to add SmartWorld as a constant, but leave SmartWorld= '66'; in DeclarePlayers, I thought it was one or the other, thanks for the help.

EDIT2: I thougth I fixed it, but apparently not, I must of ran a different tab and thought I still had that tab opened, so how do you do it?

It's really annoying, I tried doing it like 50 different ways, I just can't seem to get it to work.

This how I though it would work

Program AutoLogger;
{.include SRL/SRL/misc/SMART.scar}
{.Include SRL/SRL.Scar}

Const
SmartWorld

procedure DeclarePlayers;
Begin

HowManyPlayers:= 1;
CurrentPlayer:= 0;
NumberOfPlayers(HowManyPlayers);

Players[0].Name := '';
Players[0].Pass := '';
Players[0].Active := True;

SmartWorld= '66';
End;

Begin
SmartSetupEx(SmartWorld, False, True);
While Not SmartReady Do Wait(100);
SetTargetDC(SmartGetDC);
SetupSRL;
ActivateClient;
DeclarePlayers;
LogInPlayer;
Disguise('RuneScape - the massive online adventure game by Jagex Ltd - Microsoft Internet Explorer'); //This was supposed to be the Grand Exchange Database but all R.S. pages' are the same, no need to change
End.

but I keep getting an error that comes up as,

Line 8: [Error] (12747:1): is ('=') expected in script

line 8 is where I have my procedure

nevermind, I searched for {.include SRL/SRL/misc/Smart.scar} on this site to lok for a script with smart and found out what I was looking for I know what i was doing wrong.

Richard

2008-05-01 12:56:01

From: Baked0420
I tried putting it as a constant but it said begin expected because I did it like a code I think, i put SmartWorld= '66'; under constant, which doesn't go under Const, does it? if it does idk why it says begin expected. Could you give me an example please.

EDIT:nevermind I figured out what you meant, I had it right up there, I just needed to add SmartWorld as a constant, but leave SmartWorld= '66'; in DeclarePlayers, I thought it was one or the other, thanks for the help.

EDIT2: I thougth I fixed it, but apparently not, I must of ran a different tab and thought I still had that tab opened, so how do you do it?

It's really annoying, I tried doing it like 50 different ways, I just can't seem to get it to work.

This how I though it would work

Program AutoLogger;
{.include SRL/SRL/misc/SMART.scar}
{.Include SRL/SRL.Scar}

Const
SmartWorld

procedure DeclarePlayers;
Begin

HowManyPlayers:= 1;
CurrentPlayer:= 0;
NumberOfPlayers(HowManyPlayers);

Players[0].Name := '';
Players[0].Pass := '';
Players[0].Active := True;

SmartWorld= '66';
End;

Begin
SmartSetupEx(SmartWorld, False, True);
While Not SmartReady Do Wait(100);
SetTargetDC(SmartGetDC);
SetupSRL;
ActivateClient;
DeclarePlayers;
LogInPlayer;
Disguise('RuneScape - the massive online adventure game by Jagex Ltd - Microsoft Internet Explorer'); //This was supposed to be the Grand Exchange Database but all R.S. pages' are the same, no need to change
End.

but I keep getting an error that comes up as,

Line 8: [Error] (12747:1): is ('=') expected in script

line 8 is where I have my procedure

nevermind, I searched for {.include SRL/SRL/misc/Smart.scar} on this site to lok for a script with smart and found out what I was looking for I know what i was doing wrong.


You've done it wrong, you declared it if its variable, you have to say what the constant is. So you should get:


Program AutoLogger;
{.include SRL/SRL/misc/SMART.scar}
{.Include SRL/SRL.Scar}

Const
SmartWorld = 66;

procedure DeclarePlayers;
Begin

HowManyPlayers:= 1;
CurrentPlayer:= 0;
NumberOfPlayers(HowManyPlayers);

Players[0].Name := '';
Players[0].Pass := '';
Players[0].Active := True;
End;

Begin
SmartSetupEx(SmartWorld, False, True);
While Not SmartReady Do Wait(100);
SetTargetDC(SmartGetDC);
SetupSRL;
ActivateClient;
DeclarePlayers;
LogInPlayer;
Disguise('RuneScape - the massive online adventure game by Jagex Ltd - Microsoft Internet Explorer'); //This was supposed to be the Grand Exchange Database but all R.S. pages' are the same, no need to change
End.

Baked0420

2008-05-13 18:41:29

lol, yea I just made it because I was bored, had nothing better to do, plus I'm lazy, so when I play legit, I still auto….to log me in anyway lol, but I'm going to use it for my other scripts I been working on, which I should start continueing on, but for this script I might add antiban, so it doesn't log you off if you have it log you on when your leaving your computer real quick, so then you can just stop the script when you wanna play (so it's not doing anti-ban anymore, no need if your playing legit lol). But yea its a pretty small scipt.

flaminhaz

2008-05-23 22:16:36

thanks, this is great as i have just changed password and takes me a while to type it fast =]

Kalle

2008-05-24 05:49:20

;) Go on. Someday you will maybe do longer scripts…

ldubindaclub

2008-05-27 15:17:25

Hey, its a good idea, although it is almost compeletely useless.

Baked0420

2008-05-27 15:41:25

From: ldubindaclub
Hey, its a good idea, although it is almost compeletely useless.


oh thanks… hahah jp, but as I said in earlier posts, I only made this little script because I was bored atm, and I'm lazy so now I don't have to type in my password, and I saved this as default in scar so whenever I open scar its there to log me in if I wanna play legit lol.

But I already had longer scripts started before I even started this script, and I currently have one script posted already, it's in junior member's prayer. It picks up bones and gold and buries the bones, check it out if you want, and tell me how I can make it better if you have any ideas.

Baked0420

2009-01-26 21:37:19

sorry for gravedig, I just had to post. HAHAHA look how stupid I used to be, I thought I put SmartWorld under const, then I thought I had to declare what it was equal to later on in the script :p. I used to be so dumb, now I know you declare what it is equal to under const.

Example of what I mean if I sounded confusing.
When I used to be dumb I thought it was done like this:


const
SmartWorld

Procedure DeclareSmartWorld;
begin
SmartWorld:= 66;
end;

now I know it's done like this:

const
SmartWorld=66;

Haha this was very funny to look back to, you guys should go look back to posts you have when you first started and see how stupid your mistakes were and see how much you have progressed, you'll probably get a good laugh out of it like me.

Smarter Child

2009-01-26 22:59:58

^ get in the habit of using standards.

Baked0420

2009-01-28 21:25:12

?? what are you talking bout? I ALWAYS use standards, I clearly stated that this was from a long time ago, when I knew nothing about scripting and was having trouble declaring constants. Also, even back then I still had standards, but now they are probably much better. So tell me, what's wrong with my standards though that I can improve?

MtW

2009-02-28 05:26:53

lol… its a start :)

Baked0420

2009-02-28 06:04:58

that was my start from a long time ago, now I'm much better. And why don't you learn how to script instead of gravedigging.