SRL Archive - Archive

Feroc1ty - SRL Member Application


Feroc1ty

2009-07-03 08:14:17

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


Are you affilated in anyway with Jagex LTD?
No

Were you Referred to SRL?



What is your general programming knowledge?
Some javascript, some C++, some second life scripting language, some scripting language from a game called WarCraft, and some scar obviously.


Are you a member of any other communities?
No


Tell us about yourself…
From: Feroc1ty
Hello, I'm feroc1ty, my interests are to simply improve my knowledge of programming, and why not do so while giving myself an edge in a game I somewhat enjoy playing.



Please show us one (or multiple) of your scripts.
I started out a few days ago, but here is what I have so far.

{ Please note that I might have done some extra crap with the random functions, such as adding multiple
of them and adding them together, simply because I believe the random is seeded, and wanted to receive
more random results}

// Feroc1ty(text).scar
var keyboard, shiftboard: array [0..3] of string;
mistypeprobability:integer;

// Keyboard strings with correct locations
procedure SetupVars;
begin
keyboard[0] := '`1234567890-= '; shiftboard[0] := '~!@#$%^&*()_+ '
keyboard[1] := ' qwertyuiop[]\'; shiftboard[1] := ' QWERTYUIOP{}|'
keyboard[2] := ' asdfghjkl; '; shiftboard[2] := ' ASDFGHJKL:" '
keyboard[3] := ' zxcvbnm,./ '; shiftboard[3] := ' ZXCVBNM<>? '
end;

{
---> FINISH THIS FIRST BEFORE DOING ANYTHING RANDOM!! <---

F I N I S H T H I S ! ! !
}
function TypeLetter(character:string; mistake:boolean):boolean;
begin
if mistake then
begin
end;
end;

// Can't complete until TypeLetter() is finished.
procedure TypeText(text:string; mistakes:boolean);
begin
end;

// Feroc1ty.scar
{.include Feroc1ty(text).scar}

var height, width, mousex, mousey: integer;

procedure Feroc1ty;
begin
GetClientDimensions(width,height);
GetMousePos(mousex, mousey);
end;

// Not yet complete, might add some stuff to improve the "humanness" of the script
procedure MoveTo(x, y, speed, accuracy:integer);
var dist:integer;
angle:extended;
begin
repeat
angle := Arctan2(y - mousey, x - mousex) + Rand() - 0.5;
mousex := Round(mousex + (speed + Random(speed) + Random(speed) + Random(speed))/2 * Cos(angle));
mousey := Round(mousey + (speed + Random(speed) + Random(speed) + Random(speed))/2 * Sin(angle));
dist := Distance(x, y, mousex, mousey);
MoveMouse(mousex,mousey);
Wait(5);
until (dist < accuracy)
end;

procedure Click(left:boolean);
var i:integer;
begin
HoldMouse(mousex, mousey, left);
while i < 5 do
begin
Wait(10+Random(20));
i := i + 1;
end;
ReleaseMouse(mousex, mousey, left);
Wait(20+Random(40));
end;

// Needs text functions complete before completion!
function LogIn(name,pass:string):string;
var x,y:integer;
begin
x := Round(width * 0.50);
y := Round(height * 0.39);
MoveTo(x,y,5,5);
Click(true);
end;

function GetMouseX():integer;
begin
Result := mousex;
end;

function GetMouseY():integer;
begin
Result := mousey;
end;


// MyFirstMacro.scar
program New;
{.include Feroc1ty.scar}

// Client Variables
var offset: integer;

// Initialization Procedure
procedure Init;
begin
Feroc1ty;
end;


// Body of program
begin
Init;
LogIn('test','lol');
end.

ian.

2009-07-03 08:16:09

Nothing advanced, I like your attitude though. Holding my vote.

P1nky

2009-07-03 08:18:20

No sorry, your a new guy and i dont see TPA's/rrw/dtms/ddtms and i doubt this is for RS or is it?

NCDS

2009-07-03 08:27:42

Sorry but as this is SRL forums and you are applying for SRL members you must include and use SRL in your application script.

ZaSz

2009-07-03 08:34:55

This looks more advanced then http://www.villavu.com/forum/showthread.php?t=4637 tho ^_^

JAD

2009-07-03 08:37:28


procedure Click(left:boolean);
var i:integer;
begin
HoldMouse(mousex, mousey, left);
while i < 5 do
begin
Wait(10+Random(20));
i := i + 1;
end;
ReleaseMouse(mousex, mousey, left);
Wait(20+Random(40));
end;

Could be shortened using a for loop:


procedure Click(left:boolean);
var i:integer;
begin
HoldMouse(mousex, mousey, left);
for I := 1 to 5 do
Wait(10+Random(20));
ReleaseMouse(mousex, mousey, left);
Wait(20+Random(40));
end;


A lot of the stuff doesn't seem finished also. It takes hard work to obtain SRL members status, although it's nothing you can't handle. In most cases, you need to write a script using SRL for runescape (but hey, SKy Scripter didn't and he's not a dev!). This is a very good start and you seem to have a good grasp on basic SCAR concepts. A lot of the stuff you have written such as clicking the mouse has already been written in the SRL include for you to use. Try making something a little more complicated and applying again in a month.

Good luck!

Edit: @Zasz, that was a long time ago. Whocare is an awesome guy, and wrote a great tutorial that started me SCAR scripting. I got in with all yes's with a simple 330 line power miner (without TPA's!! :eek: ). It was a different time then, and it is unfair to compare this to that. Brain, Senrath, Baked0420, Da 0wner and many others have gotten in without even applying, so you could say that their applications were all worse then this too because they didn't even apply :p

Nava2

2009-07-03 09:25:37

Nope, no srl, no accomplishing a task.. its not really a real app.. :(

Markus

2009-07-03 12:36:44

Sorry, but your script has to be more complicated in order to get in, right now it's just way too simple.
Please try again in two weeks, and a suggestion: make something with RS that uses SRL, and shows a bit of objectfinding, walking etc. :)

The Claw

2009-07-05 12:15:45

I'm gonna vote yes, you use some semi-advanced maths (assuming you coded this yourself):

angle := Arctan2(y - mousey, x - mousex) + Rand() - 0.5;
mousex := Round(mousex + (speed + Random(speed) + Random(speed) + Random(speed))/2 * Cos(angle));
mousey := Round(mousey + (speed + Random(speed) + Random(speed) + Random(speed))/2 * Sin(angle));
dist := Distance(x, y, mousex, mousey);

Seems that you know how to script, you just didn't know about SRL? Do some reading up, alot of the stuff you made/are going to make are already made in SRL…but yeah looks like you've got some skillz.

Edit - wat, poll's closed…ah well.

ZephyrsFury

2009-07-05 12:26:52

From: the claw
edit - wat, poll's closed…ah well.


lol nub!