SRL Archive - Archive

xXTrollXx - SRL Member Application


Vinyl Scratch

2012-02-04 14:23:19

How Long have You Played Runescape?
5 Year(s)


Are you affilated in anyway with Jagex LTD?
no


What is your general programming knowledge?
Pascal, A little bit of Javascript.


Are you a member of any other communities?
Stickpage Forums.

SRL forums.


Tell us about yourself…
From: xXTrollXx
I enjoy programming, i learned pascal, and this community is Great. I wanted to learn to code because i thought it would be fun, and it is.. I'm sill learning, but who isn't? I enjoy helping out whenever I can. I want to share my knowledge with everyone that
I can.



Please show us one (or multiple) of your scripts.
First REAL working script.

[simba]program Trolls_Yew_PowerChopper;
{$DEFINE SMART}

{$IFDEF SMART}
{$i SRL/SRL/Misc/Smart.simba}
{$ENDIF}
{$i SRL/SRL.simba}
{$i SRL/SRL/Misc/Paintsmart.simba}

const
SRLStats_Username = ''; //SRL Stats User
SRLStats_Pass = ''; //SRL Stats Pass
BreakEvery = '60'; //Break Every Log, Or Never.
BreakFor = '7'; //Break For How long, Now?
Version = '1.0'; // Don't Touch. You'll Break.
NumbOfPlayers = 1; //Number of Players That You Will Be using.
StartPlayer = 0; //Start Which Player?

procedure DeclarePlayers;
var i: Integer;
begin
NumberOfPlayers(NumbOfPlayers);
CurrentPlayer := StartPlayer;
for i := 0 to NumbOfPlayers-1 do
begin
Players[0].Name := ''; // Username
Players[0].Pass := ''; // Password
Players[0].Active := True;
Players[0].BoxRewards := ['Xp', 'mote', 'ostume', 'oins', 'aphire', 'ssence'];
end;

var
X, Y, TreesChopped: integer;
StartingXP: integer;
//==================Anything after this point DON'T TOUCH!====================\\
//............................................................................\\

procedure StatsGuise(Stats:String);
begin
Status(stats);
Disguise(stats);
end;

function CheckAndClick(UpText, Option:string; X,Y:Integer; RClick:Boolean) :Boolean;
begin
MMouse (x, y, 5, 5);
if WaitUpText(UpText, 2300+random(400)) then
begin
Result:=True;
GetMousePos(x, y);
if RClick then
begin
Mouse(X, Y, 0, 0, False);
Result:= WaitOption (Option, 2000);
if Result then FFlag(0);
end else
begin
Mouse(x, y, 0, 0,True);
wait(230+random(70));
FFlag(0);
end;
end;
end;

procedure AntiBan;
begin
case Random(250) of
0: begin StatsGuise('AntiBan') GameTab(tab_stats) HoverSkill ('Woodcutting', false) GameTab(28); end;
1: begin StatsGuise('AntiBan') SleepAndMoveMouse (9000+random(600)); end;
2: begin StatsGuise('AntiBan') GameTab(tab_inv) ExamineInv; GameTab(28); end;
3: begin StatsGuise('AntiBan') RandomAngle(1); end;
end;
end;

Procedure ProgressReport;
var Exp: integer;
begin
Exp := (GetXPBarTotal - StartingXP);
writeLn('================================');
writeLn('=======Trolls PowerChopper======');
writeLn('=======Time Running: ' + TimeRunning);
writeLn('=======Logs: ' + IntToStr(TreesChopped));
writeLn('=======Exp: ' + IntToStr(EXP));
writeLn('================================');
end;

procedure FailSafe(Reason:String);
begin
Players[CurrentPlayer].Loc:=Reason;
Logout;
Stats_Commit;
ProgressReport;
TerminateScript;
end;

Procedure Chop;
var X, Y, PlusOne, TreeCounter: Integer;
begin
//if FindObjCustom(x, y, ['Chop', 'Down'], [4937570, 4344918], 5) Then
X:=MSCX
Y:=MSCY
if FindObjTPA(X, Y, 4937570, 15, 1, 20, 60, 600, ['Chop']) then
begin
StatsGuise('Tree! Cutting.....')
GetMousePos(X, Y);

case Random(2) of
0: Mouse(X, Y, 5, 5, True);
1: begin
Mouse(X, Y, 5, 5, False);
WaitOption('Chop', 250);
end;
end;

Flag;

repeat
Marktime(TreeCounter);
AntiBan;
wait(100);
if InvCount=PlusOne then
WriteLn ('Got That Tree!');
until (InvCount=PlusOne) or (TimeFromMark(TreeCounter) > 15000)
end;
end;

procedure Drop;
var
X, Y, LogDTM, I:Integer;
SlotBox: TBox;
LogPattern:TIntegerArray;

begin


LogDTM := DTMFromString('m1gAAAHic42JgYEhnZmCIguIkIM4G4kIgLgXiVCAuAOIcIA5nBMoDcRgQBwCxLxAHAnEcECcDcQIQJwKxmzEX0FQmIjBxgJFIjAAAi5QIYA==');
LogPattern :=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28];


for I:=0 to 27 do
begin
SlotBox:=InvBox(LogPattern[I]);
if FindDTM(LogDTM, X, Y, SlotBox.X1, SlotBox.Y1, SlotBox.X2, SlotBox.Y2) then
begin
MouseItem(LogPattern[I], Mouse_Right);
ChooseOption('Dro');


end;
end;
end;




RISK

2012-02-04 14:29:10

You do not have a begin end. loop in your script, so how does the script run?


procedure Drop;
var
X, Y, LogDTM, I:Integer;
SlotBox: TBox;
LogPattern:TIntegerArray;

begin


LogDTM := DTMFromString('m1gAAAHic42JgYEhnZmCIguIkIM4G4kIgLgXiVCAuAOIcIA5nBMoDcRgQBwCxLxAHAnEcECcDcQIQJwKxmzEX0FQmIjBxgJFIjAAAi5QIYA==');
LogPattern :=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28];


for I:=0 to 27 do
begin
SlotBox:=InvBox(LogPattern[I]);
if FindDTM(LogDTM, X, Y, SlotBox.X1, SlotBox.Y1, SlotBox.X2, SlotBox.Y2) then
begin
MouseItem(LogPattern[I], Mouse_Right);
ChooseOption('Dro');


end;
end;
end;

At no point do you ever free the DTM that you have called in to use for your dropping procedure.



Procedure Chop;
var X, Y, PlusOne, TreeCounter: Integer;
begin
//if FindObjCustom(x, y, ['Chop', 'Down'], [4937570, 4344918], 5) Then
X:=MSCX
Y:=MSCY
if FindObjTPA(X, Y, 4937570, 15, 1, 20, 60, 600, ['Chop']) then
begin
StatsGuise('Tree! Cutting.....')
GetMousePos(X, Y);

case Random(2) of
0: Mouse(X, Y, 5, 5, True);
1: begin
Mouse(X, Y, 5, 5, False);
WaitOption('Chop', 250);
end;
end;

Flag;

repeat
Marktime(TreeCounter);
AntiBan;
wait(100);
if InvCount=PlusOne then
WriteLn ('Got That Tree!');
until (InvCount=PlusOne) or (TimeFromMark(TreeCounter) > 15000)
end;
end;

I'd like for you to use custom TPAs instead of built in functions, to be honest. I'd also like for you to use CTS2 and custom modifiers.


var
X, Y, TreesChopped: integer;
StartingXP: integer;

Global variables aren't supposed to be used as much as possible. You should really stick to local variables.
You also even use local variables for your 'Chop' procedure, so I thought you'd be using them exclusively instead of hit-and-miss.


procedure StatsGuise(Stats:String);
begin
Status(stats);
Disguise(stats);
end;

function CheckAndClick(UpText, Option:string; X,Y:Integer; RClick:Boolean) :Boolean;
begin
MMouse (x, y, 5, 5);
if WaitUpText(UpText, 2300+random(400)) then
begin
Result:=True;
GetMousePos(x, y);
if RClick then
begin
Mouse(X, Y, 0, 0, False);
Result:= WaitOption (Option, 2000);
if Result then FFlag(0);
end else
begin
Mouse(x, y, 0, 0,True);
wait(230+random(70));
FFlag(0);
end;
end;
end;

procedure AntiBan;
begin
case Random(250) of
0: begin StatsGuise('AntiBan') GameTab(tab_stats) HoverSkill ('Woodcutting', false) GameTab(28); end;
1: begin StatsGuise('AntiBan') SleepAndMoveMouse (9000+random(600)); end;
2: begin StatsGuise('AntiBan') GameTab(tab_inv) ExamineInv; GameTab(28); end;
3: begin StatsGuise('AntiBan') RandomAngle(1); end;
end;
end;

Procedure ProgressReport;
var Exp: integer;
begin
Exp := (GetXPBarTotal - StartingXP);
writeLn('================================');
writeLn('=======Trolls PowerChopper======');
writeLn('=======Time Running: ' + TimeRunning);
writeLn('=======Logs: ' + IntToStr(TreesChopped));
writeLn('=======Exp: ' + IntToStr(EXP));
writeLn('================================');
end;

procedure FailSafe(Reason:String);
begin
Players[CurrentPlayer].Loc:=Reason;
Logout;
Stats_Commit;
ProgressReport;
TerminateScript;
end;

I feel like this is YoHoJo's stuff.


I won't vote but I'd like you to take what I have pointed out in this post in good stride and learn from it.

Vinyl Scratch

2012-02-04 14:34:26

I'm guessing I'm not getting into members yet, am I?

[XoL]

2012-02-04 14:45:37

Your script doesn't work…
>.<

Try to follow this guide:
http://villavu.com/forum/showthread.php?t=27435
http://villavu.com/forum/showthread.php?t=3562

For learning purposes I recommend starting with YoHoJo's video tutorials, informative and they will teach you what you need to know to create a basic/decent script.
http://villavu.com/forum/showthread.php?t=69179

For more advanced scripting I would suggest reading these guides:
http://villavu.com/forum/forumdisplay.php?f=96

Also one thing I really think is important is being community focused, you have 23 posts. Posting actively not only shows you genuinely care for the community it also helps your chances of getting accepted.

These guides can help you with that:
http://villavu.com/forum/showthread.php?t=72050
http://villavu.com/forum/showthread.php?t=66084

Anyway, sorry for the roughness. Good luck.

Iroki

2012-02-04 15:28:47

IMO it is too simple script, and as r4nd0m mentioned above it doesn't work.

When You apply for SRL member You should show Us yours scripting knowledge, but there are only some basic function in Your code.

No for me, sorry.

'Toxin

2012-02-06 08:24:07

From: xXTrollXx
I'm guessing I'm not getting into members yet, am I?


No, you aren't . I'm actually getting so sick of this, applications that shouldn't even be here. Yours is one of them, sorry for sounding too harsh but don't re-apply for a while.

Sin

2012-02-06 09:55:25

From: XxX Toxin XxX
No, you aren't . I'm actually getting so sick of this, applications that shouldn't even be here. Yours is one of them, sorry for sounding too harsh but don't re-apply for a while.


That was extremely harsh…

Vinyl Scratch

2012-02-10 23:43:10

From: XxX Toxin XxX
No, you aren't . I'm actually getting so sick of this, applications that shouldn't even be here. Yours is one of them, sorry for sounding too harsh but don't re-apply for a while.


Ok, I won't apply for members. At all. Sorry for wasting your time.. I'll make my own scripts. Post some of them, but I'm done. Again, Sorry.

Er1k

2012-02-11 01:55:15

From: xXTrollXx
Ok, I won't apply for members. At all. Sorry for wasting your time.. I'll make my own scripts. Post some of them, but I'm done. Again, Sorry.


Don't be discouraged, but ask yourself why you wanted to apply for members and whether you're ready to do so.

Think about it. "Don't pick a fight that you know you can't win." Invest some serious time (some 6-8weeks maybe?) to learn and experiment with new things. Then put the knowledge you've acquired into an idea that you think is worth making, make the script, then consider reapplying. That way I'm sure others will appreciate your efforts.

Jagex_Fagex

2012-02-11 02:43:29

It's not that we don't want you in, you're just too new, and haven't got the required scripting skill yet. Try again in a while :)

Vinyl Scratch

2012-02-11 02:53:51

From: nosaj.421
"Don't pick a fight that you know you can't win."


I'm not picking a fight. I'm ending one that never started. I'm just going to make scripts, but not apply. I'll never be good enough. Sorry.

P1nky

2012-02-11 03:16:31

From: xXTrollXx
I'm not picking a fight. I'm ending one that never started. I'm just going to make scripts, but not apply. I'll never be good enough. Sorry.


Don't say that Mate, it took me about 3 apps to get in.

Honestly, do not ever give up. Just keep trying, you will get to a point where you can see major difference from this script to the one you shall code up with mad skills in the future, and understand why this application ended up like this.

Good Luck Future Member ;)
Do Not Give Up!

Er1k

2012-02-11 03:30:08

From: xXTrollXx
I'm not picking a fight. I'm ending one that never started. I'm just going to make scripts, but not apply. I'll never be good enough. Sorry.


I was just saying that if you should think about what you're trying to achieve and whether you have the necessary skills and knowledge to achieve it. If not, invest some time to learn.

If you're going to give up on yourself so quickly, there's really nothing we can do to help you.

You have shown a good initiative by trying to script something - many leechers don't even bother doing that and have problems pressing buttons and updating colors. You're better than this. Yet you still got a lot to learn before you can prove yourself to be worthy of the members rank.

Set some reasonable goals and take your time to work it out. It's going to take you maybe a couple of months, depending on your learning curve. If I were you I would look at what I want to bot and learn whatever is needed to script that. At least you get some drive and incentives by doing so.

Vinyl Scratch

2012-02-11 14:03:52

Apparently, I'm not smart enough to know if I had enough skills to even get a script to work. I'll just help, and add scripts.

PatDuffy

2012-02-11 14:06:09

Enough with the pity-party….

At first, I was siding with you Troll, the initial comment towards you was unneeded…but you have lost my sympathy momentarily. People are trying to encourage you that it might take several tries to get in….yet you are continuing to wallow in self-pity because your name ins't going to turn yellow.

Enough, grow up. If at first you don't succeed try again.

Vinyl Scratch

2012-02-11 14:14:01

From: PatDuffy
Enough with the pity-party….

At first, I was siding with you Troll, the initial comment towards you was unneeded…but you have lost my sympathy momentarily. People are trying to encourage you that it might take several tries to get in….yet you are continuing to wallow in self-pity because your name isn't going to turn yellow.

Enough, grow up. If at first you don't succeed try again.





Alright.

Working on a script now, not going to apply…

YET. Sorry, I was just a little disappointed.

I'll apply when I Have Released AT LEAST 3 scripts. [With Anti-leech]


Sorry guys. I'll do better, I promise. Thanks for the support you guys gave me.

Hobbit

2012-02-23 12:40:25

The poll has closed and you didn't quite make it this time. Please take the suggestions made here and read some more in the tutorial section and improve your script. You may reapply in 4 weeks time.


Cheers
Hobbit