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:
Enjoy, feed back is really apprecaited :)
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 :)