SRL Archive - First Scripts

0wnzz AutoLogin (First Script)


0wn 4 skill

2008-07-04 19:12:30

0wnzz AutoLogin and Graphics Changer!!

~Well Here it is. Please post comments etc.

  • Works with new Runescape login screen
  • Sets All Graphics to low in login screen (if you wish)

Use on Low Detail

1.1 Update/Fix-
Can use either Cords or Bitmaps. Updated some things and added proggress report type thing.
1.2 Update-
Added more. Easier way to choose whether Cords or Bitmaps. (Less room for mistakes) Better Standards!!
1.3 Update-
Added lots of MouseBox fuctions. (less detectable) and Generally made it alot better! If anyone has an issue with anything then please tell me.

Will be updating more if needs any fixes.

Currently being used by: ss32 in his earth Crafter =) Thanks for help all!

miny noob

2008-07-04 19:29:53

its my turn now owned :D

i'm going to pass on something about standards.
http://www.villavu.com/forum/showthread.php?t=3293

i see you copied some of my terrible standards.

Mouse(x,y,3,3,true);
Wait(500+Random(500));
TypeSend(Players[Current].Name);
Wait(500+Random(300));
TypeSend(Players[Current].Pass);
Wait(3000+Random(500));

i did that in my first script… an auto login.
i was told it should be like this


Mouse(x,y,3,3,true);
Wait(500+Random(500));
TypeSend(Players[Current].Name);
Wait(500+Random(300));
TypeSend(Players[Current].Pass);
Wait(3000+Random(500));

correct me if im wrong.

i dont know much about scripting so i cant say much about that.
i know for a first script its looking pretty nice.

oh and your missing some capitals down the bottom.

edit

Mouse(464,215,1,1,true);

i think you just missed this one.
1 just reverts back to 0

Mouse(464,215,3,3,true);

the script didn't find the bitmap. i dont know bitmaps, i have no idea how it works.
i did not get logged in.
the graphics worked perfect.

nice script :spot:

sleziak

2008-07-04 19:31:34

we pwn fagex :D

0wn 4 skill

2008-07-04 19:35:03

From: miny noob
its my turn now owned :D

i'm going to pass on something about standards.
http://www.villavu.com/forum/showthread.php?t=3293

i see you copied some of my terrible standards.

Mouse(x,y,3,3,true);
Wait(500+Random(500));
TypeSend(Players[Current].Name);
Wait(500+Random(300));
TypeSend(Players[Current].Pass);
Wait(3000+Random(500));

i did that in my first script… an auto login.
i was told it should be like this


Mouse(x,y,3,3,true);
Wait(500+Random(500));
TypeSend(Players[Current].Name);
Wait(500+Random(300));
TypeSend(Players[Current].Pass);
Wait(3000+Random(500));

correct me if im wrong.

i dont know much about scripting so i cant say much about that.
i know for a first script its looking pretty nice.

oh and your missing some capitals down the bottom.


Thankyou for the comment. I do believe though that my standards are okay. I can see each mouse movent/function spilt up and i think it looks nice.

Thanks for the feedback tho.

miny noob

2008-07-04 19:45:09

i was still editing my comment!

you may comment on my comment now :spot:

0wn 4 skill

2008-07-04 20:25:23

Sorry friend. I was watching the thread like a hawk to see what people thought lol. Thanks for pointing out the error i made aswell.
You sure the bitmaps aren't working? What happens exactly?

I'll release a cords one aswell if you want?
Thanks again!

miny noob

2008-07-04 20:47:16

well it types the line logging in, in scar. then does nothing.

i see it says if the bitmap is found then begin to log in, but it does nothing. so im assuming that the bitmap is not found.
no, dont realease a coords one. bitmaps are better.
this script works perfectly on your computer?

maybe you should change your signature. :)

0wn 4 skill

2008-07-04 20:54:02

If its not working for you then it isnt finished. I will have a look tommorow. please can u check if you entered all info? user/pass etc.
Thanks in advance!

miny noob

2008-07-04 21:24:48

yeah everything is set up properly.

this is what i get
(¯`·._.·[—————]·._.·´¯)
(¯`·._.·[—————]·._.·´¯)
(¯`·._.·[–0wn 4 skill–]·._.·´¯)
(¯`·._.·[—————]·._.·´¯)
(¯`·._.·[—————]·._.·´¯)
(¯`·._.·[–Thanks for—]·._.·´¯)
(¯`·._.·[–Using this—]·._.·´¯)
(¯`·._.·[—-Script—–]·._.·´¯)
(¯`·._.·[—————]·._.·´¯)
SRL Compiled in 2828 msec
The Graphics setup is complete!!
Logging in…
Successfully executed

0wn 4 skill

2008-07-05 02:48:16

Hmmmmmmmm…. i seem to be havin a few problems myself now…. Lemme edit it abit.

miny noob

2008-07-05 02:55:03

im gunna go learn bitmaps now. post later on what i think is wrong.

0wn 4 skill

2008-07-05 03:12:55

Found a small bug with miss-clicking in Graphic setup.

   HoldMouse(464,215,true);
Wait(300+Random(500));
MMouse(464,301,3,3);
ReleaseMouse(464,301,true);

Should be

   HoldMouse(464,215,true);
Wait(300+Random(500));
MMouse(464,301,1,1);
ReleaseMouse(464,301,true);

Because the extra random pixels throws out the whole thing! :( I'll Keep working on the Login part.

Btw, if u voted in my poll. Please do post a comment because i see someone has voted awful but not said anything.

Thanx

miny noob

2008-07-05 03:29:04

currently testing the fix… will edit once done.

very nice, coords works perfect.

turbobk

2008-07-05 05:46:05

Hey own 4 skill.

Nice first script, I've edited a few things for you..
Like a few Blahblah = True Then..
and Indenting

Also with your GraphicSetup; procedure, it's a bit over the top if you know what I mean? :)


If you need any more help, don't hesitate to ask.

///////////////////////////////////////////////////
///////// AutoLogin Script by 0wn 4 skill /////////
///////// Changes all graphics to low /////////
///////// Multiple Character Login /////////
///////////////////////////////////////////////////

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

Const
SetupGraphics = True;//Do you want it to setup the runescape graphics ready for use with script?

Var
Current: Integer;
Login: Integer;
ClickEnter: Integer;
x,y: Integer;
////////////////////////////////////////////////////////////////////////////////

Procedure DecPlayers;
begin
HowManyPlayers := 4
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:=0;

Players[0].Name :='';//Enter Username here
Players[0].Pass :='';//Enter password here
Players[0].Active := true;//Active or not?

Players[1].Name :='';
Players[1].Pass :='';
Players[1].Active := true;

Players[2].Name :='';
Players[2].Pass :='';
Players[2].Active := true;

Players[3].Name :='';
Players[3].Pass :='';
Players[3].Active := true;

end;

////////////////////////////////////////////////////////////////////////////////

Procedure LoginCharacter;
Begin
If Players[CurrentPlayer].Active Then // Changed from: If (Players[Current].Active = true)then
Begin
WriteLn('Logging in...')
Wait(2000+Random(1000));
If FindBitmap(Login, x, y) Then // Changed from: If (FindBitmap(Login,x,y))then
Begin
Mouse(x, y, 3, 3, True);
Wait(500 + Random(500));
TypeSend(Players[Current].Name);
Wait(500 + Random(300));
TypeSend(Players[Current].Pass);
Wait(3000+Random(500));
If FindBitmap(ClickEnter, x, y) Then
Begin
Mouse(x, y, 3, 4, True); // You may want to use a MouseBox here.
WriteLn('Successfully Logged in')
End Else WriteLn('Cannot find Bitmap: ClickEnter');
End Else WriteLn('Cannot find Bitmap: Login');
End Else WriteLn(Players[CurrentPlayer].Name + 'is not Active.');
End;

////////////////////////////////////////////////////////////////////////////////

Procedure GraphicSetup;
Begin
If SetupGraphics Then // Changed from: if (SetupGraphics=True)then
Begin
Mouse(376,329,3,3,true);
Wait(300+Random(500));
Mouse(406,222,3,3,true);
Wait(300+Random(500));
Mouse(419,266,3,3,true);
Wait(300+Random(500));
Mouse(343,282,3,3,true);
Wait(300+Random(500));
Mouse(419,350,3,3,true);
Wait(300+Random(500));
Mouse(334,365,3,3,true);
Wait(300+Random(500));
Mouse(419,392,3,3,true);
Wait(300+Random(500));
Mouse(333,407,3,3,true);
Wait(300+random(300));
Mouse(464,215,1,1,true);
HoldMouse(464,215,true);
Wait(300+Random(500));
MMouse(464,301,3,3);
ReleaseMouse(464,301,true);
Wait(300+Random(500));
Mouse(417,187,3,3,true);
Wait(300+Random(500));
Mouse(335,199,3,3,true);
Wait(300+Random(500));
Mouse(419,227,3,3,true);
Wait(300+Random(500));
Mouse(335,242,3,3,true);
Wait(300+Random(500));
Mouse(418,270,3,3,true);
Wait(300+Random(500));
Mouse(334,284,3,3,true);
Wait(300+Random(500));
Mouse(420,311,3,3,true);
Wait(300+Random(500));
Mouse(335,328,3,3,true);
TypeByte(27);
WriteLn('The Graphics setup is complete!!');
End Else WriteLn('SetupGraphics = False;');
End;

Procedure LoadBitmap;
Begin
Login := BitmapFromString(48, 14, 'beNpjYBiEIM0YBdHUfJK00Nr' +
'L1FKPx4NoYYvLEGQpNJVYNZJkFDFS+P2L5n7i3YNHJVYpktyD6bzh' +
'5B7K44sk9xAZs0TmZfLcgyaCKy+QkYtJcg9mnsUjS0Z+x5qbCAYIV' +
'Yo4mhaqRNYCg8Q9xBfOJAAATglq/A==');

ClickEnter := BitmapFromString(64, 21, 'beNrtlkEWgCAIRL1GB2' +
'jl/e/X3hCGUUF7+VopjV9BoJQPjHpf4ocb/PxzT8EZnMjfcw1nBga' +
'G+Fcif2/TAP5mqZkxFVxe8IoH8Lv2jeTnIhDkJx4LGHvvyUX8ujjN' +
'r1vq/MTFTo8fb4oYyaK57xcv5Xvmn835EQVvFV7X/9BbIEfI4ifyp' +
'95FEOIB/OYRTPGR/h+vFN5VXHwHftELRMt62HgAbwbiaQ==');
End;

begin
ClearDebug;
writeln('(¯`·._.·[---------------]·._.·´¯)');
writeln('(¯`·._.·[---------------]·._.·´¯)');
writeln('(¯`·._.·[--0wn 4 skill--]·._.·´¯)');
writeln('(¯`·._.·[---------------]·._.·´¯)');
writeln('(¯`·._.·[---------------]·._.·´¯)');
writeln('(¯`·._.·[--Thanks for---]·._.·´¯)');
writeln('(¯`·._.·[--Using this---]·._.·´¯)');
writeln('(¯`·._.·[----Script-----]·._.·´¯)');
writeln('(¯`·._.·[---------------]·._.·´¯)');
Wait(2000+Random(1000));
SetupSRL;
ActivateClient;
GraphicSetup;
DecPlayers;
LoadBitmap;
LoginCharacter;
FreeBitmap(Login);
FreeBitmap(ClickEnter);
end.

0wn 4 skill

2008-07-05 05:51:34

Ty. Im gonna fix it so the bitmaps work for you.

turbobk

2008-07-05 05:59:41

Ok, no problem..

If you want help on another way to change the graphics settings, then I'll be happy to help you, because the way you've got it now.. You would probably be banned pretty fast.

Look up a tutorial on MouseBox, it's a lot less detectable than Co-ords clicking..

Let me know,
Thanks,
TurboBk.

0wn 4 skill

2008-07-05 06:27:38

Okay, I was thinking going bitmaps with that one but then i realised it was madness lol. Im updating a new version soon. Then i will sort the Graphic Procedure

TwentySox

2008-07-05 07:04:29

use FindText

0wn 4 skill

2008-07-05 08:12:15

Updated! Next Update: MouseBox clicking for Graphic Setup.

turbobk

2008-07-05 10:45:01

Good job with version 1.2 Own 4 skill.

You should learn to use the correct 'standards' for SCAR scripting.

Search up a tutorial on 'Indenting'.
It will make your script look so much more neat, and people won't pull you up on your standards. :)

Also their are a few spelling mistakes, will look better if you iron them out ;)
Goodluck.

Thanks,
TurboBk.

0wn 4 skill

2008-07-05 13:48:58

Thanx again all. Stay tuned for 1.3!

03699

2008-07-05 19:36:06

Worked well apart from after clicking loggin I had Loading Please wait… which took awhile so the script thaught it had failed.

03699

0wn 4 skill

2008-07-05 21:27:41

I tried to fix that but just use a world with little activity on. You using cords or bitmap to login?
Thanx for the feedback though!

miny noob

2008-07-06 01:32:16

just a thought. you could change the graphics in game. that what i was oging to do on my script. there no need to drag the bar down in game.

0wn 4 skill

2008-07-06 05:26:18

Ok. Well i might consider it. Have u tried the bitmap method miny? Should work for you now :D

miny noob

2008-07-06 22:38:11

i am going to try it right now!

brilliant! bitmaps worked perfect.
the bad thing is graphics just completely missed.

0wn 4 skill

2008-07-09 02:31:23

Hmmmmm…. i will have a look. Thanx miny

Mohism

2008-07-09 03:26:45

Wicked, worked perfect for me. GJ