SRL Archive - First Scripts

Second script but not good enough for fourms


§hãttêrëd Rèƒlé¢tîøñ

2007-09-30 01:23:05

please tell me how to improve..I think i did pretty good..I need to know how to include anti-ban and fail safes and a proggy.

Tell me how I am doing so far please.

{-------------------------------------------------------------------------------
§hãttêrëd Rèƒlé¢tîøñ's First power cutter

How to use:
1. Fill out setup
2. Drag crosshair onto runescape
3. Low detail and high brightness
3. Run!

------------------------------------------------------------------------------- }
program New;
{.include SRL/SRL.scar}

const
LoadsPerPlayer = 10; //Amounts of loads per player before switching.
TreeColor = 0; //Find a tree color using the color picker
//Tree -- 1918268
//Oak -- 6658964

WaitPerTree =6000; //Wait time before chopping another tree

procedure DeclarePlayers;
begin
HowManyPlayers:=4; // Set Number of Players here.
NumberOfPlayers(HowManyPlayers); // Sets the Players Array Length;

Players[0].Name := ''; // Runescape name
Players[0].Pass := ''; // Runescape Password
Players[0].Nick := ''; // 2-4 letter nickname
Players[0].Active := True; //If you don't want to use this player write "False"

Players[1].Name := ''; // Runescape name
Players[1].Pass := ''; // Runescape Password
Players[1].Nick := ''; // 2-4 letter nickname
Players[1].Active := True; //If you don't want to use this player write "False"

Players[2].Name := ''; // Runescape name
Players[2].Pass := ''; // Runescape Password
Players[2].Nick := ''; // 2-4 letter nickname
Players[2].Active := True; //If you don't want to use this player write "False"

Players[3].Name := ''; // Runescape name
Players[3].Pass := ''; // Runescape Password
Players[3].Nick := ''; // 2-4 letter nickname
Players[3].Active :=True; //If you don't want to use this player write "False"


Writeln(inttostr(HowManyPlayers)+' Players');
end;

Procedure Randoms;
Begin
Findnormalrandoms;
if (FindFight = true) then
begin
RunAwayDirection('N');
Wait(10000 + random(2000));
RunBack;
end;
end;

Function FindFastRandoms: Boolean;
var
i: Integer;
begin
for i:=1 to 10 do
begin
case I of
1: If FindDead then
Result := True;
2: If FindMod then
Result := True;
3: If FindMime then
Result := True;
4: If FindMaze then
Result := True;
5: If FindQuiz then
Result := True;
6: If FindDemon then
Result := True;
7: begin
if NoGameTab then
begin
Result := True;
Players[CurrentPlayer].loc := 'No GameTab';
Logout;
Exit;
end;
end;
8: begin
If InBlack then
begin
Result := True;
Players[CurrentPlayer].loc := 'InBlack';
Logout;
Exit;
end;
end;
9 : If RC Then Result := True;

10: If FindTalk Then Result := True;
End;
Wait(1);
end;
end;


Procedure ProgressReport;

Begin

WriteLn('----------------------------');
WriteLn('');
WriteLn('Power Cutter by SR.');
WriteLn('');
Writeln('Worked for '+ TimeRunning);
WriteLn('----------------------------');
WriteLn('');
WriteLn('----------------------------');
SendSRLReport;
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
Wait(WaitPerTree);
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;

begin
SetupSRL;
DeclarePlayers;
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.

Bobzilla69

2007-09-30 04:00:52

well this script reminds me of someones elses, maby i am just going mad, oh well.

RAM

2007-09-30 06:13:15

From: bobzilla69
well this script reminds me of someones elses, maby i am just going mad, oh well.




Maybe cooldude132 ?:rolleyes:




Bobzilla69

2007-09-30 06:24:34

no wasnt that person, will edit this post when i remember, if i ever do, lol

Santa_Clause

2007-09-30 06:29:18

I think he's trying to say cooldude132 is the same person as the maker of this script ;)

§hãttêrëd Rèƒlé¢tîøñ

2007-09-30 08:33:30

I am cooldude…I hated that name and I made another…Sorry if that is against the rules, just delete cooldude132

On this guy I am starting to learn scripting.

Again I am REALLY sorry if I can't make another account. If I have to be punished let it be.

And, may you please tell me if I am on the right track? ^_^

Jahooma

2007-09-30 09:59:54

Wow, the whole thing was just copied and pasted from other people's scripts. Everything but the randoms and progress report was copied from The_Rs_Monkey's woodcutting tutorial- http://www.villavu.com/forum/showthread.php?t=16602
- even the same comments are there! The funniest part is that he wrote long procedures and functions for anti randoms, and then never called them in the code!
Please try to write your own code, and especially don't lie and say it's yours!
I'm not sure what this forum does with plagerizers, as I am somewhat new myself, but I recommend at least a suspension.

§hãttêrëd Rèƒlé¢tîøñ

2007-09-30 10:07:34

I'm just trying =[. I followed rs money's wc tut..and tried to do some anti-random…=[ just trying to learn…

Zeta

2007-09-30 10:08:15

alot of people use that guide to make a wcer.. you have findfastrandoms in your script but you dont use it at all, move the function above your randoms procedure and put it in there..

§hãttêrëd Rèƒlé¢tîøñ

2007-09-30 10:11:59

From: Zeta
alot of people use that guide to make a wcer.. you have findfastrandoms in your script but you dont use it at all, move the function above your randoms procedure and put it in there..


Thank you Zeta, you have been a big help to me so far. I just don't understand what you mean. :confused:

Zeta

2007-09-30 10:15:58

sorry i'm bad at explaining.. like this

{-------------------------------------------------------------------------------
§hãttêrëd Rèƒlé¢tîøñ's First power cutter

How to use:
1. Fill out setup
2. Drag crosshair onto runescape
3. Low detail and high brightness
3. Run!

------------------------------------------------------------------------------- }
program New;
{.include SRL/SRL.scar}

const
LoadsPerPlayer = 10; //Amounts of loads per player before switching.
TreeColor = 0; //Find a tree color using the color picker
//Tree -- 1918268
//Oak -- 6658964

WaitPerTree =6000; //Wait time before chopping another tree

procedure DeclarePlayers;
begin
HowManyPlayers:=4; // Set Number of Players here.
NumberOfPlayers(HowManyPlayers); // Sets the Players Array Length;

Players[0].Name := ''; // Runescape name
Players[0].Pass := ''; // Runescape Password
Players[0].Nick := ''; // 2-4 letter nickname
Players[0].Active := True; //If you don't want to use this player write "False"

Players[1].Name := ''; // Runescape name
Players[1].Pass := ''; // Runescape Password
Players[1].Nick := ''; // 2-4 letter nickname
Players[1].Active := True; //If you don't want to use this player write "False"

Players[2].Name := ''; // Runescape name
Players[2].Pass := ''; // Runescape Password
Players[2].Nick := ''; // 2-4 letter nickname
Players[2].Active := True; //If you don't want to use this player write "False"

Players[3].Name := ''; // Runescape name
Players[3].Pass := ''; // Runescape Password
Players[3].Nick := ''; // 2-4 letter nickname
Players[3].Active :=True; //If you don't want to use this player write "False"


Writeln(inttostr(HowManyPlayers)+' Players');
end;

Function FindFastRandoms: Boolean; //By WT-Fakawi (This has to be before your randoms procedure)
var
i: Integer;
begin
for i:=1 to 10 do
begin
case I of
1: If FindDead then
Result := True;
2: If FindMod then
Result := True;
3: If FindMime then
Result := True;
4: If FindMaze then
Result := True;
5: If FindQuiz then
Result := True;
6: If FindDemon then
Result := True;
7: begin
if NoGameTab then
begin
Result := True;
Players[CurrentPlayer].loc := 'No GameTab';
Logout;
Exit;
end;
end;
8: begin
If InBlack then
begin
Result := True;
Players[CurrentPlayer].loc := 'InBlack';
Logout;
Exit;
end;
end;
9 : If RC Then Result := True;

10: If FindTalk Then Result := True;
End;
Wait(1);
end;
end;

Procedure Randoms;
Begin
FindFastRandoms; //Added this here
Findnormalrandoms;
if (FindFight = true) then
begin
RunAwayDirection('N');
Wait(10000 + random(2000));
RunBack;
end;
end;



Procedure ProgressReport;

Begin

WriteLn('----------------------------');
WriteLn('');
WriteLn('Power Cutter by SR.');
WriteLn('');
Writeln('Worked for '+ TimeRunning);
WriteLn('----------------------------');
WriteLn('');
WriteLn('----------------------------');
SendSRLReport;
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
Wait(WaitPerTree);
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;

begin
SetupSRL;
DeclarePlayers;
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.

Jahooma

2007-09-30 10:16:43

Maybe I was a little harsh… but you could at least credit the people you copied from - its called plagiarizing when you claim it's your own.

Bobzilla69

2007-09-30 10:49:09

wow so i was right, oh well , maby u will learn from this that people will notice if u copy scripts so try and make ur own

SuperScripter

2007-09-30 11:41:05

Ok for the anti ban use something like this.

Procedure AntiBannage;
Begin
case random(5) of
1.HoverSkill('Random',false)
3.AlmostLogout//Love yakmans features
5. PickUpMouse;


#SS