SRL Archive - Archive

insanomano - SRL Member Application Form


insanomano

2008-06-29 16:18:59

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

What is the meaning to life?


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


Programming Knowledge
HTML

Other Communitys
none

How Long have You Played Runescape
over 2 years

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

I am 14 i enjoy programming and pushing myself to the limit, I am not amazing at it but I like it and defenitely can learn more, I can grasp the concept of new things to learn and I am open-minded and trying my best to learn programming languages as fast as I can!

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

                                               {********************************************
** Insanomano's Chicken Killer V 1.0 **
********************************************
** Start your players logged out or in at **
** a chicken coop with a weapon and **
** nothing in your inventory. **
********************************************
** -FEATURES **
** Anti-Ban **
** Anti-Randoms **
** S.M.A.R.T **
** Multi-Player **
********************************************
** ENJOY. **
********************************************}



program ChickenKiller;
{.include SRL/SRL/Misc/Smart.scar}
{.include SRL/SRL.scar}

var
x,y,bones: integer;

const
SmartWorld= 39; //set this to world you wanna log in on.
LampLevel= 'Prayer'; //Set the skill you want a lamp to do.
BonesToBury= 50; // Set how many bones you want to bury

procedure DeclarePlayers;
begin

HowManyPlayers:= 5; // How many players are you using
CurrentPlayer:= 0; // Don't touch this.
NumberOfPlayers(HowManyPlayers); // Don't touch this.


Players[0].Name := 'username'; // Username.
Players[0].Pass := 'password'; // Password.
Players[0].Nick := 'ser'; // 2-4 letters of Username (that are not capital letters or numbers).
Players[0].Active := True; // Don't touch this.


Players[1].Name := '';
Players[1].Pass := '';
Players[1].Nick := '';
Players[1].Active := False;


Players[2].Name := '';
Players[2].Pass := '';
Players[2].Nick := '';
Players[2].Active := False;


Players[3].Name := '';
Players[3].Pass := '';
Players[3].Nick := '';
Players[3].Active := False;


Players[4].Name := '';
Players[4].Pass := '';
Players[4].Nick := '';
Players[4].Active := False;
end;

function InFight: Boolean;
var
x, y : Integer;
begin
Result := (FindColor(x, y, 65280, 230, 130, 280, 180) or FindColor(x, y, 255,
230, 130, 280, 180))
end;

procedure AntiBan;
begin
if not LoggedIn then Exit;
case Random(30) of
1: RandomRClick;
2: DoEmote(400 +Random(90));
3: BoredHuman;
end;
end;

Procedure AntiRandoms;
begin
FindNormalRandoms;
FindLamp((LampLevel));
SolveNonTalkingRandoms;
end;

Procedure FeatherGrabber;
begin
if(FindColorTolerance(x,y,402948,MSX1, MSY1, MSX2, MSY2,15)) then
begin
Mouse(x,y,1,1,false);
ChooseOption('eather');
end;
end;

Procedure BoneGrabber;
begin
if(FindColorTolerance(x,y,7632274,MSX1, MSY1, MSX2, MSY2,15)) then
begin
Mouse(x,y,1,1,false);
ChooseOption('ones');
end;
end;

Procedure BoneBury;
Begin
if(FindColorSpiralTolerance(x,y,7303288,MIX1, MIY1, MIX2, MIY2,15)) then
MMouse(x,y,1,1);
if (IsUpText('ury')) then
wait(3000+random(300));
Mouse(x,y,1,1,true);
Bones:= bones + 1;
end;

Procedure Proggy;
begin
WriteLn('------------THE CHICKEN KILLER------------');
WriteLn('--Buried ' + IntToStr(Bones) + ' Bones');
WriteLn('--Ran for ' + TimeRunning + '');
WriteLn('------------------------------------------');
begin
if(Bones >= (BonesToBury)) then
NextPlayer(true);
end
end;

Procedure Signature;
begin
writeln('MADE BY-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=');
wait(300)
writeln(' _______ _ _ _____ ___ _ _ ______ _ _ ___ _ _ ______ ');
wait(300)
writeln('|__ __|| \ | || ____| / _ \ | \ | || __ || \ / | / _ \ | \ | || __ |');
wait(300)
writeln(' | | | \| || |___ / |_| \ | \| || | | || \/ | / |_| \ | \| || | | |');
wait(300)
writeln(' | | | . ` ||___ || ___ || . ` || | | || || ___ || . ` || | | |');
wait(300)
writeln(' __| |__ | |\ | ___| || | | || |\ || |__| || |\/| || | | || |\ || |__| |');
wait(300)
writeln('|_______||_| \_||_____||_| |_||_| \_||______||_| |_||_| |_||_| \_||______|');
wait(300)
writeln('-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-');
wait(300)
end;

Procedure ChickenFrier;
begin
repeat
AntiBan;
if(FindColorTolerance(x,y,857707,MSX1, MSY1, MSX2, MSY2,15)) then //White chicken
Mouse(x,y,1,1,false);
ChooseOption('ttack');
AntiRandoms;
wait(3000+random(400))
FeatherGrabber;
BoneGrabber;
until(InvFull)
repeat
if(FindColorTolerance(x,y,923763,MSX1, MSY1, MSX2, MSY2,15)) then //Brown chicken
Mouse(x,y,1,1,false);
ChooseOption('ttack');
AntiRandoms;
wait(3000+random(400))
FeatherGrabber;
BoneGrabber;
until(InvFull)
BoneBury;
end;

begin
SmartSetUpEx(SmartWorld,False, True);
While Not (SmartReady) Do
Wait(100);
SetTargetDC(SmartGetDC);
If Not (LoggedIn) Then
Wait(100);
SetupSRL;
DeclarePlayers;
Signature;
wait(4000);
ClearDebug;
LoginPlayer;
repeat
SetAngle(true);
MakeCompass('N');
SetRun(True);
ChickenFrier;
Proggy;
until(false)
end.

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

Scaper

2008-06-29 17:45:59

sorry no from me just to simple imo

input
  • BADDDDD standards
  • use FindObjectTPA instaid of FindColorSpiralTolerance
  • SRLRandomsReport; should be called AFTER the ReportVars
  • DTM's
work on that!

Lee Lok Hin

2008-06-30 00:59:02

@Scaper

http://www.villavu.com/forum/showthread.php?t=24420

And @The guy who ried.

Sorry, but it's goign to be a no from me too. Try adding dtms and bitmaps in there, and it would help your chances. Try again in 2 weeks.

And. Relying on colorspiraltolerance too much is not really fun, since the brown chicken's colors and the ground is nearly the same.

FindNormalRandoms;
Solves all randoms including the ones you have in that procedure. But that findlamp might be usefull

You sure that findfight is yours? I think I saw it in ForeFeathers.

There's no multiplayer too, so that huge Declareplayers is redundant. Multiplayer is a huge bonus when applying, add that in when you apply next time.

MasterKill

2008-06-30 01:55:03

LOL @ scaper123, you stole my words :p

insanomano:
sorry, a no, not good enough yet :( Fail save your actions and try to prevent missclicks :)

What factors do you need:

  • DTMs / DDTMs
  • Decent complex working script.
  • FailSafes
  • MultiPlayer
  • Break out of potential endless loops
  • Standards! Required to get people read your script.
  • RadialWalk / DDTM Walking
if you allready have some points don't mind them :)


How do we judge it?

looking at the code, standaards. and whe imagen if it's working yes or no.


How many lines of code do you need

I would say 300+.
Make sure you got fail saves for evry possible option that could be going wrong.


well….

I hope this helped ya. good luck scripting!

BobboHobbo

2008-06-30 03:41:42

Yep, i think M4st3rK1ll coverd it :)

Daniel

2008-06-30 03:49:10

From: BobboHobbo
Yep, i think M4st3rK1ll coverd it :)


Yup. He covers everything! I betcha he just copies and pastes that into almost every app :p

MasterKill

2008-06-30 04:03:11

[QUOTE=Dan's The Man;423253]Yup. He covers everything! I betcha he just copies and pastes that into [i]almost[/i] every app :p[/QUOTE]

Dude, I made a scar script for it. But this is the information many apliers need. They won't reed the sticky's anyway, that's why I'm posting it :)

Scaper

2008-06-30 04:12:42

From: M4st3rK1ll
LOL @ scaper123, you stole my words :p

insanomano:
sorry, a no, not good enough yet :( Fail save your actions and try to prevent missclicks :)

What factors do you need:
  • DTMs / DDTMs
  • Decent complex working script.
  • FailSafes
  • MultiPlayer
  • Break out of potential endless loops
  • Standards! Required to get people read your script.
  • RadialWalk / DDTM Walking
if you allready have some points don't mind them :)


How do we judge it?

looking at the code, standaards. and whe imagen if it's working yes or no.


How many lines of code do you need

I would say 300+.
Make sure you got fail saves for evry possible option that could be going wrong.


well….

I hope this helped ya. good luck scripting!


:p

dont mind do ya lolz

Markus

2008-06-30 07:46:36

Good start! Unfortunately not good enough yet but it's a good start :)
Because I'm in a very good mood I'll help you a bit with the requirments:

  • DTM/DDTM
  • You could for example modify the bone burying to use a DTM for item recognition. Tutorial: http://www.villavu.com/forum/showthread.php?t=564
  • Multiplayer
  • It's very easy to add support for multiple players, and it'll boost the usuability of your script :) Tutorial: http://www.villavu.com/forum/showthread.php?t=12858?p=149961
  • Failsafes
  • If you can't find the chickens for some time, you might wish to logout, or teleport to lumby and walk back (see walking below). I don't know a good tut about this one, but maybe there are a few in the tut island.
  • Break out of potential infinite loops
  • Basically the above, good example of what NOT to do is something like this:

    repeat
    CenterOfChickenPen;
    until FindChicken;
    or something like that. Why not? Because: 1. You might be stuck in a random 2. The user is a noob and started the script at a different place than the chickenpen, so there are no chickens and it'll keep looking for them.
  • Standards
  • This, or code-indenting as most people in other languages call it, is basically indenting your code right so it looks good, this will boost the readability of your script, and makes it easier to change it for yourself. You did it right at some parts of the script, but try to indent the whole script :)
  • Radialwalk/DDTM walk: Tough one for a chickenkiller, but you can add a deathwalk (in the very rare event you die) or a do-homeport-then-walk-to-chickenpen walk :)
Good luck and have fun!

Raskolnikov

2008-07-01 01:49:16

From: scaper123
sorry no from me just to simple imo

input
  • BADDDDD standards
  • use FindObjectTPA instaid of FindColorSpiralTolerance
  • SRLRandomsReport; should be called AFTER the ReportVars
  • DTM's
work on that!


The standards aren't that bad. I've seen much worse. Still it's a no to simple for scaper's reasons.

Good luck

Starblaster100

2008-07-02 05:42:40

Sorry, its a no