Runaway
2009-08-25 07:00:42
How Long have You Played Runescape?
4 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
No
What is your general programming knowledge?
Basic C++ and C#
Basic Delphi
Intermediate Pascal
Are you a member of any other communities?
No
Tell us about yourself…
Please show us one (or multiple) of your scripts.
I used 3 of the functions that were in my include in my actual scriptm so I only have Cop_wait and Cop_Mouse to put here. They aren't very impressive, but I felt it would make things easier for me.
(Also can be seen in SRL Public revisions):
Runaway.scar Include
ACTUAL SCRIPT HERE:
4 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
No
What is your general programming knowledge?
Basic C++ and C#
Basic Delphi
Intermediate Pascal
Are you a member of any other communities?
No
Tell us about yourself…
From: Runaway Cop
I'm 17 and I live in Massachusetts. I've been a member of the SRL community for about a year and a half. I have never been really good at scripting, but I've always tried to put in an effort when learning. I don't take the easiest routes, but at least I get stuff done. I love GFX, I even make my own fonts when I'm bored! I am a shy person, so I know a lot of people, but most of them don't know me. That's just how I am. I'm currently in high school, and am planning on going on through to college as well. Somewhere in the south. I love heat, and I love ridin' round on my lawnmower with a shirt off and the breeze in my face. I'm not a redneck. Don't worry. I like jokes. They are fun. [/end life story]
As you'll see, the only thing I have going for me when it comes to scripting is my standards, and sometimes those aren't even right. I just wanted to submit this because it took me time and effort to make. I don't mind if you shoot it down, either way, I know I tried.
Please show us one (or multiple) of your scripts.
I used 3 of the functions that were in my include in my actual scriptm so I only have Cop_wait and Cop_Mouse to put here. They aren't very impressive, but I felt it would make things easier for me.
(Also can be seen in SRL Public revisions):
Runaway.scar Include
//-------------------------------------------------------------------\\
{ }
{ Runaway.scar Include }
{ Made by: Runaway Cop }
{ These are just a few includes to help me out with scripting, }
{ some of them just make scripting faster and easier, where }
{ others can help out in a variety of ways! Enjoy! }
{ }
{ The functions and procedures below consist of: }
{ procedure Cop_wait(waittime: integer) }
{ procedure Cop_mouse(x, y: integer; leftclick: boolean) }
{ procedure Cop_antiban(skill: string; randomtalker: boolean) }
{ procedure Cop_dropload(itemcolor: integer) }
{ fucntion Cop_findtree(treetype: string; chop: boolean): boolean }
{ }
//-------------------------------------------------------------------//
var
waittime, x, y, itemcolor: Integer;
leftclick, randomtalker: Boolean;
treetype, skill: String;
//This takes the time and does several different mathematic equations with it.
//The absolute minimum wait time you can get out of this is the same as the
//variable you plug into it. for example, Cop_wait(100) can range from 100ms to
//240ms wait time. The larger the initial input, the larger the output can be.
procedure Cop_wait(waittime: integer);
var
r1: Integer;
begin
r1 := randomrange(1, 4);
wait((waittime/r1)+random(50));
wait(waittime-random(waittime/2));
wait((waittime/4)+random(20));
end;
//This is just a shortcut, using a random integer for the rx and ry in the
//Mouse(x, y, rx, ry, leftclick) procedure.
procedure Cop_mouse(x, y: integer; leftclick: boolean);
var
ranx1, rany1: Integer;
begin
ranx1 := randomrange(2, 5);
rany1 := randomrange(2, 5);
Mouse(x, y, ranx1, rany1, leftclick);
end;
ACTUAL SCRIPT HERE:
program ChopNBank;
{.include SRL/SRL.scar}
{.include SRL/Runaway.scar}
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
PlayerOptions(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].booleans[0] := False;
Players[0].strings[1] := ''; //tree type: normal, oak, willow, maple, yew, magic.
Players[0].strings[2] := ''; //color of logs
Players[0].strings[3] := ''; //loads to do
Players[0].Active := True;
end;
function Cop_findtree(treetype: string; chop: boolean): boolean;
var
Colors: Array of integer;
UpText: string;
begin
if not (LoggedIn) then Exit;
case Lowercase(treetype) of
'normal': Colors := [1854786, 3567717, 1062703];
'oak': Colors := [1922889, 4624516, 2516570];
'willow': Colors := [6919048, 2441789, 5010788];
'maple': Colors := [3495048, 1451327, 2176088];
'yew': Colors := [2120012, 2648669, 4228986];
'magic': Colors := [10479596, 4623230, 2186320];
end;
begin
writeln('Tree type selected is not supported.');
exit;
end;
UpText := copy(treetype, 2, High(treetype));
repeat
if FindObjCustom(x, y, [UpText], Colors, 5) then
result := true;
if not Chop then
Mouse(x, y, 0, 0, true)
else
GetMousePos(x, y);
Mouse(x, y, 0, 0, false);
WaitOption('p down', 500+random(100));
Cop_wait(1500);
until(InvFull);
end;
function Cop_dropload(itemcolor: integer): boolean;
var
b: tbox;
i: Integer;
begin
if not (LoggedIn) then Exit;
if not (InvFull) then Exit;
for i := 1 to 28 do
begin
b := InvBox(i);
if FindColor(itemcolor, x, y,b.x1, b.y1, b.x2, b.y2) then
result := true;
DropItem(i);
else
end;
end;
function Cop_antiban(skill: string; randomtalker: boolean): boolean;
var
compassangle1, compassangle2: Integer;
begin
if not (LoggedIn) then Exit;
//inc(AntibansDone);
result := true;
case random(200) of
0,1: BoredHuman;
2,3: RandomRClick;
4,5: PickUpMouse;
6,7: HoverSkill('random', false);
8,9: ExamineInv;
10,11: begin
compassangle1 := randomrange(1, 55);
compassangle2 := randomrange(120, 250);
MakeCompass(IntToStr(compassangle1));
Cop_wait(50);
MakeCompass(IntToStr(compassangle2));
Cop_wait(50);
MakeCompass('n');
end;
12,13: begin
GetMousePos(x, y);
MMouse(x, y, 15, 15);
Cop_wait(25);
MMouse(x, y, 5, 5);
end;
14: begin
if not (randomtalker) then Exit;
case random(5) of
0: TypeSend('lol');
1: TypeSend('...');
2: TypeSend('bored.');
3: TypeSend('omg this is boring');
4: TypeSend('auayuidy.');
end;
end;
15,16: RandomMovement;
17,18: begin
GameTab(RandomRange(1, 13));
Cop_wait(500);
Gametab(tab_Inv);
end;
19,20: SayCurrentLevels(skill);
end;
end;
procedure Signature;
begin
status('Look at that beautiful signature.');
cleardebug;
writeln(' ____ ____');
wait(100);
writeln('| _ \ / ___|');
wait(100);
writeln('| / _ _ _ _ ____ _ ___ _ ____ _ _ | | ___ ___');
wait(100);
writeln('| |\ \ | || || ` || _ \ | |/ _ \| || _ \ | |_| | | |__ / _ \| _ \');
wait(100);
writeln('|_| \_\\____/|_|_|\___\_\|___/ \___|\___\_\\____ | \____|\___/| __/');
wait(100);
writeln(' Chop N Bank __/ / | |');
wait(100);
writeln(' |___/ |_|');
end;
procedure SetupScript;
SetupSRL;
DeclarePlayers;
ActivateClient;
LoginPlayer;
MakeCompass('n');
end;
procedure MainLoop;
repeat
Cop_findtree(Players[0].strings[0], Players[0].booleans[0]);
Cop_antiban('woodcutting', false);
Cop_dropload(StrToInt(Players[0].strings[1]));
Cop_antiban('woodcutting', false);
until(LoadsDone > StrToInt(Players[0].strings[3])
Logout;
end;
begin
Signature;
SetupScript;
MainLoop;
end.