SRL Archive - Archive

2pacfan - SRL Member Application Form


2pacfan

2008-05-05 11:43:16

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

What is the meaning to life?


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


Programming Knowledge
Nope

Other Communitys


How Long have You Played Runescape
4 years

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



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

//Start at the Bank in Draynor
//This script will cut Willows and Bank them!!
//Start at the most south bank slot thats easiest way...
//This Script Has:2 antirandom procedures and failsafes in much procedures.
//START!!!!!!!!!!
Program KillWill;
{.include SRL/SRL/Misc/Smart.scar}
{.include SRL/SRL.scar}

const
SmartWorld = 155;//What world to load smart in
Signed = True; //False = unsigned, slower and for multiplayer
//True = signed, faster and for 1 player only

procedure DeclarePlayers;
begin
HowManyPlayers := 5;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := 'username';
Players[0].Pass := 'password';
Players[0].Nick := 'nickname';
Players[0].Active := True;//Player active or not??

Players[1].Name := 'Username';
Players[1].Pass := 'Password';
Players[1].Nick := 'Nickname';
Players[1].Active := True;//Player active or not??

Players[2].Name := 'Username';
Players[2].Pass := 'Password';
Players[2].Nick := 'Nickname';
Players[2].Active := True;//Player active or not??

Players[3].Name := 'Username';
Players[3].Pass := 'Password';
Players[3].Nick := 'Nickname';
Players[3].Active := True;//Player active or not??

Players[4].Name := 'Username';
Players[4].Pass := 'Password';
Players[4].Nick := 'Nickname';
Players[4].Active := True;//Player active or not??

//add more players if u need them...
end;

Procedure SetUpSMART;
Begin

Begin
WriteLn('Making S.M.A.R.T Ready');
SmartSetupEx(108, false, true);

Repeat
wait(100);
Until(SmartReady);

If (SmartReady) then
wait(1000+Random(2000));
WriteLn('Loaded S.M.A.R.T');
SetTargetDC(SmartGetDC);
Exit;
end;
end;

Procedure WalkToWill;
var
x,y:integer;
begin
if (FindSymbol(x, y, 'fish')) then
begin
wait(7500+300)
Mouse(x, y, 2, 2, true);
FFlag(0);
Writeln('Got to Willows');
end;
end;

Procedure KillWill;
var
x,y:integer;
Begin
Makecompass('N');
Setangle(True);
if findcolorspiral(x,y,1989456,MSX1,MSY1,MSX2,MSY2)Then
begin
isuptext('willow')
Writeln('Found willow')
Mouse(x,y,0,0,true)
Wait(7500+500)
End else
if findcolorspiral(x,y,2651752,MSX1,MSY1,MSX2,MSY2)Then
begin
isuptext('willow')
Writeln('Found willow')
Mouse(x,y,0,0,true)
Wait(7500+333)
End else
if findcolorspiral(x,y,3367513,MSX1,MSY1,MSX2,MSY2)Then
begin
isuptext('willow')
Writeln('Found willow')
Mouse(x,y,0,0,true)
Wait(7500+750)
end else
if findcolorspiral(x,y,4219998,MSX1,MSY1,MSX2,MSY2)Then
begin
isuptext('willow')
Writeln('Found willow')
Mouse(x,y,0,0,true)
Wait(7500+750)
if findcolorspiral(x,y,4614242,MSX1,MSY1,MSX2,MSY2)Then
begin
isuptext('willow')
Writeln('Found willow')
Mouse(x,y,0,0,true)
Wait(7500+750)
End;
End;
End;

Procedure Randoms;
Begin
if not LoggedIn then exit;
FindTalk;
FindNormalRandoms;
solveChatRandom;
FindLamp ('Mining') //Uses lamp on that skill
DwarfItem;
If (FindFight)Then
Begin
MakeCompass ('N')
RunTo('E', True)
Wait(7000 +Random(3000));
RunTo('W', True);
End;
End;

procedure AntiBan;
begin
if not LoggedIn then exit;
case random(100) of //do a random number so it won't always perform the antiban
0: RandomRClick;
1: BoredHuman;
2: HoverSkill('Mining', False);
3: AlmostLogout;
end;
end;

Procedure BankWill;
var
x,y:integer;
Begin
if invfull
then
begin
if (FindSymbol(x, y, 'Bank')) then
begin
Mouse(x, y, 2, 2, true);
FFlag(0);
Writeln('In BANK');
Wait(10000+500)
if findcolorspiral(x,y,4937311,MSX1,MSY1,MSX2,MSY2)Then
begin
Writeln('We Found a Banker')
Mouse(x,y,0,0,false)
Chooseoption('quickly')
wait(2000+566)
if findcolor(x,y,1852749,MIX1,MIY1,MIX2,MIY2)Then
begin
Mouse(x,y,0,0,false)
Wait(1000+444)
Chooseoption('All')
Closebank;
end else
if findcolor(x,y,1786699,MIX1,MIY1,MIX2,MIY2)Then
begin
Mouse(x,y,0,0,false)
Wait(1500+444)
Chooseoption('All')
Closebank;
if (FindSymbol(x, y, 'fish')) then
begin
wait(7500+300)
Mouse(x, y, 2, 2, true);
FFlag(0);
Writeln('Walked Back To Willows');
End;
End;
End;
End;
End;
End;
procedure CheckEnt;
var
eex, eey : integer;
begin
if not LoggedIn then exit;
if FindColorTolerance(eex, eey, 388075, 85, 15, 115, 15, 30) then
begin
WriteLn('Ent Found! ~Advoiding~');
DoEmote(4);
wait(2500+Random(7000));
Inc(EntsAvoided);
Entsavoided:=entsavoided+1
SrlRandomsReport;
end;
end;

Procedure Talking;
Begin
if not LoggedIn then exit;
if inchat('hello') then begin typesend('hello 2 u 2')
if inchat('Wc lvl')then begin typesend('90:P')
if inchat('woodcutting')then begin typesend('90:P')
if inchat('woodcutting lvl')then begin typesend('99 lolz')
if inchat('n00b')then begin typesend('im not a noob..')
if inchat('ch00b')then begin typesend('you are a ch00bie')
if inchat('wanna fight me n00bie?')then begin typesend('no tnx not fighting a n00b:)')
End;
end;
end;
end;
end;
end;
end;
end;


procedure NoRandoms;
begin
if not LoggedIn then exit;
FindNormalRandoms;
if FindFight then
begin
RunAway('s', True, 1, (22000+Random(5000)));
NoRandoms;
end;
end;
begin
SetUpSmart;
SetupSRL;
DeclarePlayers;
ActivateClient;
if not loggedin then loginplayer;
Writeln('Logged your ass in')
Writeln('1 account logged in')
Wait(1000)
repeat
writeln( 'Killing Willows For:' + TimeRunning );
Randoms;
AntiBan;
CheckEnt;
Loginplayer;
Killwill;
BankWill;
Norandoms;
Until(false)
End.
End;
End.

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

the scar noob

2008-05-05 11:52:14

I only see basics, you still have a lot to learn.

Sorry, it's a no, check soem more tuts and read throught some scritps and we see you back ina month;)

Keep it up,

-Tsn.

Sir R. M8gic1an

2008-05-05 11:53:50

too simple in my opinion. i see you know about if else, which is already not bad but you could have made that much more efficient ways.

if not wouldve been better. IsUpText needs to be used like

if IsUpText('') then
begin
...
end;


and this shows that you didn't test it well enough, because even if the text wasnt up it would click and it wouldnt be a tree.

seeing as you didn't put much effort into making sure the script is good i wont put much effort into judging it.

it's a no from me.

~RM

Killerdou

2008-05-05 11:54:20

It looks ok, but please work a bit on standards, and it could use SRL a bit more(findcolorspiral could be replaced with findobject etc) and please, less debugs, try and check out all the cool functions/procedures from srl, learn them a bit(the name + what they do/how to use) so you can concentrate on functions that are not in srl yet, you can script, but its not quite good enough for members in my opinion, so try to work on learning srl and i'm sure you can get in next time :)

Naum

2008-05-05 12:34:45

Its a no. Sorry Lack of functions and SRL procedures. And also you didn't credit…

Also: How did you manage to use my opening up SMART procedure without crediting!

Pure1993

2008-05-05 13:05:08

No, Here is why:
-Missing Standards
-The KillWill will never actually chop a tree, because it needs to move the mouse over it in order for the texts to appear, you just searched for the color.
-Basic Functions
-Bad use of SRL functions
-Functions used incorrectly or extra stuff with no effect, for example:

Wait(7500+750)
Why not just have "Wait(8250)", or is you want the 750 to be random, write "Wait(7500+random(750))"
So yeah, it's a no, but don't take it personally, go read those tuts, and then come back with a new script next month. And believe me, there have been LOTS of really stupid attempts to get in lately, and compared to those, you are doing great :)

P1nky

2008-05-05 13:06:53

standards are bad alot more but at school will take a good look lata NO though srry

Torrent of Flame

2008-05-05 14:00:55

No.

Everyone above said why ^^

P1nky

2008-05-05 14:18:53

btw ur way off here

Procedure KillWill;
var
x,y:integer;
Begin
Makecompass('N');
Setangle(True);
if findcolorspiral(x,y,1989456,MSX1,MSY1,MSX2,MSY2)Then
begin
isuptext('willow')
Writeln('Found willow')
Mouse(x,y,0,0,true)
Wait(7500+500)
End else
if findcolorspiral(x,y,2651752,MSX1,MSY1,MSX2,MSY2)Then
begin
isuptext('willow')
Writeln('Found willow')
Mouse(x,y,0,0,true)
Wait(7500+333)
End else
if findcolorspiral(x,y,3367513,MSX1,MSY1,MSX2,MSY2)Then
begin
isuptext('willow')
Writeln('Found willow')
Mouse(x,y,0,0,true)
Wait(7500+750)
end else
if findcolorspiral(x,y,4219998,MSX1,MSY1,MSX2,MSY2)Then
begin
isuptext('willow')
Writeln('Found willow')
Mouse(x,y,0,0,true)
Wait(7500+750)
if findcolorspiral(x,y,4614242,MSX1,MSY1,MSX2,MSY2)Then
begin
isuptext('willow')
Writeln('Found willow')
Mouse(x,y,0,0,true)
Wait(7500+750)
End;
End;
End;



why not:
begin
repeat
if findcolorspiral(balbalbalb) or
findcolorspiral(balbalbalb) or
findcolorspiral(balbalbalb) then
begin
isuptext('illo')// do part of the willow word!
Writeln('Found willow')
Mouse(x,y,0,0,true)
Wait(7500+random(750))// this is the way to do it

Naum

2008-05-05 14:28:01

Or make an array of Colours (English FTW)

Sir R. M8gic1an

2008-05-05 15:30:36

aiii pinky, you're about as good as him.

From: Pure

-The KillWill will never actually chop a tree, because it needs to move the mouse over it in order for the texts to appear, you just searched for the color.


actually it does move the mouse to the point where the color was found. the problem is it will click it no matter what it is.

i'd agree with Nauman.


var
TIA: TIntegerArray; //Array of Integer
i: integer;
begin
TIA:= [1989456, 2651752, 3367513, 4219998, 4614242]
for i:=0 to High(TIA) do
//i see you did not even use tolerance, well i'd say it's a must for most cases!
if not FindColorSpiralTolerance(x, y, TIA[i], MSX1, MSY1, MSX2, MSY2, 10) then
Continue //if it doesn't find the color it will just restart the loop from the next i.
else begin
//this is needed
MMouse(x, y, 0, 0);
if isuptext('illow') then
begin
Writeln('Found willow')
Mouse(x,y,0,0,true)
Wait(7500+750)
Exit;
end;
end;
end;
end;


and even better than that would be the use of TPA's, but i'll let you find your way to the tutorials.

~RM

Gu3st...

2008-05-05 16:47:42

No, to simple, not many srl functions, to short.

E: You should read some tutorials, like we said in ur other app, where u used movemouse, movemousemsooth, sendkeys etc…

WhoCares357

2008-05-05 17:37:51

Standards are very important in a script. I didn't even look at the rest of your script after seeing how messy it was. Read up some "Scripting Standards" tutorials in the Tutorial Island.

Iron Man

2008-05-05 17:59:38

No, people have said my reasons already.

Rune Hacker

2008-05-05 20:32:06

Yeah, it's got potential but it looks like you just quickly made it and didn't really read through it to make sure it was right. Proof read it, fix everything people said, add for fail safes for sure, lets say it didn't find the fishing symbol, then what? Please put a little bit work into this, but it's a good start. And why setup SMART when is looks like you don't use any of its functions?

Hobbit

2008-05-05 22:41:21

I hope the comments people have posted you will find useful. Please stick around and read some tuts ans I hope to see you re-apply in one month.

Cheers,
Hobbit.