SRL Archive - Test corner

The SRL Member??


BobboHobbo

2008-02-14 06:27:38

SRL Members Application Tool!

Got a name, now. I been testing alot lately went through members application forum and took almost every application script on the page into the script, looks really good, everyone who recived members by alot was over 75+ mark on script, people who were close to making it in 50-60. So i guess its preety accurate atm.

I updated it aswell making the marks more fair…

So here it is:
Ill be releasing soon to Junior Members just need more feedback on fixes!, thanks for everyone who helped i fixed mostly everything mentioned.

Script Here:

program New;

var
frmDesign: TForm;
LabelTop: TLabel;
Label1: TLabel;
MarkingL: TLabel;
AnswerL: TLabel;
PercentL: TLabel;
ScriptAreaE: TEdit;
GenerateB: TButton;
EndMainForm: boolean;
Memo1: TMemo;
var
Scripttext: string;
I: integer;

// When the form is closed, this code will be executed.

procedure MainFormOnClose(Sender: TObject; var Action: TCloseAction);
begin
if (not (frmDesign.ModalResult = 1)) then
EndMainForm := True;
end;


function CountTextInString(S, T: string; Worth: integer; plusminus: boolean): Integer; //By Garret. Modded by me :)
var
N, tt: Integer;
begin
repeat
TT := TT + 1;
if PlusMinus then
begin
I := I + worth;
end else
I := I - worth;
N := Pos(LowerCase(T), LowerCase(S));
Delete(S, N, Length(T));
if TT = 3 then
begin
break;
end;
until (N = 0);
I := I - 1;

end;

function Information(Word: string): boolean;
begin
if Pos(Word, LowerCase(ScriptText)) > 0 then
begin
Result := true;
end;
end;

procedure Generate;
begin
ScriptText := Memo1.Text;
if Information('exit;') then
begin
CountTextInString(LowerCase(ScriptText), 'exit;', 1, true)
end;

if Information('radial') then
begin
CountTextInString(LowerCase(ScriptText), 'radial', 9, true)
end;


if Information('linearwalk') then
begin
CountTextInString(LowerCase(ScriptText), 'linear', 6, true)
end;

if Information('bitmapfromstring') then
begin
CountTextInString(LowerCase(ScriptText), 'bitmapfromstring', 6, true)
end;

if Information('dtmfromstring') then
begin
CountTextInString(LowerCase(ScriptText), 'dtmfromstring', 6, true)
end;

if Information('tform') then
begin
CountTextInString(LowerCase(ScriptText), 'tform', 3, true)
end;

if Information('fflag(') then
begin
CountTextInString(LowerCase(ScriptText), 'fflag(', 2, true)
end;

if Information('Players[0]') and Information('nextplayer(') then
begin
CountTextInString(LowerCase(ScriptText), 'players[0]', 8, true)
end;

if Information('findfastrandoms') then
begin
CountTextInString(LowerCase(ScriptText), 'findfastrandoms', 25, false)
end;

if Information('{.include SRL\SRL.scar}') then
begin
CountTextInString(LowerCase(ScriptText), '{.include srl\srl.scar}', 5, true)
end;

if Information('if not loggedin then exit;') or Information('if(not(Loggedin))then exit') then
begin
CountTextInString(LowerCase(ScriptText), 'if not loggedin then exit', 5, true)
CountTextInString(LowerCase(ScriptText), 'if(not(Loggedin))then exit', 5, true)
end;

if Information('freedtm') then
begin
CountTextInString(LowerCase(ScriptText), 'freedtm', 5, true)
end;

if Information('clickmouse') then
begin
CountTextInString(LowerCase(ScriptText), 'clickmouse', 25, false)
end;

if Information('tdtmpointdef') then
begin
CountTextInString(LowerCase(ScriptText), 'tdtmpointdef', 5, true)
end;
AnswerL.Caption := IntToStr(I);
Writeln('Result = ' + IntToStr(I));
if I < 50 then
begin
writeln('Sorry, Your script isnt SRL-Members Worthy.');
writeln('Add Walking (RRW),DTMs, DDTM, Forms,Multiplayer');
writeln('Or ethier UPDATE YOUR SCRIPT! No ClickMouse');
writeln('and FindFastRandoms PLEASE.');
end else
Writeln('Apply for members, unless you have cheated this');
end;

procedure HandleButtons(Sender: TObject);
begin
case Sender of

generateB: begin
Generate;
frmDesign.ModalResult := 1
end;
end;
end;
// This form was parsed using: DFM Form Parser v.25 by Ron.

procedure MainForm;
var
TimeMainForm: Integer;
begin
TimeMainForm := GetSystemTime;
frmDesign := CreateForm;
frmDesign.Left := 250;
frmDesign.Top := 114;
frmDesign.Width := 741;
frmDesign.Height := 480;
frmDesign.Caption := 'frmDesign';
frmDesign.Color := clBtnFace;
frmDesign.Font.Color := clWindowText;
frmDesign.Font.Height := -11;
frmDesign.Font.Name := 'MS Sans Serif';
frmDesign.Font.Style := [];
frmDesign.Visible := False;
frmDesign.PixelsPerInch := 96;
LabelTop := TLabel.Create(frmDesign);
LabelTop.Parent := frmDesign;
LabelTop.Left := 32;
LabelTop.Top := 32;
LabelTop.Width := 543;
LabelTop.Height := 37;
LabelTop.Caption := 'SRL-Forums SRL Member Application';
LabelTop.Font.Color := clWindowText;
LabelTop.Font.Height := -33;
LabelTop.Font.Name := 'MS Sans Serif';
LabelTop.Font.Style := [];
LabelTop.ParentFont := False;
MarkingL := TLabel.Create(frmDesign);
MarkingL.Parent := frmDesign;
MarkingL.Left := 424;
MarkingL.Top := 424;
MarkingL.Width := 73;
MarkingL.Height := 13;
MarkingL.Caption := 'Score:';
AnswerL := TLabel.Create(frmDesign);
AnswerL.Parent := frmDesign;
AnswerL.Left := 505;
AnswerL.Top := 424;
AnswerL.Width := 16;
AnswerL.Height := 13;
AnswerL.Caption := '0';
PercentL := TLabel.Create(frmDesign);
PercentL.Parent := frmDesign;
PercentL.Left := 520;
PercentL.Top := 424;
PercentL.Width := 8;
PercentL.Height := 13;
PercentL.Caption := '%';

Memo1 := TMemo.Create(frmDesign);
Memo1.Parent := frmDesign;
Memo1.Left := 32;
Memo1.Top := 128;
Memo1.Width := 657;
Memo1.Height := 273;
Memo1.Lines.Add('Script Here!');
Memo1.ScrollBars := ssVertical;
Memo1.TabOrder := 9;
GenerateB := TButton.Create(frmDesign);
GenerateB.Parent := frmDesign;
GenerateB.Left := 536;
GenerateB.Top := 80;
GenerateB.Width := 145;
GenerateB.Height := 41;
GenerateB.Caption := 'Generate Mark';
GenerateB.TabOrder := 9;
generateB.OnClick := @HandleButtons;
WriteLn('MainForm compiled in ' + IntToStr(GetSystemTime - TimeMainForm) + ' milliseconds!');
end;

procedure SafeMainForm;
var
V: TVariantArray;
begin
SetArrayLength(V, 0);
ThreadSafeCall('MainForm', V);
end;

procedure ShowMainFormModal;
begin
frmDesign.ShowModal;
end;

procedure SafeShowMainFormModal;
var
V: TVariantArray;
begin
SetArrayLength(V, 0);
ThreadSafeCall('ShowMainFormModal', V);
end;

procedure MainMainForm;
begin
try
SafeMainForm;
SafeShowMainFormModal;
finally
FreeForm(frmDesign);
except
WriteLn('An error seems to have occurred in: MainForm');
end;
end;

begin
ClearDebug;
MainMainForm;
if (EndMainForm) then
TerminateScript;
end.

Enjoy, feed back is really apprecaited :)

ducels

2008-02-14 06:39:37

That script is pretty cool. My air crafter scored an 83 and the script I applied to members with scored a 55.

This could be released as a guideline to the junior members considering applying. I think it'd be helpful to them to know approximately how good their script has to be.

PriSoner

2008-02-14 06:53:13

Lol.. My current main script scores 46 and the script that got me into members with a 19:3 vote only scored 27.. :duh:

I like the idea but unfortunately I don't think it's practicle as there are too many variables.. inovation is subjective and you just can't program for every possible scenario..

The other problem is that people become dependant upon a score and try and game the program rather than program to improve..

Psychor

2008-02-14 06:55:39

First script i ever wrote was a earth runecrafter, it scored -82, lol

Dan Cardin

2008-02-14 07:03:26

i tried my old smleter and smither and
MainForm compiled in 0 milliseconds!
Result = -77
Sorry, Your script isnt SRL-Members Worthy.
Successfully executed

:(

and when u count lines do u get rid of comments and empty lines?

PriSoner

2008-02-14 07:18:31

Interestingly.. your script for testing worthyness itself scores an incredibly low:
MainForm compiled in 0 milliseconds!
Result = -337
Sorry, Your script isnt SRL-Members Worthy.
Successfully executed
:redface:

bullzeye95

2008-02-14 07:37:11

I saw three things:
1. You have this
  if Information('findfastrandoms') then
begin
CountTextInString(LowerCase(ScriptText), 'findfastrandoms', 50, false)
end;
FindFastRandoms isn't used anymore
EDIT: Sorry, didn't see the false at the end :p

2. You have this
  if Information('if not loggedin then exit;') then
begin
CountTextInString(LowerCase(ScriptText), 'if not loggedin then exit;', 5, true)
end;
I do "if(not(Loggedin))then exit", so I don't get credit.

3. You have this
  if Information('//radialwalk') then
begin
CountTextInString(LowerCase(ScriptText), '//radialwalk', 50, false)
end;
What is that??

n3ss3s

2008-02-14 07:50:16

Okay, no offense bh, good effort there, but, everyone knows that you can shovel stuff to the right in SCAR so that it can't be seen too easily?

Well, someone could just put a shitload of TDTMPointDefs etc, am I correct?

A system that would check if there is a begin or variables declared after the function name or something would be nice :)

Dumpin

2008-02-14 10:30:01

masterkill's pcers scors -69 wtf lol. a helloworld ap scores higher :o

gerauchert

2008-02-14 11:56:20

I dont think it should judge you on "worthiness" it should just pump out raw stats of the script…to help people actually SEE what they have in there instead of guessing with a quick scan.

Have it print out how many times it uses each thing ;)

Other than that nice work

Pure1993

2008-02-14 12:20:18

YO! I LOVE THIS! :D
I Got a 52 on my members app script, which had a minor lead of 2 yeses. TAKE THAT :p
Also I got a 55 on my stupid-not-finished hybrid script, so I would approve of this. :D

Naum

2008-02-14 14:00:24

Lol i got 55% with my guild miner pay script.
Thats the same as the VYC?? Might need to tweak your script a little bit.

Dan Cardin

2008-02-14 14:14:00

From: n3ss3s
Okay, no offense bh, good effort there, but, everyone knows that you can shovel stuff to the right in SCAR so that it can't be seen too easily?

Well, someone could just put a shitload of TDTMPointDefs etc, am I correct?

A system that would check if there is a begin or variables declared after the function name or something would be nice :)


if u mean what i think u mean then…this isnt to replace applying, its just to tell u if your script is good enough for your to try applying. So putting stuff way to the right wouldnt help you at all.

Yea this definately needs some fixes but its a good idea and could cut down on some crap apps

BobboHobbo

2008-02-14 15:54:17

From: bullzeye95
I saw three things:
1. You have this
  if Information('findfastrandoms') then
begin
CountTextInString(LowerCase(ScriptText), 'findfastrandoms', 50, false)
end;
FindFastRandoms isn't used anymore
EDIT: Sorry, didn't see the false at the end :p

2. You have this
  if Information('if not loggedin then exit;') then
begin
CountTextInString(LowerCase(ScriptText), 'if not loggedin then exit;', 5, true)
end;
I do "if(not(Loggedin))then exit", so I don't get credit.

3. You have this
  if Information('//radialwalk') then
begin
CountTextInString(LowerCase(ScriptText), '//radialwalk', 50, false)
end;
What is that??


See the false at the end, that gives you minus :)

BobboHobbo

2008-02-14 15:55:43

From: BobboHobbo
See the false at the end, that gives you minus :)


From: n3ss3s
Okay, no offense bh, good effort there, but, everyone knows that you can shovel stuff to the right in SCAR so that it can't be seen too easily?

Well, someone could just put a shitload of TDTMPointDefs etc, am I correct?

A system that would check if there is a begin or variables declared after the function name or something would be nice :)


No, i made 3 the max amount of the same procedure max.

Sir R. M8gic1an

2008-02-14 16:25:39

lol, the script that i applied with:


Result = -121
Sorry, Your script isnt SRL-Members Worthy.
Successfully executed

and i got 19 - 1 on votes :p

~RM

bullzeye95

2008-02-14 16:33:59

From: BobboHobbo
See the false at the end, that gives you minus :)


I know that. Which comment were you referring to?

R0b0t1

2008-02-14 21:40:39

Its already been proven that you can't use a computer to do a task where adaptability is needed.


Say I come up with an ingenious idea that does not need as many 'required' procedures, the script would not know this, and the applicant might be discouraged if they use this.

Garrett

2008-02-14 23:46:24

my script test…

For a script that I didn't get into SRL Members with: -110
The script that I did get into members with: -107
That is because they aren't updated…

For my current script: 74

BobboHobbo

2008-02-15 00:26:50

Well look, if you use a script that is updated and doesnt have findfastrandoms, then you should get a preety high score. Ill try umm, wizzy's ess miner see what that gets…. So……….. Update the scripts you are using and ill take the minusing out a bit, its a bit much.

Any other SRL Member worthy things that could get you in? Post em :)

EDIT** This is only a rough suggestion for an applier to see if there script is good enough, its not meant to be 100% accurate, its like a mini guide for junior members.. Just a help tool.

Its mainly for those annoying noobs who apply with shit ass scripts like writeln('hello'); auto talkers, etc..

N3SS!!!!!
I need some TPA fucntions which are good, your the TPA god so help me out :)

n3ss3s

2008-02-15 07:45:47

So you want to see if someone has copied a function of mine?

Some words you may want anyway -

TPointArray

Array of TPoint

Array of TPointArray

GetColorToleranceSpeed

ColorToleranceSpeed(

and then you might want to grab some function names from WizzyPlugin.scar

footballjds

2008-02-15 07:50:41

MainForm compiled in 0 milliseconds!
Result = 99
Apply for members, unless you have cheated this
Successfully executed

thats for my longbow stringer ;)!!! woot!

my ultimate fletcher got a 55?? lol! and its been used more and loved more by others :rolleyes:

king vash

2008-02-17 00:30:37

I got a 98 on my currently released version and 92 on the one i applied with
I was 11-6 accepted

richk1693

2008-02-17 10:31:29

Narcles auto fighter isnt SRL members material. Variable yew cutter is only 69%. Id have to call this thing a tidbit harsh.

Dan Cardin

2008-02-17 10:39:19

does it give extra points for forms? cuz forms make everything better :)

EDIT: and instead of having it add a bunch of points for various things would it be possible to make it score things out of like 200 and every thing is a certain percentage of that 100? then u can get bonus points for each extra thing. Then u wouldnt have to edit anything if u needed to add something, you'd just add that into the percentage then ur done. And it makes sense to me but im wierd sometimes when explaining things so… :p

FrÕzÑ_§ÕµL

2008-02-18 15:11:37

Nice work. Still I managed to get a mark of 20 with writing things like
RadialRoadWalk
DTMRotated
FindColorsSPiralTolerance

I just put those and a couple of other things in, totally not scriptable wouldn't compile or anything, no semicolons or even parameters… so theres no way it can be used to accept members, but I would like to see what my script gets lol. Someone should do it on a wizzy script too :p

I agree with gerachaut (sorry bout spelling of name, it won't copy it :p the dude with an orange for his avatr) that it should print out stats, this can then be used when someone applies to give the members voting a heads up on what the script contains ;)

Dumpin

2008-02-23 02:47:40

I think this worked a little since we get much less applys! :D

Killerdou

2008-02-25 10:53:19


Result = 0
Sorry, Your script isnt SRL-Members Worthy.
Add Walking (RRW),DTMs, DDTM, Forms,Multiplayer
Or ethier UPDATE YOUR SCRIPT! No ClickMouse
and FindFastRandoms PLEASE.
LOL i got 7 yes and 1 no, all admins that voted except for solarwind lolz

Pure1993

2008-03-02 09:04:19

I just used it again to see what my mining guild miner gets (it is not finished yet, only the walking, which are 1024 lines of code :eek:), and it got a 76, even though it wouldn't even compile (has some spelling mistakes I still need to iron ou). But i guess, it is pretty good, using all walking techniques, and my own mouse, wait and autocoloring, functions. :D
Hmm… I wonder what it will get once I finish it. :)