SRL Archive - Archive

U L T R A - SRL Member Application Form


Ultra

2008-01-22 15:45:31

<!– BEGIN TEMPLATE: formanswers –>
U L T R A - SRL Member Application Form
U L T R A

What is the meaning to life?
Work, learn, make smart decisions.


Where you Referred to SRL? If yes, by whom?
no


Programming Knowledge
HTML, Little of Java.

Other Communitys
Moparscape.org, sythe.org.

How Long have You Played Runescape
2.5-3.2 Years.

Are you affilated in anyway with Jagex LTD?
No
—————————————————–
Please write down a paragraph about Yourself.

I like scripting pretty, i think i learn stuff pretty fast about scar. I take computer programming languages every week. At SRL-Forums i help new people, help them set up scripts, help them learning script basics etc…

——————————————————
Please Post a Sample of your Work. Only SCAR Scripts Accepted

Here is my power chopper i made, it works with the latest srl.
{COPYRIGHT (C) U L T R A Scripts}
{

___ ____ .____ ___________ __________ _____
| | \ | | \__ ___/ \______ \ / _ \
| | / | | | | | _/ / /_\ \
| | / | |___ | | | | \ / | \
|______/ |_______ \ |____| |____|_ / \____|__ /
\/ \/ \/
_________ .__ __
/ _____/ ___________|__|______/ |_ ______
\_____ \_/ ___\_ __ \ \____ \ __\/ ___/
/ \ \___| | \/ | |_> > | \___ \
/_______ /\___ >__| |__| __/|__| /____ >
\/ \/ |__| \/

}

{ Instructions.
Run at low detail, wear your axe, set up const & declare players, drag the cross-hair onto
the runescape window, start logged in, hit run and enjoy.
Instructions. }

{This script currently powercuts: Yew, teak, willow, oak, and tree.}
{.This script is usable for one player only. For now.}

Program ULTRAPowerChopper;
{.Include SRL/SRL.Scar}
Var
TreeTypeName : String;
TreeTypeColor : Integer;
LogsCut : Integer;
LoadsCut : Integer;
Ents : Integer;
X, Y : Integer;

Const
Yew = 2184775;
Teak = 6071180;//Members Only.
Willow = 2332288;
Oak = 2188891;
Tree = 4483941;
Version = '1.4';


{SET UP HERE}
Const
LoadsToCut = 50;//How Many Loads Of Logs You Want To Cut.
TreeTolerance = 7;//Tolerance Of The Tree.
MaxSeconds = 3;//Maximum Seconds To Wait While Cutting A Tree.
RunAwayToDirection = 'S';//Direction To Run Away To If Find Ent Or Fight.
TreeType = 'Willow';//Yew, Teak, Willow, Oak, Tree. Capitalized.
SRLStatsID = '';//SRL STATS ID.
SRLStatsPW = '';//SRL STATS PASSWORD.

Procedure DeclarePlayers;
Begin

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

Players[0].Name := ''; //username
Players[0].Pass := ''; //password
Players[0].Nick := ''; //3-4 letters from your username
Players[0].Active := True;

End;
{END OF SETUP}

Procedure ShowSignature;
Begin
ClearDebug;
Begin
WriteLn(' ___ ____ .____ ___________ __________ _____');
Wait(200+random(300));
WriteLn('| | \ | | \__ ___/ \______ \ / _ \');
Wait(300+random(200));
WriteLn('| | / | |___ | | | | \ / | \');
Wait(200+random(300));
WriteLn('|______/ |_______ \ |____| |____|_ / \____|__ /');
Wait(1000+random(4000));
End;
End;

Procedure DeclareTreeType;
Begin
If(TreeType = 'Yew')Then
Begin
TreeTypeName := 'ew';
TreeTypeColor := Yew;
End Else
If(TreeType = 'Teak')Then
Begin
TreeTypeName := 'eak';
TreeTypeColor := Teak;
End Else
If(TreeType = 'Willow')Then
Begin
TreeTypeName := 'illo';
TreeTypeColor := Willow;
End Else
If(TreeType = 'Oak')Then
Begin
TreeTypeName := 'ak';
TreeTypeColor := Oak;
End Else
If(TreeType = 'Tree')Then
Begin
TreeTypeName := 'ree';
TreeTypeColor := Tree;
End;
End;

{Procedure : RandomHoverMMouse)}
{Author : U L T R A.}
{Description : Randomly moves the mouse somewhere.}
Procedure RandomHoverMMouse;
Begin
Case Random(6)Of

0:MMouse(random(250), random(250), 10, 10);
1:MMouse(random(100), random(100), 50, 50);
2:MMouse(random(50), random(50), 150, 150);
3:MMouse(100, 100, 150, 150);
4:MMouse(300, 300, 100, 100);
5:MMouse(200, 200, 50, 50);

End;
End;

Procedure RandomlyDisguise;
Begin
Case Random(4)Of

0:Disguise('Google');
1:Disguise('Windows Media Player');
2:Disguise('Paint');
3:Disguise('Mozilla Firefox');

End;
End;

Procedure SetUpPowerChopper;
Begin
MakeCompass('N');
GameTab(4);
RandomlyDisguise;
If(MaxSeconds <= 1)Then
Begin
WriteLn('Maximum Seconds To Wait Is ' + IntToStr(MaxSeconds) + '! Seconds Too Low! Re-Set It To 5 to 15!');
TerminateScript;
End;
End;

Procedure URunTo(Direction : String);
Begin
If(Direction = 'N')Or(Direction = 'n')Then
Begin
Mouse(644, 25, 5, 5, True);
Flag;
End Else
If(Direction = 'E')Or(Direction = 'e')Then
Begin
Mouse(703, 80, 5, 5, True);
Flag;
End Else
If(Direction = 'S')Or(Direction = 's')Then
Begin
Mouse(642, 139, 5, 5, True);
Flag;
End Else
If(Direction = 'W')Or(Direction = 'w')Then
Begin
Mouse(582, 88, 5, 5, True);
Flag;
End;
End;

Procedure URunBack;
Begin
If(RunAwayToDirection = 'N')Then
Begin
URunTo('S');
End Else
If(RunAwayToDirection = 'E')Then
Begin
URunTo('W');
End Else
If(RunAwayToDirection = 'S')Then
Begin
URunTo('N');
End Else
If(RunAwayToDirection = 'W')Then
Begin
URunTo('E');
End;
End;

Function SolveEnt : Boolean;
Begin
If(FindColorTolerance(x, y, 56797, 25, 16, 99, 17, 5))And(IsUpText(TreeTypeName))Then
Begin
WriteLn('Found Ent!');
URunTo(RunAwayToDirection);
Wait(10000+random(5000));
URunBack;
Ents := Ents + 1;
ReportVars[2] := ReportVars[2] + 1;
Result := True;
End Else
Result := False;
End;

Function FindFastRandoms: Boolean; //By WT-Fakawi.
Var
i: Integer;
Begin
For i := 1 To 8 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;
LogOut;
Exit;
End;
End;
7: Begin
If InBlack Then
Begin
Result := True;
LogOut;
Exit;
End;
End;
8: RC;
End;
FTWait(1);
End;
End;

Procedure SolveFight;
Begin
If(FindFight)Then
Begin
MakeCompass('N');
URunTo(RunAwayToDirection);
Wait(10000+random(5000));
URunBack;
End;
FindNormalRandoms;
End;

Procedure FindRandoms;
Begin
FindNormalRandoms;
FindFastRandoms;
SolveEnt;
SolveFight;
End;

Function WaitCount(SecondTimeOut : Integer) : Boolean;
Var
TimesCount : Integer;
Begin
TimesCount := 0;
Begin
Repeat
Wait(1000);
TimesCount := TimesCount + 1;
If(TimesCount < 10)Then WriteLn('Waited ' + IntToStr(TimesCount) + '000 M.Seconds.');
Wait(100);
If(TimesCount > 10)Then WriteLn('Waited ' + IntToStr(TimesCount) + '0000 M.Seconds.');
Wait(100);
Until(TimesCount >= SecondTimeOut)Or(SecondTimeOut >= 100)Or(FindFastRandoms)Or(Not(LoggedIn));
If(TimesCount >= SecondTimeOut)Then Result:=True;
End;
End;

Procedure TextWait;
Begin
Repeat
Wait(500+random(500));
SolveEnt;
FindRandoms;
Until(WaitCount(MaxSeconds))Or(Not(IsUpText(TreeTypeName)))Or(SolveEnt = True)Or(Not(LoggedIn))Or(InvFull)Or(ClickToContinue)Or(FindFastRandoms);
If(WaitCount(MaxSeconds))Then
Begin
Exit;
End;
End;

Procedure Cut;
Begin
If(FindObj(x, y, TreeTypeName, TreeTypeColor, TreeTolerance))Then
Begin
Mouse(x, y, 5, 5, True);
WriteLn('Clicked The ' + TreeType + '.');
TextWait;
SolveEnt;
FindRandoms;
End;
End;

Procedure DropAllItems;
Var
I : Integer;
Begin
I := 1;
Begin
Repeat
FindRandoms;
DropItem(I);
I := I + 1;
Until(I >= 28);
End;
End;

Procedure MainCut;
Begin
Repeat
Cut;
SolveEnt;
FindRandoms;
Until(InvFull);
If(InvFull)Then
Begin
DropAllItems;
LogsCut := LogsCut + 27;
LoadsCut := LoadsCut + 1;
ReportVars[0] := ReportVars[0] + 27;
ReportVars[1] := ReportVars[1] + 1;
End;
End;

Procedure WoodcuttingTalk;
Begin
Case Random(17)Of

0:TypeSend('Woodcutting levels?');
1:TypeSend('Woodcutting lvls?');
2:TypeSend('Wc levels?');
3:TypeSend('Wc lvls?');
4:TypeSend('Lol');
5:TypeSend('Lmao');
6:TypeSend('Lmfao');
7:TypeSend('Rofl');
8:TypeSend('Roflmao');
9:TypeSend('Roflmfao');
10:TypeSend('So bored');
11:TypeSend('So tired');
12:TypeSend('Iam exousted');
13:TypeSend('Iam so bored');
14:TypeSend('Iam so tired');
15:TypeSend('Omg');
16:TypeSend('Omfg');

End;
End;

Procedure AntiBan;
Begin
Case Random(3) Of

0:Begin
RandomHoverMMouse;
WriteLn('Used Anti-Ban - Randomly Moved The Mouse.');
End;

1:Begin
Wait(1000+random(4000));
WriteLn('Used Anti-Ban - Waited 1-5 Seconds.');
End;

2:Begin
WoodcuttingTalk;
WriteLn('Used Anti-Ban - Talked In Woodcutting Type.');
End;

End;
End;

Procedure Report;
Begin
ClearDebug;
Begin
WriteLn('--------------------------------------------------------------------');
WriteLn('Power Chopper Version ' + Version + '.');
WriteLn('Made By U L T R A.');
WriteLn('--------------------------------------------------------------------');
WriteLn('Ran For ' + TimeRunning + '.');
WriteLn('Cut ' + IntToStr(LoadsCut) + ' Loads.');
WriteLn('Cut ' + IntToStr(LogsCut) + ' ' + TreeType + ' Logs.');
WriteLn('Avoided ' + IntToStr(Ents) + ' Ents.');
WriteLn('--------------------------------------------------------------------');
End;
End;

Procedure SetUpSRLStats;
Begin
ScriptID := '569';
SRLID := SRLStatsID;
SRLPassword := SRLStatsPW;
If(SRLStatsID = '')Or(SRLStatsPW = '')Then
Begin
WriteLn('Register At SRL Stats And Fill Everything!');
TerminateScript;
End;
End;

Begin
SetUpSRL;
SetUpSRLStats;
ShowSignature;
ActivateClient;
DeclarePlayers;
If(Not(LoggedIn))Then LogInPlayer;
Wait(1000+random(4000));
If(InvFull)Then DropAllItems;
DeclareTreeType;
SetUpPowerChopper;
Begin
Repeat
Report;
MainCut;
SolveEnt;
FindRandoms;
AntiBan;
Until(LoadsCut >= LoadsToCut)Or(Not(LoggedIn));
If(LoadsCut >= LoadsToCut)Or(Not(LoggedIn))Then
Begin
Report;
Exit;
TerminateScript;
End;
End;
End.

——————————————————
<!– END TEMPLATE: formanswers –>

footballjds

2008-01-22 16:27:34

There is many places where you could use srl functions. findfastrandoms is uneeded, use normal. also no:
DDTMS
DTMS
Bitmaps
Walking…
Bad standards.. :(
sorry but a no from me

EDIT
2.5-3.2 Years.
<– i like how precise you are haha

Wizzup?

2008-01-22 16:30:58

Work on your standards.
Try to use more Bitmaps/DTM's/Arrays(Maybe?).
To to use more SRL Functions.
I think this can be closed. Apply in 2 weeks again. :)
EDIT: Yet I did not close it on purpose. Let's see what others have to say.

footballjds

2008-01-22 16:36:17

Wizzup? your always letting ppl reapply in 2 weeks, :p why so kind?

Ultra

2008-01-22 16:37:53

Alright guys, i will try working on those things, and i will see if i can improve.

Naike

2008-01-22 16:46:49

Ok ive looked a bit ^^..
Standarts - Read this - > http://www.villavu.com/forum/showthread.php?t=3293
MultiPlayer! - Read this - > http://www.villavu.com/forum/showthread.php?t=12884?t=14274&highlight=Player+array
( That tut is a bit old )

Ive havnt looked over it all but that what i think you should add/edit in the first place.

I will not vote in this app!
Add my msn if you need help - [email]n_1_c_e@hotmail.com[/email]

Negaal

2008-01-22 16:51:52

No, a bit more action and standards, No this time, GL next time

JAD

2008-01-22 17:24:11

K, here we go.

I would have loved a case in the DeclareTreeType procedure. Would have shortened the code and made the script look more professional and easier to read through.

Your RandomHoverMMouse could have probably just used a MouseBox, no?

There's really no point to disguising SCAR, but I guess you can.

Learn standards!! My eyes are burning.

I would have loved a case in the URunTo also! I also believe there is an srl function already made that works perfectly well for that.

Another case in URunBack would have been good too.

Don't believe there's a need for FindFastRandoms anymore; 99% sure it was implemented in the FindNormalRandoms for srl now.

In your TextWait procedure you have Or(FindFastRandoms). There wouldn't have been any randoms there because you already checked for all the randoms right before :)

If(FindObj(x, y, TreeTypeName, TreeTypeColor, TreeTolerance))Then
Begin
Mouse(x, y, 5, 5, True);

Here, you'll more the mouse, then once on the tree, you'll more it again because you have the random 5,5 parameters in there. You could miss the tree, and it doesn't make the script seem as human. Try GetMousePos and then Mouse with no random parameters (0,0) instead. (I hate FindObj to begin with. IMO, it's a lame function).

DropAllItems you didn't need to drop one item at a time like you did. You could have just put DropAll I believe.

Put a fail safe with a mark time for your chopping. We don't want any endless loops now do we?

Your random chat could possibly do more harm then good.

Repeat
Report;
MainCut;
SolveEnt;
FindRandoms;
AntiBan;
Until(LoadsCut >= LoadsToCut)Or(Not(LoggedIn));

You're going to do your antiban at the same spot every time! Very bad/bannable/unhuman.

You never switch players?

if(not(LoggedIn))then Exit;. The most basic and popular fail safe. Use it more often!


Overall, good job, just work on what I said and that will improve it a lot.

the scar noob

2008-01-22 17:27:19

I'd like to say no, because of:
-no standards
-there are situations were you could have used a "case"- statement, which you didn't
-not really proper usage of srl
-no failsafes
-no usage of dtms/bmps not even multiple colors for object finding

It seems you understand pretty much the basics, but you have my no vote atm.

Just read some more tuts, other people their scripts and have a look at the SRL Folder (read and try to udnerstand the procedures/functions.).

You're on the good road, keep it up and I hope to see you back:)

Regards,

-Tsn.

EDIT: ok.. I see JAD already replied, faster then me:p
EDIT 2:
From: JAD
…
(I hate FindObj to begin with. IMO, it's a lame function).

I don't totally agree with that! FindObj isn't a lame function, I know that it seems like a very basic function, but in some cases of object finding, it can be the best o simply use a FindObj function;)

I know, I also wouldn't use it,I would at least modify it (with credits ofcourse:p) to make it work the best for the object I have to find;)

-Tsn.

bullzeye95

2008-01-22 17:56:03

From: the scar noob
I don't totally agree with that! FindObj isn't a lame function, I know that it seems like a very basic function, but in some cases of object finding, it can be the best o simply use a FindObj function;)


I have to agree with JAD. I think it's just a poorly written object finding function, TBH… why use that when you can be WAY more accurate with CTS 2 + correct color speed 2 modifiers, with TPAs and ATPAs (which sometimes aren't necessary, but they are almost always useful)?

And I voted no for reasons above.

Sir R. M8gic1an

2008-01-23 07:57:21

no multiplayer?

here's standards:

Program ULTRAPowerChopper;
{.Include SRL/SRL.Scar}
Var
TreeTypeName : String;
TreeTypeColor : Integer;
LogsCut : Integer;
LoadsCut : Integer;
Ents : Integer;
X, Y : Integer;

Const
Yew = 2184775;
Teak = 6071180;//Members Only.
Willow = 2332288;
Oak = 2188891;
Tree = 4483941;
Version = '1.4';


{SET UP HERE}
Const //why not joining all the consts together?
LoadsToCut = 50;//How Many Loads Of Logs You Want To Cut.
TreeTolerance = 7;//Tolerance Of The Tree.
MaxSeconds = 3;//Maximum Seconds To Wait While Cutting A Tree.
RunAwayToDirection = 'S';//Direction To Run Away To If Find Ent Or Fight.
TreeType = 'Willow';//Yew, Teak, Willow, Oak, Tree. Capitalized.
SRLStatsID = '';//SRL STATS ID.
SRLStatsPW = '';//SRL STATS PASSWORD.

Procedure DeclarePlayers;
Begin

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

Players[0].Name := ''; //username
Players[0].Pass := ''; //password
Players[0].Nick := ''; //3-4 letters from your username
Players[0].Active := True;

End;
{END OF SETUP}

Procedure ShowSignature;
Begin
ClearDebug;
Begin//not needed
WriteLn(' ___ ____ .____ ___________ __________ _____');
Wait(200+random(300)); //why wait?
WriteLn('| | \ | | \__ ___/ \______ \ / _ \');
Wait(300+random(200));
WriteLn('| | / | |___ | | | | \ / | \');
Wait(200+random(300));
WriteLn('|______/ |_______ \ |____| |____|_ / \____|__ /');
Wait(1000+random(4000));
End;
End;

Procedure DeclareTreeType;
Begin
If(TreeType = 'Yew')Then //you could've used a case here
Begin // no need to capitalize, looks ugly :p
TreeTypeName := 'ew';
TreeTypeColor := Yew;
End Else
If(TreeType = 'Teak')Then
Begin
TreeTypeName := 'eak';
TreeTypeColor := Teak;
End Else
If(TreeType = 'Willow')Then
Begin
TreeTypeName := 'illo';
TreeTypeColor := Willow;
End Else
If(TreeType = 'Oak')Then
Begin
TreeTypeName := 'ak';
TreeTypeColor := Oak;
End Else
If(TreeType = 'Tree')Then
Begin
TreeTypeName := 'ree';
TreeTypeColor := Tree;
End;
End;

{Procedure : RandomHoverMMouse)}
{Author : U L T R A.}
{Description : Randomly moves the mouse somewhere.}
Procedure RandomHoverMMouse;
Begin
Case Random(6)Of
0:MMouse(random(250), random(250), 10, 10);
1:MMouse(random(100), random(100), 50, 50);
2:MMouse(random(50), random(50), 150, 150);
3:MMouse(100, 100, 150, 150);
4:MMouse(300, 300, 100, 100);
5:MMouse(200, 200, 50, 50);
End;
End;

Procedure RandomlyDisguise;
Begin
Case Random(4)Of
0:Disguise('Google');
1:Disguise('Windows Media Player');
2:Disguise('Paint');
3:Disguise('Mozilla Firefox');
End;
End;

Procedure SetUpPowerChopper;
Begin
MakeCompass('N');
GameTab(4);
RandomlyDisguise;
If(MaxSeconds <= 1)Then
Begin
WriteLn('Maximum Seconds To Wait Is ' + IntToStr(MaxSeconds) + '! Seconds Too Low! Re-Set It To 5 to 15!');
TerminateScript;
End;
End;

Procedure URunTo(Direction : String);
Begin
{ Case lowercase(Direction) of
'n': Mouse(644, 25, 5, 5, True);
'e': Mouse(703, 80, 5, 5, True);
's': Mouse(642, 139, 5, 5, True);
'w': Mouse(582, 88, 5, 5, True);
end;
FFlag(0);
}
If(Direction = 'N')Or(Direction = 'n')Then //if Lowercase(Direction)='n' then
Begin
Mouse(644, 25, 5, 5, True);
Flag;
End Else
If(Direction = 'E')Or(Direction = 'e')Then
Begin
Mouse(703, 80, 5, 5, True);
Flag;
End Else
If(Direction = 'S')Or(Direction = 's')Then
Begin
Mouse(642, 139, 5, 5, True);
Flag;
End Else
If(Direction = 'W')Or(Direction = 'w')Then
Begin
Mouse(582, 88, 5, 5, True);
Flag;
End;
End;

Procedure URunBack;
Begin
If(RunAwayToDirection = 'N')Then
URunTo('S'); //no need for begin when it's only 1 line of code
Else
If(RunAwayToDirection = 'E')Then
URunTo('W');
Else
If(RunAwayToDirection = 'S')Then
URunTo('N');
Else
If(RunAwayToDirection = 'W')Then
URunTo('E');
End;

Function SolveEnt : Boolean;
Begin
If(FindColorTolerance(x, y, 56797, 25, 16, 99, 17, 5))And(IsUpText(TreeTypeName))Then
Begin
WriteLn('Found Ent!');
URunTo(RunAwayToDirection);
Wait(10000+random(5000));
URunBack;
Ents := Ents + 1;
ReportVars[2] := ReportVars[2] + 1;
Result := True;
End Else
Result := False;
End;

Function FindFastRandoms: Boolean; //By WT-Fakawi.
Var //FindNormalRandoms already does all this
i: Integer;
Begin
For i := 1 To 8 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;
LogOut;
Exit;
End;
End;
7: Begin
If InBlack Then
Begin
Result := True;
LogOut;
Exit;
End;
End;
8: RC;
End;
FTWait(1);
End;
End;

Procedure SolveFight;
Begin
If(FindFight)Then
Begin
MakeCompass('N');
URunTo(RunAwayToDirection);
Wait(10000+random(5000));
URunBack;
End;
FindNormalRandoms;
End;

Procedure FindRandoms;
Begin
FindNormalRandoms;
FindFastRandoms;
SolveEnt;
SolveFight;
End;

Function WaitCount(SecondTimeOut : Integer) : Boolean;
Var
TimesCount : Integer;
Begin
TimesCount := 0;
Begin//no need for this
Repeat
Wait(1000);
TimesCount := TimesCount + 1;
If(TimesCount < 10)Then WriteLn('Waited ' + IntToStr(TimesCount) + '000 M.Seconds.');
Wait(100);
If(TimesCount > 10)Then WriteLn('Waited ' + IntToStr(TimesCount) + '0000 M.Seconds.');
Wait(100);
Until(TimesCount >= SecondTimeOut)Or(SecondTimeOut >= 100)Or(FindFastRandoms)Or(Not(LoggedIn));
If(TimesCount >= SecondTimeOut)Then Result:=True;
End;//no need for this
End;

Procedure TextWait;
Begin
Repeat
Wait(500+random(500));
SolveEnt;
FindRandoms;
Until(WaitCount(MaxSeconds))Or(Not(IsUpText(TreeTypeName)))Or(SolveEnt = True)Or(Not(LoggedIn))Or(InvFull)Or(ClickToContinue)Or(FindFastRandoms);
If(WaitCount(MaxSeconds))Then
Exit;
End;

Procedure Cut;
Begin
If(FindObj(x, y, TreeTypeName, TreeTypeColor, TreeTolerance))Then
Begin
Mouse(x, y, 5, 5, True);
WriteLn('Clicked The ' + TreeType + '.');
TextWait;
SolveEnt;
FindRandoms;
End;
End;

Procedure DropAllItems;
Var
I : Integer;
Begin
I := 1;
Begin//unneeded
Repeat
FindRandoms;
DropItem(I);
I := I + 1;
Until(I >= 28);
End;//unneeded
End;

Procedure MainCut;
Begin
Repeat
Cut;
SolveEnt;
FindRandoms;
Until(InvFull);
If(InvFull)Then
Begin
DropAllItems;
LogsCut := LogsCut + 27;
LoadsCut := LoadsCut + 1;
ReportVars[0] := ReportVars[0] + 27;
ReportVars[1] := ReportVars[1] + 1;
End;
End;

Procedure WoodcuttingTalk;
Begin
Case Random(17)Of
0:TypeSend('Woodcutting levels?');
1:TypeSend('Woodcutting lvls?');
2:TypeSend('Wc levels?');
3:TypeSend('Wc lvls?');
4:TypeSend('Lol');
5:TypeSend('Lmao');
6:TypeSend('Lmfao');
7:TypeSend('Rofl');
8:TypeSend('Roflmao');
9:TypeSend('Roflmfao');
10:TypeSend('So bored');
11:TypeSend('So tired');
12:TypeSend('Iam exousted');
13:TypeSend('Iam so bored');
14:TypeSend('Iam so tired');
15:TypeSend('Omg');
16:TypeSend('Omfg');
End;
End;

Procedure AntiBan;
Begin
Case Random(3) Of
0:Begin
RandomHoverMMouse;
WriteLn('Used Anti-Ban - Randomly Moved The Mouse.');
End;
1:Begin
Wait(1000+random(4000));
WriteLn('Used Anti-Ban - Waited 1-5 Seconds.');
End;
2:Begin
WoodcuttingTalk;
WriteLn('Used Anti-Ban - Talked In Woodcutting Type.');
End;
End;
End;

Procedure Report;
Begin
ClearDebug;
Begin// unneccesary
WriteLn('--------------------------------------------------------------------');
WriteLn('Power Chopper Version ' + Version + '.');
WriteLn('Made By U L T R A.');
WriteLn('--------------------------------------------------------------------');
WriteLn('Ran For ' + TimeRunning + '.');
WriteLn('Cut ' + IntToStr(LoadsCut) + ' Loads.');
WriteLn('Cut ' + IntToStr(LogsCut) + ' ' + TreeType + ' Logs.');
WriteLn('Avoided ' + IntToStr(Ents) + ' Ents.');
WriteLn('--------------------------------------------------------------------');
End;//unneccesary
End;

Procedure SetUpSRLStats;
Begin
ScriptID := '569';
SRLID := SRLStatsID;
SRLPassword := SRLStatsPW;
If(SRLStatsID = '')Or(SRLStatsPW = '')Then
Begin
WriteLn('Register At SRL Stats And Fill Everything!');
TerminateScript;
End;
End;

Begin
SetUpSRL;
SetUpSRLStats;
ShowSignature;
ActivateClient;
DeclarePlayers;
If(Not(LoggedIn))Then LogInPlayer;
Wait(1000+random(4000));
If(InvFull)Then DropAllItems;
DeclareTreeType;
SetUpPowerChopper;
Begin//unneccessary
Repeat
Report;
MainCut;
SolveEnt;
FindRandoms;
AntiBan;
Until(LoadsCut >= LoadsToCut)Or(Not(LoggedIn));
If(LoadsCut >= LoadsToCut)Or(Not(LoggedIn))Then
Begin
Report;
Exit;
TerminateScript;
End;
End;
End.

~RM

Santa_Clause

2008-01-23 09:24:49

Rasta, stop using that formatter of yours…it prints out wrong standards.

Sir R. M8gic1an

2008-01-23 13:28:27

From: Santa_Clause
Rasta, stop using that formatter of yours…it prints out wrong standards.


care to tell me where? if you mean the extra begins and ends, those were already there, from Ultra's post, or if you mean the else if…else if… that is actually the right way. identing after if and else.

~RM

nielsie95

2008-01-23 17:14:00

8 no vs 0 yes, better luck next time :)
Closed.