SRL Archive - Archive

Melon - SRL Member Application Form


Melon

2008-12-10 13:58:15

<!– BEGIN TEMPLATE: formanswers –>
Melon - SRL Member Application Form
Melon

What is the meaning to life?


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


Programming Knowledge
no

Other Communitys
none

How Long have You Played Runescape
since 2002 or 2003

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

Um yes , when i first found this place i didnt understand anything at all :O Then , after few months i started to intres what is srl and scar , so i wanted to read some tutorials and start my own script!

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

program MElon_cutar;

{.include Srl/Srl.scar}
{.include Srl/Srl/Skill/Woodcutting.scar}


const

Loads = 99;
bankboothcolor1 = 4413795;
bankboothcolor2 = 5400949;



var


x, y,LvlUps: integer;



procedure WalkToWillow;
begin
SymbolAccuracy := 0.45;
if (FindSymbol(x, y, 'fish')) then
begin
setrun (false);
Mouse(x, y, 2, 2, true);
FFlag(0);
Writeln('esam klaat , atradu zivs simbolu <><, varam saakt cirst');

if not (FindSymbol(x, y, 'fish')) then
begin
writeln ('neatrdau zivi <>< <>< <>< <>< <>< ');
logout;
exit;
end;
end;
end;

Procedure TalkAboutWc;
Begin
Case Random(300) Of
0: TypeSend('woodcutting is so boring');
1: TypeSend('wc is so booring ;p');
2: TypeSend('so booring...');
End;
End;



Function FindBankers (Var Bank: TPoint; Var Angle: Extended): Boolean;

Var
I: Integer;
B, gB: TPointArray;
aTPA: T2DPointArray;

Begin
Result := False;
FindColorsSpiralTolerance(MMCX, MMY2, B, 60909, MMX1, MMY1, MMX2, MMY2, 0);
aTPA := SplitTPA(B, 10);
SortATPASize(aTPA, True);
If Length(aTPA) = 0 Then
Exit;
B := aTPA[0];
For I := 0 To High(B) - 1 Do
Begin
If (Abs(B[I].Y - B[I + 1].Y) < 15) And (Abs(B[I].X - B[I + 1].X) < 60) Then
Begin
SetLength(gB, Length(gB) + 1);
gB[High(gB)] := B[I];
If High(gB) > 3 Then // 4 bankers.
Begin
Bank := MiddleTPA(gB);
Bank.Y := Bank.Y - 5;
Angle := Degrees(ArcTan2(gB[0].y - gB[High(gB)].y, gB[0].x - gB[High(gB)].x)) + 90;
If Angle < 0 Then
Angle := 90 - (Angle * -1) + 270;
Result := True;
Exit;
End;
End
Else
SetLength(gB, 0);
End;
End;

procedure antiRand;
begin
FindNormalRandoms;
FindTalk;
if (FindFight) then
begin
RunAway('n', True, 1, 10000 + random(5000));
FTWait(20 + random(10));
end;
end;

function AreWeLevelUp: boolean;
begin
if not LoggedIn then Exit;
if ClickContinue(True, False) then
begin
if FindNPCChatText('lations', Nothing) then
begin
Writeln('Yay, we got a new level!');
Lvlups := Lvlups + 1;
Inc(ReportVars[3]);
ClickContinue(True, True);
Result := True;
Exit;
end;
end;
end;

procedure uzBANKU;

begin
SymbolAccuracy := 0.45;
if (FindSymbol(x, y, 'bank')) then
begin
Mouse(x, y, 2, 2, true);
FFlag(0);
Writeln('maucam uz banku ;D');
wait (11000+random(2000))
end;
end;

procedure Aban;

begin

case Random(30) of
1: HoverSkill('Woodcutting', False);
2: HoverSkill('random', False);

end;

end;

procedure bankoties;
begin

writeln ('liekam iekshaa ')

MakeCompass('W');

if FindObjCustom(x, y, ['ank', 'ooth'], [bankboothcolor1,bankboothcolor2], 7) then
begin
Mouse( x, y, 0, 0, False)
FTWait(8);
Flag;
ChooseOption('Use-quickly')
FTWait(10);
Deposit(2, 28, true);
CloseBank;

if not FindObjCustom(x, y, ['ank', 'ooth'], [bankboothcolor1,bankboothcolor2], 7) then

writeln ('neatradu banku ');

logout;

End;
end;
Procedure chop;

var CuttingTime: integer;
Tries: integer;
begin
MarkTime(CuttingTime);
MakeCompass('N');
repeat
if FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7) then
begin
Mouse(x,y,0,0,false);
if(IsUpText('Chop'))then
Wait(5000 + (random(150)));
ChooseOption('hop')
antiRand;
Aban;
AreWeLevelUp;
TalkAboutWc;
wait (5800 + (random(200)));
if (not (FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7))) then
Wait(100+random(100));
Tries := Tries + 1;
if(Tries = 50)then
begin
Writeln ('neatradu vitolu. mauciba.');
Logout;
Exit;
end;
end;
until(InvFull) or (TimeFromMark(CuttingTime) > 800000+random(60000));
end;

procedure SetupScript;
begin
SetupSRL;
end;

procedure DeclarePlayers;
begin

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

Players[0].Name := 'Username';
Players[0].Pass := 'Password';
Players[0].Nick := 'erna';
Players[0].Active := True;

end;

procedure Proggy;
begin
cleardebug;
writeln('+++++++++++++++++++++++++++++++++++++');
writeln('Thank you for using Melon_cutter');
writeln('Ran for ' +TimeRunning);
writeln('+++++++++++++++++++++++++++++++++++++');
end;





procedure MAIN;

begin

SetupSRL;
DeclarePlayers;
WalkToWillow;
wait ( 10000);
chop;
uzBANKU;
wait (10000);
bankoties;
Proggy;



end;


begin

MAIN;
repeat
MAIN;
until (false)
end.



This script is still not advenced / full functional , but im still working on it. There are lot of draynor willow cutters , but i started with this becouse i think it is the most easy to do it.
After this is done , i will turn to do Yew's and normal trees , oaks ;) i hope you will enyoj my script.

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

Wizzup?

2008-12-10 14:42:33

Quite weird standards. ;)

Anyway,


Main;
Repeat
Main;
Until False;

Is the same as:


Repeat
Main;
Until False;

Also, if I recall correctly the FindBankers is from one of my scripts. :)
The script looks alright, I don't know what to vote yet, will vote later.
Keep it up! :)

Sir R. M8gic1an

2008-12-10 14:49:35


Function FindBankers (Var Bank: TPoint; Var Angle: Extended): Boolean;

Var
I: Integer;
B, gB: TPointArray;
aTPA: T2DPointArray;

Begin
Result := False;
FindColorsSpiralTolerance(MMCX, MMY2, B, 60909, MMX1, MMY1, MMX2, MMY2, 0);
aTPA := SplitTPA(B, 10);
SortATPASize(aTPA, True);
If Length(aTPA) = 0 Then
Exit;
B := aTPA[0];
For I := 0 To High(B) - 1 Do
Begin
If (Abs(B[i].Y - B[I + 1].Y) < 15) And (Abs(B[i].X - B[I + 1].X) < 60) Then
Begin
SetLength(gB, Length(gB) + 1);
gB[High(gB)] := B[i];
If High(gB) > 3 Then // 4 bankers.
Begin
Bank := MiddleTPA(gB);
Bank.Y := Bank.Y - 5;
Angle := Degrees(ArcTan2(gB[0].y - gB[High(gB)].y, gB[0].x - gB[High(gB)].x)) + 90;
If Angle < 0 Then
Angle := 90 - (Angle * -1) + 270;
Result := True;
Exit;
End;
End
Else
SetLength(gB, 0);
End;
End;

that's not yours, credit the person who did it.


function AreWeLevelUp: boolean;
begin
if not LoggedIn then Exit;
if ClickContinue(True, False) then
begin
if FindNPCChatText('lations', Nothing) then
begin
Writeln('Yay, we got a new level!');
Lvlups := Lvlups + 1;
Inc(ReportVars[3]);
ClickContinue(True, True);
Result := True;
Exit;
end;
end;
end;
doesn't seem to be yours, otherwise i don't really see the point for
"Inc(ReportVars[3]);" when you don't even have such var.

you don't switch players.

Randomly talking is not good for various reasons:
people will notice how repetitive you are,
there might not be anyone around you…. which will make jagex wonder why are you talking?
if someone starts having a conversation with you you won't be able to answer which sounds strange after making a comment about WC


Mouse(x,y,0,0,false);
if(IsUpText('Chop'))then

you should do:

MMouse(x,y,0,0); //just moves it there
if(IsUpText('Chop'))then
begin
Mouse(x,y,0,0, False); //now you click cus u already know it's there


if FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7) then
begin
Mouse(x,y,0,0,false);
if(IsUpText('Chop'))then
FindObjCustom already finds uptext, so no point looking for it twice.


if FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7) then
begin
//...
if (not (FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7))) then

try this instead :

if FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7) then
begin
//...
end else begin
//...
end;


procedure SetupScript;
begin
SetupSRL;
end;

no point making such a procedure, you might as well just call it from the mainloop.

and please, learn proper standards and you might want to check the requirements for members.

I don't think you're quite there yet, but keep working on it ;)

edit: http://www.villavu.com/forum/showthread.php?t=3293

~RM

Dervish

2008-12-10 15:08:46

Loll'ed good at your paragraph xD.

Yes from my side, you show your knowledge of SRL and SCAR and use TPA's.

YES

TViYH

2008-12-10 15:18:08

[X]: DTMs
[X]: DDTMs
[X]: Walking
[X]: Antiban/Antirandom
[X]: Multiplayer
[X]: TPAs/T2DTPAs

Actually, it's not bad.

Standards aren't very good, and I sense that something has been stolen. However, good job!

I'm holding my vote.

Scaper

2008-12-10 16:10:50

umm yes its a bit bordirish standerds are well out but it does show your knowledge umm im undecided im leaning towards a yes but i will come back and vote later

jakeyboy29

2008-12-10 16:36:46

it doesnt log in. i voted yes tho. so if poss can some one change it. if not. i vote yes !

Iron Man

2008-12-10 18:51:15

From: Dervish
Loll'ed good at your paragraph xD.

Yes from my side, you show your knowledge of SRL and SCAR and use TPA's.

YES


Read the stickies before voting, please.

Holding vote.

P1nky

2008-12-10 18:57:16

standards look BAD:S


and i dont see any failsafes?
EX:
procedure uzBANKU;

begin
SymbolAccuracy := 0.45;
if (FindSymbol(x, y, 'bank')) then
begin
Mouse(x, y, 2, 2, true);
FFlag(0);
Writeln('maucam uz banku ;D');
wait (11000+random(2000))
end;
end;

nor see no dtm's or DDtms

sorry NO!

Griff

2008-12-13 23:26:00

From: Rasta Magician

Function FindBankers (Var Bank: TPoint; Var Angle: Extended): Boolean;

Var
I: Integer;
B, gB: TPointArray;
aTPA: T2DPointArray;

Begin
Result := False;
FindColorsSpiralTolerance(MMCX, MMY2, B, 60909, MMX1, MMY1, MMX2, MMY2, 0);
aTPA := SplitTPA(B, 10);
SortATPASize(aTPA, True);
If Length(aTPA) = 0 Then
Exit;
B := aTPA[0];
For I := 0 To High(B) - 1 Do
Begin
If (Abs(B[i].Y - B[I + 1].Y) < 15) And (Abs(B[i].X - B[I + 1].X) < 60) Then
Begin
SetLength(gB, Length(gB) + 1);
gB[High(gB)] := B[i];
If High(gB) > 3 Then // 4 bankers.
Begin
Bank := MiddleTPA(gB);
Bank.Y := Bank.Y - 5;
Angle := Degrees(ArcTan2(gB[0].y - gB[High(gB)].y, gB[0].x - gB[High(gB)].x)) + 90;
If Angle < 0 Then
Angle := 90 - (Angle * -1) + 270;
Result := True;
Exit;
End;
End
Else
SetLength(gB, 0);
End;
End;

that's not yours, credit the person who did it.


function AreWeLevelUp: boolean;
begin
if not LoggedIn then Exit;
if ClickContinue(True, False) then
begin
if FindNPCChatText('lations', Nothing) then
begin
Writeln('Yay, we got a new level!');
Lvlups := Lvlups + 1;
Inc(ReportVars[3]);
ClickContinue(True, True);
Result := True;
Exit;
end;
end;
end;
doesn't seem to be yours, otherwise i don't really see the point for
"Inc(ReportVars[3]);" when you don't even have such var.

you don't switch players.

Randomly talking is not good for various reasons:
people will notice how repetitive you are,
there might not be anyone around you…. which will make jagex wonder why are you talking?
if someone starts having a conversation with you you won't be able to answer which sounds strange after making a comment about WC


Mouse(x,y,0,0,false);
if(IsUpText('Chop'))then

you should do:

MMouse(x,y,0,0); //just moves it there
if(IsUpText('Chop'))then
begin
Mouse(x,y,0,0, False); //now you click cus u already know it's there


if FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7) then
begin
Mouse(x,y,0,0,false);
if(IsUpText('Chop'))then
FindObjCustom already finds uptext, so no point looking for it twice.


if FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7) then
begin
//...
if (not (FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7))) then

try this instead :

if FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7) then
begin
//...
end else begin
//...
end;


procedure SetupScript;
begin
SetupSRL;
end;

no point making such a procedure, you might as well just call it from the mainloop.

and please, learn proper standards and you might want to check the requirements for members.

I don't think you're quite there yet, but keep working on it ;)

edit: http://www.villavu.com/forum/showthread.php?t=3293

~RM


Way to write a trilogy for him :P
Hmm, I'm going to have to vote no, for the reasons above, but you're almost there, and I'm sure that in a month, you can make it in.

-Griff

Blumblebee

2008-12-14 19:36:09

procedure MAIN;

begin

SetupSRL;
DeclarePlayers;
WalkToWillow;
wait ( 10000);
chop;
uzBANKU;
wait (10000);
bankoties;
Proggy;



end;


begin

MAIN;
repeat
MAIN;
until (false)
end.

uuuuuh, standards please, they were so good throughout the rest of the script…

with that said, im voting no, just not advanced enough, no really complicated procedures.

oh and

function AreWeLevelUp: boolean;
begin
if not LoggedIn then Exit;
if ClickContinue(True, False) then
begin
if FindNPCChatText('lations', Nothing) then
begin
Writeln('Yay, we got a new level!');
Lvlups := Lvlups + 1;
Inc(ReportVars[3]);
ClickContinue(True, True);
Result := True;
Exit;
end;
end;
end;

looks alot like the one in bobbohobbo's draynor willow chopper…

Bonfield

2008-12-14 20:48:44

it looks like the procedures with correst standards are taken from someone elses script

sorry no from me. its a great start keep at it cos it looks like u have the basic knowledge of how to use srl

Nava2

2008-12-15 22:07:06

Nuh uh.

I voted no. :D:D:D:D

Raskolnikov

2008-12-16 15:57:02

Hmm…

(d)dtms/bitmaps - no
multiplayer - no
stolen procedures - possibly
standards - epic fail (look above, and you will see what I mean…)
Object finding - yes


… no. Sorry, good luck next time, credit where due too.

Cut em2 it

Gu3st...

2008-12-17 11:03:41

It surprised me - Noone saw that he calls SetupSRL; and DeclarePlayers; in the procedure MAIN; (and he calls that all the time).

Nope. I do not like the standars and you do not know enogh SRL.

Laur€ns

2008-12-17 11:33:18

I like melons. But no.

[S]paz

2008-12-17 11:49:23


procedure SetupScript;
begin
SetupSRL;
end;

procedure DeclarePlayers;
begin

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

Players[0].Name := 'Username';
Players[0].Pass := 'Password';
Players[0].Nick := 'erna';
Players[0].Active := True;

end;

procedure MAIN;
begin
SetupSRL;
DeclarePlayers;
WalkToWillow;
wait ( 10000);
chop;
uzBANKU;
wait (10000);
bankoties;
Proggy;
end;


begin
MAIN;
repeat
MAIN;
until (false)
end.

You call Main twice. Meaning that you would setupSRL and Declare players over and over and over. So therefore, kinda like restarting the script. But theres no start. It would never get anywhere.

Also as for the notes above, no DTM's fail safes ect.

Sorry no.

~Spaz

Hobbit

2008-12-20 01:55:22

The poll has closed.

Sorry.

2-Yes
17-No

Please stick around and read all of the suggestions people have posted and improve your script and reapply in one month.

Cheers,
Hobbit