SRL Archive - First Scripts

My AutoSinger!


ZomgCollin

2008-07-06 00:24:47

This is my first script. took about 30 minutes.
The tut came with Multi-Player and SMART, but i removed those beause i dont think either are working with the new update.
Anyway, here it is. it sings "Dont Stop Me Now", by Queen :D

EDIT: added new one with Multi-Player. make sure you updated your login.scar :D

turbobk

2008-07-06 00:41:02

Procedure FindFightEx;
Begin
If(FindFight) then
Begin
Status('Fight found!');
Writeln('Our player is being attacked!')
Writeln('Run the FUCK AWAY!!!!')
Begin
Status('Running the FUCK AWAY!!!!');
Writeln('Running the FUCK AWAY!!!!');
RunAway(RunDirection,False,1,8000+Random(3000))
Writeln('Whew, We got the FUCK AWAY!');
end;
end;
end;

Haha that made me laugh!!!
Also where it says 'Whew, We got the FUCK AWAY!' doesnt actually mean it got away :)

If you wanted that you should put..

Procedure FindFightEx;
Begin
If FindFight Then
Begin
Status('Fight found!');
Status('Running the FUCK AWAY!!!!');
RunAway(RunDirection, True, 2, 8000 + Random(3000)); //Should worry about getting away first :D
WriteLn('Our player is being attacked!')
WriteLn('Running the FUCK AWAY!!!!')
If FindFight Then // If still in fight after running away the 1st time.. THEN SCREAM!!
Begin
RunAway(RunDirection, True, 2, 1);
WriteLn('Still being attacked!! Logging out!');
Repeat
Logout;
Until(Not(LoggedIn));
End Else
Begin
WriteLn('Whew, We got the FUCK AWAY!');
RunAway(RunDirection, True, 3, 500 + Random(500));
End;
End;
End;


Other than that, it looks pretty good for your first attempt… Keep up the good work :)

ZomgCollin

2008-07-06 00:44:43

Lol, can it relog correctly with the new login form on runescape?
thats why i removed the Multi-Player… thought it wouldnt work.

turbobk

2008-07-06 00:51:12

Use NaumanAkhlaQ's Login procedure
http://www.villavu.com/forum/showthread.php?t=32076


and HobboBobbo's Logout procedure
http://www.villavu.com/forum/showthread.php?t=32213

just make sure to read through the posts on HobboBobbo's he made one mistake and I think n3ss3s corrected it. So just have a look ;)

ZomgCollin

2008-07-06 00:53:56

Okay, thanks so much. gonna do this Now. Ill add multiplayer too.
then, eventually add powerchopper to it maybe.

EDIT: Won't let me view those sections. I'm not a member yet :(

turbobk

2008-07-06 01:15:48

NaumanAkhlaQ's Login function
http://www.villavu.com/forum/showthread.php?t=32076

Function LoginPlayerX : boolean;
Label Check;
Var
TriesXX : Integer;
Options : TStringArray;
Actions : TVariantArray;
I : Integer;
OneActive : Boolean;
LastPlayer : Integer;

begin
Result := False;
OneActive := False;
if LoggedIn = False then
begin;
if (not (Players[CurrentPlayer].Active)) then
begin;
WriteLn('Current player is not Active...');
Repeat
For I := 0 to HowManyPlayers - 1 do
if players[i].Active = true then
OneActive := True;
if OneActive = True then
Break;
Wait(60000);
until false
end
else
Begin
MouseBox(337, 162, 425, 177, 1);
Repeat
Wait(100+Random(200));
Until(GetColor(364, 260) = 6063521);
MMouse(364, 260, 14, 4);
TypeSend(Players[CurrentPlayer].Name);
MMouse(374, 327, 15, 5);
TypeSend(Players[CurrentPlayer].Pass);
Begin
MouseBox(342, 356, 408, 374, 1);
Repeat
Wait(300+Random(400));
TriesXX := TriesXX + 1;
Until(GetColor(11, 25) = 24577) Or (TriesXX > 60);
If TriesXX > 60 Then Goto Check
else
Wait(2000+Random(3000));
Mouse(377, 352, 100, 10, True);
Wait(2000+Random(3000));
WriteLn('Sucessfully LoggedIn!');
end;
end;

Check : Options := ['nter your','already','nvalid','excee','full','offl','rror','ontact','reject','reload',
'updat','disabled','member','incorrect'];

For I := 0 to High(Options) do
If FindTextTpa(12509695, 10, 279, 182, 482, 222, Options[i], StatChars, Nothing) Then
begin;
OneActive := True;
Break;
end;
If OneActive Then
Begin
SetLength(Actions,2);
Case Options[i] of
'reload' : begin; //Runescape updated
WriteLn('ERROR. RuneScape has been updated. Script Terminated.');
Terminatescript;
end;
'disabled' : begin; //Your account has been disabled..
WriteLn('Your account has been disabled');
Players[CurrentPlayer].loc := 'DISABLED';
NextPlayer(False);
Exit;
end;
'member' : begin; // You need a Members account...
WriteLn('You need a Members account...');
Players[CurrentPlayer].loc := 'Non-Member';
NextPlayer(False);
exit;
end;
'already' : begin //Account already logged in
Actions := ['Your account is already logged in',0];
LastPlayer := CurrentPlayer;
repeat
CurrentPlayer := (CurrentPlayer + 1) mod HowManyPlayers;
Wait(200);
until (Players[CurrentPlayer].Active) and (CurrentPlayer <> LastPlayer);
end;
'nvalid' : begin;// Invalid Username. 3 attempts. If fails, username/pass incorrect
Actions := ['Invalid Username \ Password',0];
Inc(SRL_Attempts);
if SRL_Attempts > 3 then
begin;
Players[CurrentPlayer].Loc := 'Login ERROR';
SRL_Attempts := 0;
Nextplayer(False);
Exit;
end;
end;
'excee' : Actions := ['Login attempts exceeded. Please wait 1 minute and try again.',60000];
'offl' : Actions := ['Unable to connect Login Server offline.',(20000) + Random(6000)]; // Unable to connect. Login Server offline.
'nter your': Actions := ['Enter your username and password',0];//Login failed
'full' : Actions := ['World is full.',5000]; //World is full =]
'rror' : Actions := ['Error Connecting.',10000]; //Error, connection timed out?
'ontact' : Actions := ['Error loading your profile.',2000]; // Error loading your profile. Will attempt to re-login 5 more times.)
'reject' : Actions := ['Login server rejected session.',1000]; // Login server rejected session.
'updat' : Actions := ['The Server is being updated.',60000]; // The Server is being updated. Please wait 1 minute.
'incorrect': Actions := ['To many incorrect logins.',60000 * 5]; //Wrong logins baby.
end;
end;
If LoggedIn Then
begin
PlayerStartTime := (GetSystemTime div 1000); // PlayerStartTime
if Length(Players[CurrentPlayer].NickTPA) < 2 then
begin;
Writeln('Creating the NickTPA.');
if Players[CurrentPlayer].Nick <> '' then
Players[CurrentPlayer].NickTPA := CreateTPAFromText(Players[CurrentPlayer].Nick, UpChars)
else
begin;
Writeln('Nickname isnt set, taking the username instead..');
Players[CurrentPlayer].NickTPA := CreateTPAFromText(Players[CurrentPlayer].Name, UpChars);
end;
end;
WriteFileString(TheFile, Chr(13) + 'Current player: '+ UpperCase(Players[CurrentPlayer].Name) + Chr(13)); //* Save NAME to file
end;
end;
Begin
Wait(1);
WriteLn('Logged Player In');
end;
Exit;
end;



HobboBobbo's Logout function
http://www.villavu.com/forum/showthread.php?t=32213

function Logout: Boolean;
var
c, i: Integer;
begin
Result := (not (LoggedIn));
if Result = True then
Exit;
Wait(200 + Random(100));
while (LoggedIn) and (c < 10) do
begin
Inc(c);
MouseBox(744, 4, 759, 18, 1);
if(ClickText('here', UpChars, MIX1, MIY1, MIX2, MIY2, True))then
for i := 0 to 10 do
begin
Wait(1000);
if not(LoggedIn)then
begin
Result := True;
Exit;
end;
end;
end;
end;

Ghostman

2008-07-06 01:22:47

looks funny I'm going to try this

ZomgCollin

2008-07-06 01:23:22

what exactly do i do with these now? where do i add them at?
oh, and please dont do it for me. lol, i wanna do it.

turbobk

2008-07-06 01:33:02

Goto your SCAR folder..

In C:\Program Files\SCAR 3.xx\Includes\SRL\SRL\core\Login.scar

Open Login.scar

FIND THIS:
{*******************************************************************************
procedure Logout;
By: Starblaster100 / Raymond
Description: Logs you out.
*******************************************************************************}

function Logout: Boolean;
var
c, i: Integer;
begin
Result := (not (LoggedIn));
if Result = True then
Exit;
if GameTab(14) = False then
Exit;
Wait(200 + Random(100));
while (LoggedIn) or (c < 10) do
begin
Inc(c);
if(ClickText('here', UpChars, MIX1, MIY1, MIX2, MIY2, True))then
for i := 0 to 10 do
begin
Wait(1000);
if not(LoggedIn)then
begin
Result := True;
Exit;
end;
end;
end;
end;
And replace with HobboBobbo's Logout function.

THEN FIND THIS:
{*******************************************************************************
procedure LoginPlayer;
By: WT-Fakawi / Raymond
Description: Logs in the Player[CurrentPlayer]. Detects most Client Login Errors
*******************************************************************************}

Function LoginPlayer : boolean;
var
ClickHereToPlay, i,
CHx, CHy, c, LastPlayer,Mark : Integer;
Options : TStringArray;
OneActive : Boolean;
Actions : TVariantArray;
begin
Result := False;
ClickHereToPlay := BitmapFromString(33, 1, 'z78DA758E510E80300843' +
'AF54C0E2F6E94CB8FF9134123392693FFA41FA4A23A6F0888443D' +
'26DC000A7DCE7F458F23EE444E721444B6A0F53D58FE44F4365B7' +
'067D37AC3D95AADF2F50962C79');
OneActive := False;
if LoggedIn = False then
begin;
if (not (Players[CurrentPlayer].Active)) then
begin;
WriteLn('Current player is not Active...');
Repeat
For I := 0 to HowManyPlayers - 1 do
if players[I].Active = true then
OneActive := True;
if OneActive = True then
Break;
Wait(60000);
until false
end;
ActivateClient;
Wait(900 + random(60));
FindTextTpa(clwhite,0,194, 174,564, 367,'Cancel',UpChars,ClickLeft);
Wait(100+random(50));
FindTextTpa(clwhite,0,194, 174,564, 367,'xis',UpChars,ClickLeft);
Wait(100+random(50));
if FindTextTpa(clwhite,0,194, 174,564, 367,'Username',UpChars, Clickleft) then
begin
Wait(150 + Random(75));
WriteLn(Players[CurrentPlayer].Name);
TypeSend(Players[CurrentPlayer].Name);
Wait(100 + Random(100));
if FindTextTpa(clwhite,0,194, 174,564, 367,'Password',UpChars,ClickLeft) then
begin;
TypeSend(Players[CurrentPlayer].Pass);
Wait(100 + Random(100));
end;
end;
FindTextTpa(clwhite,0,194, 174,564, 367,'Login',UpChars,ClickLeft);
Wait(250 + random(100));
Mark := GetSystemTime;
repeat
Wait(Random(250) + 100);
if (GetSystemTime - Mark) > 35000 then Break;
until not FindTextTpa(65535,0,194, 174,564, 367,'...',UpChars,Nothing);
Mark := GetSystemTime;
Repeat
if FindTextTpa(65535,0,194, 174,564, 367,'...',UpChars,Nothing) or //Still waiting to log in
FindTextTpa(65535,0,194, 174,564, 367,'trans',UpChars,Nothing) then //Your account is beeing transfered
begin;
Wait(1000 + random(500));
end else
begin;
if (GetSystemTime - Mark) > 180000 then
begin
if (GetSystemTime - Mark) > 240000 then
begin;
NextPlayer(false);
Exit;
end;
WriteLn('three minutes have passed');
WriteFileString(TheFile, Chr(13) + 'THREE MINUTES HAVE PASSED!!!' +
Chr(13));
ActivateClient;
FindTextTpa(clwhite,0,194, 174,564, 367,'Cancel',UpChars,ClickLeft);
Wait(100+random(50));
FindTextTpa(clwhite,0,194, 174,564, 367,'xis',UpChars,ClickLeft);
end;
Options := ['nter your','already','nvalid','excee','full','offl','rror','ontact','reject','reload',
'updat','disabled','member','elcom','incorrect'];
OneActive := False;
For I := 0 to High(Options) do
if FindTextTpa(65535,0,194, 174,564, 367,Options[I],UpChars,Nothing) then
begin;
OneActive := True;
Break;
end;
if OneActive then
begin;
FreeBitmap(ClickHereToPlay);
SetLength(Actions,2);
Case Options[I] of
'reload' : begin; //Runescape updated
WriteLn('ERROR. RuneScape has been updated. Script Terminated.');
Terminatescript;
end;
'disabled' : begin; //Your account has been disabled..
WriteLn('Your account has been disabled');
Players[CurrentPlayer].loc := 'DISABLED';
NextPlayer(False);
Exit;
end;
'member' : begin; // You need a Members account...
WriteLn('You need a Members account...');
Players[CurrentPlayer].loc := 'Non-Member';
NextPlayer(False);
exit;
end;
'already' : begin //Account already logged in
Actions := ['Your account is already logged in',0];
LastPlayer := CurrentPlayer;
repeat
CurrentPlayer := (CurrentPlayer + 1) mod HowManyPlayers;
Wait(200);
until (Players[CurrentPlayer].Active) and (CurrentPlayer <> LastPlayer);
end;
'nvalid' : begin;// Invalid Username. 3 attempts. If fails, username/pass incorrect
Actions := ['Invalid Username \ Password',0];
Inc(SRL_Attempts);
if SRL_Attempts > 3 then
begin;
Players[CurrentPlayer].Loc := 'Login ERROR';
SRL_Attempts := 0;
Nextplayer(False);
Exit;
end;
end;
'excee' : Actions := ['Login attempts exceeded. Please wait 1 minute and try again.',60000];
'offl' : Actions := ['Unable to connect Login Server offline.',(20000) + Random(6000)]; // Unable to connect. Login Server offline.
'nter your': Actions := ['Enter your username and password',0];//Login failed
'full' : Actions := ['World is full.',5000]; //World is full =]
'rror' : Actions := ['Error Connecting.',10000]; //Error, connection timed out?
'ontact' : Actions := ['Error loading your profile.',2000]; // Error loading your profile. Will attempt to re-login 5 more times.)
'reject' : Actions := ['Login server rejected session.',1000]; // Login server rejected session.
'updat' : Actions := ['The Server is being updated.',60000]; // The Server is being updated. Please wait 1 minute.
'elcom' : Actions := ['Welcome.',0];
'incorrect': Actions := ['To many incorrect logins.',60000 * 5]; //Wrong logins baby.
end;
Writeln(Actions[0]);
Wait(Actions[1] + Random(100));
LoginPlayer;
Exit;
end;
end;
Wait(1000);
until (FindBitmapToleranceIn(ClickHereToPlay, CHx, CHy, 250, 270, 530, 390,
5)) or FindColor(CHx, CHy, 723587, 522, 5, 560, 39);
Wait(1000 + Random(500));
if (FindBitmapToleranceIn(ClickHereToPlay, CHx, CHy, 250, 270, 530, 390, 5)) then
Mouse(CHx, CHy, 50, 20, True) // Clicks randomly on the button
else
Writeln('Found Compass');
repeat
Wait(1000);
c := c + 1;
until ((LoggedIn = True) or (c >= 600));
end;
FreeBitmap(ClickHereToPlay);
if LoggedIn then
begin
PlayerStartTime := (GetSystemTime div 1000); // PlayerStartTime
if Length(Players[CurrentPlayer].NickTPA) < 2 then
begin;
Writeln('Creating the NickTPA.');
if Players[CurrentPlayer].Nick <> '' then
Players[CurrentPlayer].NickTPA := CreateTPAFromText(Players[CurrentPlayer].Nick, UpChars)
else
begin;
Writeln('Nickname isnt set, taking the username instead..');
Players[CurrentPlayer].NickTPA := CreateTPAFromText(Players[CurrentPlayer].Name, UpChars);
end;
end;
WriteFileString(TheFile, Chr(13) + 'Current player: '+ UpperCase(Players[CurrentPlayer].Name) + Chr(13)); //* Save NAME to file
end;
end;

And replace with NaumanAkhlaQ's Login function.
PS: Don't forget to take the X out of the function name!!
Function LoginPlayerX : boolean;
NO
Function LoginPlayer: boolean;
YES ./

Rsnerdx

2008-07-06 01:44:10

haha zomgcollin its me from CEF hackersrulesz im stalking you jokes.. good script once again and it works but i aint sure 100% i tried it and it said something about tabs i will try it again and edit tis post

ZomgCollin

2008-07-06 01:46:13

thanks, fixed my login.scar. im gonna put my multi-player script in now too :P

BTW, did anyone update SMART too? if they did, i can add SMART.

From: Rsnerdx
haha zomgcollin its me from CEF hackersrulesz im stalking you jokes.. good script once again and it works but i aint sure 100% i tried it and it said something about tabs i will try it again and edit tis post


Did you target the runescape client? :/

Rsnerdx

2008-07-06 01:48:07

From: ZomgCollin
thanks, fixed my login.scar. im gonna put my multi-player script in now too :P

BTW, did anyone update SMART too? if they did, i can add SMART.



Did you target the runescape client? :/


it worked but it didnt auto login i let it try than it just typed green: oh, i wanna make a super-sonic man out of you.

turbobk

2008-07-06 01:49:31

From: ZomgCollin
BTW, did anyone update SMART too? if they did, i can add SMART.


No, I don't think anyone has updated SMART.

You'll have to wait until Rev #18 comes our way :)


From: Rsnerdx
it worked but it didnt auto login i let it try than it just typed green: oh, i wanna make a super-sonic man out of you.


If you want SCAR to Login and Logout, you will have to modify your Login.scar the same way I explained to ZomgCollin up further in the Thread.
Or you can wait until the Dev's release Revision #18 ;)

ZomgCollin

2008-07-06 01:50:25

From: Rsnerdx
it worked but it didnt auto login i let it try than it just typed green: oh, i wanna make a super-sonic man out of you.


I just now added Multi-player. I dunno if it will auto-login at first tho. might need to login before starting, but after talking 25 times it should relog to next player.

Rsnerdx

2008-07-06 01:52:25

From: ZomgCollin
I just now added Multi-player. I dunno if it will auto-login at first tho. might need to login before starting, but after talking 25 times it should relog to next player.


ooh, its like an auto talker. good job though 1st script that ever worked for me lmaoo. go check your cef topic though.

ZomgCollin

2008-07-06 01:57:52

yep, it logs in if your not logged in. script working perfect. next i want to update my SMART then add SMART to it.

turbobk

2008-07-06 02:04:49

If you liked the help I've given you, you could always help me back out by +Repping me ;)

ZomgCollin

2008-07-06 02:09:50

There you go. didnt know i could +rep more than 1 person in a day.
Anybody know how to update SMART? gonna go check tut section.

turbobk

2008-07-06 02:18:09

From: ZomgCollin
There you go. didnt know i could +rep more than 1 person in a day.
Anybody know how to update SMART? gonna go check tut section.


Thanks for the Rep, really appreciate it :)
Any time you need help, just PM me..

Also I don't think you can just 'update' smart..
As it's not SCAR code that actually makes SMART run.. (I think :confused:).

If you want a straight answer then PM the creator of SMART, BenLand100.

ZomgCollin

2008-07-06 02:20:48

From: turbobk
Thanks for the Rep, really appreciate it :)
Any time you need help, just PM me..

Also I don't think you can just 'update' smart..
As it's not SCAR code that actually makes SMART run.. (I think :confused:).

If you want a straight answer then PM the creator of SMART, BenLand100.


had to update worlds.ini.
i found a tut on how to :D

turbobk

2008-07-06 02:27:12

From: ZomgCollin
had to update worlds.ini.
i found a tut on how to :D


Oh with FAWG?

I thought you meant like, updating the coding of SMART. lol XD

ZomgCollin

2008-07-06 02:38:16

lol. i cant get SMART to work. i get some access violation or something…i posted my error in smart questions and answers section. mind checking it out? :P

PvH

2008-07-06 05:32:42

Haha, nice script^^
Good begin,
I can see that you readed my tut:p
Good job man, and keep on scripting:D

PvH

ZomgCollin

2008-07-06 06:52:36

your tut helped alot, im gonna try to add some different stuff to it too. like putting a power chopper in there.

tompa55

2008-07-06 07:46:33

Haha lol, nice script :P

Laur€ns

2008-07-06 10:54:18

Or set a TimesToTalk in it :)


program ZomgCollinFirstScript;
{.include SRL\SRL.scar}

// ZomgCollin's First Script! AutoSinger/Talker!
// Song is "Don't Stop Me Now" by Queen!
// [url]http://www.srl-forums.com/[/url]

var
Talked, Antibans, TotalTalks :integer;

const
Message1 = 'green: Im a sex machine ready to reload!';
Message2 = 'cyan: Like an atom BOMB!';
Message3 = 'red: Im bout to oh, oh, oh, oh, oh, EXPLODE!';
Message4 = 'green: Im burnin thru the sky! yeah!!!';
Message5 = 'cyan: 200 degrees, thats why they call me mr. fahrenheight!';
Message6 = 'red: Im travellin at the speed of light!!';
Message7 = 'green: Oh, I want to make a super-sonic man out of you!';
RunDirection = 'N';//N = North, E = East, And So on.
TimesToTalk = 25; //Number of times to talk

procedure DeclarePlayers;
Begin
HowManyPlayers := 2; // how many players
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0; // player to start

Players[0].Name := 'ZomgCollin'; //your runescape account
Players[0].Pass := 'YourPass'; // your runescape password of your account
Players[0].Nick := 'omgC'; //3 or 4 letters of the name, used for finding randoms
Players[0].Active := True; // want this account to bot or not?

Players[1].Name := 'ZomgCollin'; //your runescape account
Players[1].Pass := 'YourPass'; // your runescape password of your account
Players[1].Nick := 'omgC'; //3 or 4 letters of the name, used for finding randoms
Players[1].Active := True; // want this account to bot or not?
end;

Procedure FindFightEx;
Begin
If(FindFight) then
Begin
Status('Fight found!');
Writeln('Our player is being attacked!')
Writeln('Run the FUCK AWAY!!!!')
Begin
Status('Running the FUCK AWAY!!!!');
Writeln('Running the FUCK AWAY!!!!');
RunAway(RunDirection,False,1,8000+Random(3000))
Writeln('Whew, We got the FUCK AWAY!');
end;
end;
end;

Procedure AntiRandoms;
var
i : Integer;
Begin
Status('Doing AntiRandoms');
for i := 0 to 3 do
FindNormalRandoms;
FindFightEx;
FindNonInventoryRandoms;
wait(1);
end;

procedure Antiban;
begin
if not LoggedIn then Exit;
case Random(68) of
0:
begin
HoverSkill('Attack', False);
Antibans:=Antibans+1;
end;
1:
begin
HoverSkill('Strength', False);
Antibans:=Antibans+1;
end;
2:
begin
GameTab(1 + Random(12));
wait(800 + random(500));
GameTab(4);
Antibans:=Antibans+1;
end;
3:
begin
BoredHuman;
Antibans:=Antibans+1;
end;
4:
begin
AlmostLogout;
Antibans:=Antibans+1;
end;
5:
begin
DoEmote(400 + Random(90));
Antibans:=Antibans+1;
end;
end;
end;

procedure AutoTalk;
begin
Typesend(Message1);
Typesend(Message2);
Typesend(Message3);
Typesend(Message4);
Typesend(Message5);
Typesend(Message6);
Typesend(Message7);
Talked:= Talked+1;
TotalTalks:=TotalTalks+1;
end;

procedure Proggy;
begin
cleardebug;
writeln('#+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+#');
writeln('Talked ' +IntToStr(TotalTalks)+' Times!');
writeln('Performed '+IntToStr(Antibans)+' Antibans');
writeln('Ran for ' +TimeRunning);
writeln('#+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+#');
end;

procedure mainloop;
begin
repeat
if Talked >= TimesToTalk then
begin
writeln('We talked'+IntToStr(TotalTalks)+'times!');
NextPlayer(True);
Talked:=Talked-Talked;
mainloop;
end;
AutoTalk;
AntiRandoms;
Antiban;
AntiRandoms;
Proggy;
until(false);
end;

begin
DeclarePlayers;
SetupSRL;
LoginPlayer;
SetAngle(true);
MakeCompass('N');
mainloop;
end.

Hey, it compiles! Ship it!

ZomgCollin

2008-07-06 12:34:19

I tried adding a power chopper to it >.<
but… i get an error with the drop… "DropToPosition"
Try it please and try to fix?

program ZomgCollinFirstScript;
{.include SRL\SRL.scar}

// ZomgCollin's First Script! AutoSinger/Talker!
// Song is "Don't Stop Me Now" by Queen!
// http://www.srl-forums.com/

var
Talked, Antibans, TotalTalks :integer;

const
Message1 = 'green: Im a sex machine ready to reload!';
Message2 = 'cyan: Like an atom BOMB!';
Message3 = 'red: Im bout to oh, oh, oh, oh, oh, EXPLODE!';
Message4 = 'green: Im burnin thru the sky! yeah!!!';
Message5 = 'cyan: 200 degrees, thats why they call me mr. fahrenheight!';
Message6 = 'red: Im travellin at the speed of light!!';
Message7 = 'green: Oh, I want to make a super-sonic man out of you!';
RunDirection = 'N';//N = North, E = East, And So on.
LoadsPerPlayer = 30; //Amounts of loads per player before switching.
TreeColor = 0; //Fill in the treecolor here.
WaitPerTree = 5000; //the time to wait while we are chopping the tree in Miliseconds.

procedure DeclarePlayers;
Begin
HowManyPlayers := 2; // how many players
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0; // player to start

Players[0].Name := 'user'; //your runescape account
Players[0].Pass := 'pass'; // your runescape password of your account
Players[0].Nick := 'nick'; //3 or 4 letters of the name, used for finding randoms
Players[0].Active := True; // want this account to bot or not?

Players[1].Name := 'user'; //your runescape account
Players[1].Pass := 'pass'; // your runescape password of your account
Players[1].Nick := 'nick'; //3 or 4 letters of the name, used for finding randoms
Players[1].Active := True; // want this account to bot or not?
end;

Procedure FindFightEx;
Begin
If(FindFight) then
Begin
Status('Fight found!');
Writeln('Our player is being attacked!')
Writeln('Run the FUCK AWAY!!!!')
Begin
Status('Running the FUCK AWAY!!!!');
Writeln('Running the FUCK AWAY!!!!');
RunAway(RunDirection,False,1,8000+Random(3000))
Writeln('Whew, We got the FUCK AWAY!');
end;
end;
end;

Procedure AntiRandoms;
var
i : Integer;
Begin
Status('Doing AntiRandoms');
for i := 0 to 3 do
FindNormalRandoms;
FindFightEx;
FindNonInventoryRandoms;
wait(1);
end;

procedure Antiban;
begin
if not LoggedIn then Exit;
case Random(68) of
0:
begin
HoverSkill('Attack', False);
Antibans:=Antibans+1;
end;
1:
begin
HoverSkill('Strength', False);
Antibans:=Antibans+1;
end;
2:
begin
GameTab(1 + Random(12));
wait(800 + random(500));
GameTab(4);
Antibans:=Antibans+1;
end;
3:
begin
BoredHuman;
Antibans:=Antibans+1;
end;
4:
begin
AlmostLogout;
Antibans:=Antibans+1;
end;
5:
begin
DoEmote(400 + Random(90));
Antibans:=Antibans+1;
end;
end;
end;

procedure AutoTalk;
begin
if not LoggedIn then Exit;
case Random(7) of
0: Typesend(Message1);
1: Typesend(Message2);
2: Typesend(Message3);
3: Typesend(Message4);
4: Typesend(Message5);
5: Typesend(Message6);
6: Typesend(Message7);
end;
Talked:= Talked+1;
TotalTalks:=TotalTalks+1;
end;

procedure Proggy;
begin
cleardebug;
writeln('#+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+#');
writeln('Talked ' +IntToStr(TotalTalks)+' Times!');
writeln('Performed '+IntToStr(Antibans)+' Antibans');
writeln('Ran for ' +TimeRunning);
writeln('#+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+#');
end;

procedure ChopTree;
var
x, y, MyMark : integer;
begin
if not Loggedin then Exit;
MarkTime(MyMark);
repeat
if FindObj(x, y, 'hop', TreeColor, 30) then
begin
Mouse(x, y, 0, 0, False);
if ChooseOption('hop') then
begin
//increase 1 to the total tree chop - if we had one
Exit; //We clicked chop, now we can exit this procedure.
end;
end;
if TimeFromMark(MyMark) > (2 * 60 * 100) then
begin
Logout;
Exit;
end;
until false
end;


procedure mainloop;
begin
repeat
if Talked >= 25000 then
begin
writeln('We talked 25000 times!');
NextPlayer(True);
Talked:=Talked-Talked;
mainloop;
end;
AutoTalk;
AntiRandoms;
Antiban;
AntiRandoms;
Proggy;
until(false);
end;

begin
SetupSRL;
DeclarePlayers;
LoginPlayer;
SetAngle(true);
MakeCompass('N');
mainloop;
if LoggedIn then Logout;
LoginPlayer;
repeat
ChopTree;
if InvFull then
begin
DropToPosition(2, 28);
Inc(Players[CurrentPlayer].Banked);
if Players[CurrentPlayer].Banked mod LoadsPerPlayer = 0 then
begin
NextPlayer(True);
end;
end;
if not Loggedin then NextPlayer(False);
until false
end.

I set the amount of talks to 25000 so it doesnt relog when your chopping :P

ZomgCollin

2008-07-07 03:36:58

lol, not very important. :P
but, it is to ME i guess.

SubiN

2008-07-07 03:54:46

nice script its funny
lol if i say the first line u used in ur script il get banned xD. im a sexy machine

HayHay89

2008-07-07 04:11:59

umm
looks good but it wont sing in toon


procedure AutoTalk;
begin
if not LoggedIn then Exit;
case Random(7) of
0: Typesend(Message1);
1: Typesend(Message2);
2: Typesend(Message3);
3: Typesend(Message4);
4: Typesend(Message5);
5: Typesend(Message6);
6: Typesend(Message7);
end;
Talked:= Talked+1;
TotalTalks:=TotalTalks+1;
end;

youve got random
so it will sing any part of the song

BobboHobbo

2008-07-07 04:34:11

From: turbobk
Thanks for the Rep, really appreciate it :)
Any time you need help, just PM me..

Also I don't think you can just 'update' smart..
As it's not SCAR code that actually makes SMART run.. (I think :confused:).

If you want a straight answer then PM the creator of SMART, BenLand100.


My names BobboHobbo not HobboBobbo :p

ZomgCollin

2008-07-07 05:38:18

what do i put instead of random then…?

PvH

2008-07-07 05:40:52

You can just do:

Typesend(Message1);
Typesend(Message2);
Typesend(Message3);
Typesend(Message4);
Typesend(Message5);
Typesend(Message6);
Typesend(Message7);

Do some waits/antiban between them;)

turbobk

2008-07-13 23:44:06

From: BobboHobbo
My names BobboHobbo not HobboBobbo :p


Haha lol, my bad…

I saw BobboHobbo at the show, I asked for head, but he said no.
Well atleast I thought he said no until he got on his knee's and started to blow :O



Lol that was random.. dw about it :S