SRL Archive - Archive

bazzbarrett - SRL Member Application Form


BazzBarrett

2008-09-19 20:13:01

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

What is the meaning to life?


Where you Referred to SRL? If yes, by whom?
yes
Refered by Waddo

Programming Knowledge
Basic PHP, HTML and Javascript

Other Communitys
None

How Long have You Played Runescape
1.5 years

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

Waddo First got me into scar (I know him through RS) and i got hooked on the language its so easy to understand and script in. ive been scripting scar 3-4 months and a member of this forum all that time altough only posting when i was shareing my own material or helping others (or i fealt a strong earge to post) therefor alot of my posts are very useful and helpful.

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

over my time i had wrote:
1 tut:
How To Make A Game in SCAR!

2 games:
Pong The Game (Myfirst script)
and MazeGame With map editor

This is my seound script to do with Rs the first being ClaySoftner And Bucket Filler

And resantly while making the script below i created a function called FindTPA with easly creates a TPA from a TIntegerArray:
TPAFind! - Does a TPA's job in 1 LINE!
That function (witch i have asked to be included in the next include) is show in use below as how affective, fast and easly callable it is.

EDIT: Fixed Sloppy Multiplayer
///////////////////////////////////////////
// Bazzbarrett's Power Cutter! //
// //
// Please fill in Lines 25-35! //
// Will Power Chop: //
// Oak, Willow and Tree //
// //
///////////////////////////////////////////

program New;
{.include SRL/SRL/Misc/smart.scar}
{.include SRL/SRL.scar}
{.include SRL/SRL/Skill/WoodCutting.scar}

var
Trys, InvItems, T, xp :integer;
Colors :TIntegerArray;

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

Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].pin := '';
Players[0].Active := True;
Players[0].booleans[0] := True; //Is The ake in the first slot
Players[0].Strings[0] := 'Oak';// Oak, Willow or Tree! Remember to caps the First Letter! (TreeType)
Players[0].Integers[0] := 1000; //number of logs to cut
Players[0].Integers[1] := 0; //Leave blank
Players[0].Integers[2] := 0; // " "
Players[0].Integers[3] := 0; // " "

end;

procedure Setup;
begin
T := GetSystemTime;
SetupSRL;
SetAudioOff;
SetupWoodcutting;
DeclarePlayers;
LoginPlayer;
end;

procedure PlayerSetup;
begin
Retaliate(False);
SetAngle(True);
Players[currentplayer].Integers[2] := GetSkillLevel('woodcutting');
Wait(1000+random(500));
MakeCompass('N');
GameTab(4);
if Not FindAxe then
begin
Logout;
Players[currentplayer].Active := False;
end else
begin
if Not EquipAxe then
begin
if Not(Players[currentplayer].booleans[0])then
begin
ArrangeInv;
InvItems := InvCount;
end;
end;
end;
GameTab(4);
Case Players[currentplayer].Strings[0] of
'Oak':
Begin
Colors := [4884861, 4028525, 3175014];
xp := 37;
end;
'Willow':
begin
Colors := [2836539, 2240554, 2836539];
xp := 63;
end;
'Tree':
begin
Colors := [2911841, 2249802, 4623230];
xp := 15;
end;
end;
end;

procedure Proggy;
var
I :integer;
begin
Writeln('/-----------------------------------\');
Writeln('| BazzBarrett''s Oak Power Chopper!');
Writeln('| ');
Writeln('| Total Time Running: ' + inttostr((Getsystemtime-T)/60000) + ' Minuets!');
writeln('| And ' + inttostr(((Getsystemtime-T)/1000)-(((Getsystemtime-T)/60000)*60)) + ' Secounds!');
for I := 0 to Length(Players) - 1 do
begin
Writeln('|');
Writeln('| ' + Players[I].Name + ':');
Writeln('| Started at lvl '+inttostr(Players[I].Integers[2])+' and ended at lvl '+inttostr(Players[I].Integers[3]));
Writeln('| So We Gained ' + inttostr(Players[I].Integers[3]-Players[I].Integers[2]) + ' Levels!');
Writeln('| We Cut ' + IntToStr(Players[I].Integers[1]) + ' Logs!');
Writeln('| And Gained ' + Inttostr(Players[I].Integers[1]*Xp) + ' XP!');
end;
Writeln('| ');
Writeln('\-----------------------------------/');
end;

procedure Scriptterminate;
begin
proggy;
end;

function TPAFind(Var X, y :integer; colors :TIntegerArray; TheUpText :String):boolean;
//with special thank to Mastaraymond and ProphesyOfWolf For Helping largly with this function
var
CTS, Ic : Integer;
TPA: TPointArray;
ATPA: Array of TPointArray;
H, S, L, HueMod, SatMod, tolerance :extended;
midcolor: integer;
I,II : integer;
HSLColor : Array[1..3] of Extended;
HSL: Array[0..1] of Array[1..3] of Extended;
begin
//Work Out some values
For Ic:= 1 to 3 do
begin;
HSL[0][ic] := 255; //Max is 240?
end;
For Ic:= 0 to High(Colors) do
begin;
ColortoHSL(Colors[ic],HSLColor[1],HSLColor[2],HSLColor[3]);
For II:= 1 to 3 do
begin;
HSL[0][II] := MinE(HSLColor[II],HSL[0][II]);
HSL[1][II] := MaxE(HSLColor[II],HSL[1][II]);
end;
end;
end;
H := HSL[1][1] - HSL[0][1];
S := HSL[1][2] - HSL[0][2];
L := HSL[1][3] - HSL[0][3];
midcolor := HSLToColor((HSL[1][1] + HSL[0][1]) div 2,(HSL[1][2] + HSL[0][2]) div 2,(HSL[1][3] + HSL[0][3]) div 2);
HueMod := (H/L);
SatMod := (S/L);
tolerance := L;
//FIND the TPA!
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(Huemod, satmod );
FindColorsSpiralTolerance(MSCX, MSCY, TPA, MidColor, MSX1, MSY1, MSX2, MSY2, round(tolerance+0.5));
ColorToleranceSpeed(CTS);
ATPA := TPAToATPAEx(TPA, 15, 15);
For Ic := 0 to High(ATPA) do
begin
MiddleTPAEx(ATPA[i], x, y);
MMouse(x, y, 2, 2);
Wait(50);
If(IsUpTextMultiCustom([TheUpText])) then
begin
Result := True;
GetMousePos(x, y);
Break;
end;
end;
end;

procedure Checks;
var
I :integer;
begin
if not loggedin then exit;
for i := 1 to 8 do
begin
case I of
1: SolveNonTalkingRandoms;
2: Respond;
3: FindTalk;
4: FindDead;
6: if FindBox then SolveBox;
7: RC;
8: FindMod;
end;
end;

Disguise('['+inttostr(Players[currentplayer].Integers[1])+'/'+inttostr(Players[currentplayer].Integers[0])+'] Logs Cut!');
If FindFight then
begin
MakeCompass('N');
RunTo('S', True);
wait(20000+random(10000));
RunTo('N', True);
end;
if FindDead then
begin
Writeln('Dang! We died Going to Next player');
logout;
Players[currentplayer].Active := False;
end;
end;

procedure DropLogs;
var
I :integer;
begin
if not loggedin then exit;
Players[currentplayer].Integers[3] := GetSkillLevel('woodcutting');
if FindAxe then
begin
if EquipAxe then
begin
if Not InvFull then Exit;
DropAll;
Checks;
IncEx(Players[currentplayer].Integers[1], 28);
end else
begin
if Players[currentplayer].booleans[0] then
begin
for I := 2 to 28 do
begin
Dropitem(I);
Inc(Players[currentplayer].Integers[1]);
end;
end else
begin
for I := (InvItems+1) to 28 do
begin
DropItem(I);
Inc(Players[currentplayer].Integers[1]);
end;
//Checks;
end;
end;
end else
begin
Players[currentplayer].Active := False;
logout;
end;

end;

procedure ChopTrees;
var
T, x, y :integer;
begin
repeat
Checks;
if not loggedin then exit;
if TPAFind(x, y, Colors, Players[currentplayer].Strings[0]) then
begin
Trys := 0;
mouse(x, y, 3, 3, true);
Wait(1000+random(1000));
FindEnt(x, y, true);
Checks;
MarkTime(T);
repeat
wait(random(1000));
Checks;
FindEnt(x, y, true);
until( Not(IsUpTextMultiCustom([Players[currentplayer].Strings[0]])))or(TimeFromMark(T)>15000);
end else
begin
if trys > 5 then
begin
Logout;
Players[currentplayer].Active := False;
end;
inc(Trys);
wait(5000+random(5000));
writeln('Couldent Find Tree Randomly Walking');
RunTo('S', False);
Exit;
end;
MarkTime(T);
repeat
Wait(1000+random(2000));
until(IsUpTextMultiCustom([Players[currentplayer].Strings[0]]))or(TimeFromMark(T)>18000);
until(InvFull);
end;

begin
Setup;
repeat
PlayerSetup;
Repeat
ChopTrees;
DropLogs;
Until(Players[currentplayer].Integers[1] > Players[currentplayer].Integers[0])or( not loggedin)
Nextplayer(Players[currentplayer].Active);
until(AllPlayersInactive);
end.
——————————————————
<!– END TEMPLATE: formanswers –>

Waddo

2008-09-19 20:21:25

Yes IMHO you deserve this whether you can script for rs or not you are an excellent scripter.
script aint half bad either and you show you can create and develop your own advanced functions

Bobarkinator

2008-09-20 02:58:14

I'm going to give it a no.

In Setup; you call TerminateScript if it doesn't find the axe instead of NextPlayer(False)

In Checks; you Logout instead of switching players also, it seems the only place you use multiplayer is in the main loop, but even there you have it set up so that even if it completes your loads successfully it will switch players and make the person false.

On your case in the main loop, you should add Lowercase to the Players[CurrentPlayer].Strings[0] so the user can have capital or lowercase when declaring what tree to cut.

Your coding is very good in TPAFind except you seem to have forgotten to remove a For statement:
  For Ic:= 0 to 9 do
begin;
end;
You have good coding in that function, but the rest of your script doesn't match up to that.

BazzBarrett

2008-09-20 06:12:51

Thanks for the feedback i finised this script at half 12 last night after rushingly adding multiplayer in.. I spent alot of time on my TPAFind function its the pride of my work exstencive looking at guides and a small chunk is from some1else's script altough i forgot to credit them here they are very well credited in the actual thread

Naum

2008-09-20 06:34:56

Btw that TPA function ProphesyOfWolf sent me?? Did you credit him?

No.. Sorry.

BazzBarrett

2008-09-20 06:54:18

Btw that TPA function ProphesyOfWolf sent me?? Did you credit him?

No.. Sorry.


sorry ur right i Could Of Swore I credited him o well ive changed it now (Dont kill me =\) he is credibel for finding the HSl bit everything below that Is My own work and i also put the function 2 gether

Waddo

2008-09-20 08:36:17

his runescape scripting isnt his greatest thing it is his programming

Bobarkinator

2008-09-20 10:58:02

From: Waddo
his runescape scripting isnt his greatest thing it is his programming


And this is a Runescape scripting forum…

BazzBarrett

2008-09-20 17:18:23

From: Bobarkinator
And this is a Runescape scripting forum…


This is a scar scripting forum and i can offer so much more than just teh usual runescape scripts i can offer knowlage that isent the norm and more speculised stuf..

sirlaughsalot

2008-09-20 18:19:55

From: bazzbarrett
This is a scar scripting forum and i can offer so much more than just teh usual runescape scripts i can offer knowlage that isent the norm and more speculised stuf..


No its is a Runscape scripting forum, do we have any functions in SRL that are used outside of Runescape? But i think that having people who arent only in SRL scripting, can be a good thing, but idk i think ill obstain from this app, at least for now.

BazzBarrett

2008-09-20 19:06:29

From: sirlaughsalot
No its is a Runscape scripting forum, do we have any functions in SRL that are used outside of Runescape? But i think that having people who arent only in SRL scripting, can be a good thing, but idk i think ill obstain from this app, at least for now.


KK, fair dues. This Forum is very largly to do with runescape but theres so much more u can do with scar! and i whant 2 b able to try and get alot of people who dont see that what its capable of! (Actuly thats just inspired me! Im going to make a whole Include of Game related functions! abviously SRL is Rs only but i can still make it for any1 who whants to downlode it for there own plesure ;)) I would like SRL members to just basicaly have that little more so that people will lisen 2 me more. my specialitys are function makings, I love um =) Ive wrote god only knows how meny functions 90% have never appeared on this forum cuz i get the fealing no1 else realy whants them but the other 10% i have (some only in scripts ive made but can b adapted to most).

I feal i can give alot to this comunity and make all our lifes yet even easyer i just whant the prefect opatunity to do it (SRL Members :) )

Scaper

2008-09-20 19:34:44

i vote yes i have seen you areound the forums script is'nt to bad seen alot worse you use many of the features for SRL YES

Raskolnikov

2008-09-20 19:36:19

Overall that one function is great but, does one function make a script? If one function works and is awesome, but the others don't work and aren't very awesome and spectacular, does that make a script?

I'm holding vote leaning to no.

Good luck,
Cut em2 it

Edit:

i vote yes i have seen you areound the forums script is'nt to bad seen alot worse you use many of the features for SRL YES


Doesn't mean that it's SRL Member's quality…
Not saying that his isn't, but, he needs to show more of the things that members should know.

Dtms or bitmaps - not used
Map walking - not used
Standards - minor mishaps throughout the script
TPAs - yes very much yes

Cut em2 it

BazzBarrett

2008-09-20 19:43:26

From: Cut em2 it
Overall that one function is great but, does one function make a script? If one function works and is awesome, but the others don't work and aren't very awesome and spectacular, does that make a script?

I'm holding vote leaning to no.

Good luck,
Cut em2 it


Your right 1 doesent make a script but i made that script lituraly just for this submision because if i was gonna post 1 it needed to be compleatly up 2 date (made it 2 days ago) and acuretly working as of this moment i know it works I Plan on making a very good RS script very soon i just need a good origonal idear :) If you have any thoughs on somthing please post it.. also if anyone whants me to make them a fuction im more than happy to help just pm me =) Im trying to base this more on wat i could do if i got members i am advanced in SCAR and have a wide range of knowlage.. If anyone Whants help with a script aswell just pm me ill give u my msn (i dnt like having it public) and i will b more than happy to help any1..

My knowledge is grate and is gaining (whats left to learn) very fast :)

EDIT:
Edit:


Quote:
i vote yes i have seen you areound the forums script is'nt to bad seen alot worse you use many of the features for SRL YES

Doesn't mean that it's SRL Member's quality…
Not saying that his isn't, but, he needs to show more of the things that members should know.

Dtms or bitmaps - not used
Map walking - not used
Standards - minor mishaps throughout the script
TPAs - yes very much yes

Cut em2 it


Dtms or bitmaps - LOVE DTMS! not as keep on bitmaps (as in finding but im grate with canvas and drawing bitmaps)
Map walking - im not grate at this but my scripts dnt usual fail in this area..
Standards - i try my best to keep them up i make the ocasional mistake
TPAs - there my new favorit thing =)

an exsample for a dtm (dident take very long and compiled first time no errors :)):
program New;
{.include SRL/SRL.scar}
Var
ClayDTM, x, y : Integer;
begin
ClayDTM := DTMFromString('78DA636461646078C880021677C532F00369A' +
'00CC37F2060E404B21E31A00146B81A30EF2F907840400D239075' +
'17BF1A0000F70A5C');
If FindDtm(ClayDTM, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
If IsUpTextMultiCustom(['lay', 'Clay']) then
begin
mouse(x, y, 3, 3, False);
wait(50);
ChooseOption('All');
Wait(50);
end;
end;
FreeDTM(ClayDTM);
end.

Raskolnikov

2008-09-20 23:36:58

Okay, you know what they are, and how to use them, but the application should show how to implement them into scripts. I'm sure you do. And the mapwalking, I haven't a clue if you know what your doing so, I don't know. The standards are so minor they don't make a huge difference.

Yes from me if you show that you know mapwalking other than:

FindSymbol(x, y, 'show me you know something else');

Cut em2 it

BazzBarrett

2008-09-21 10:09:28

well

program New;
{.include SRL/SRL.scar}
var
x, y, DTM :integer;
AN:extended;
begin
setupsrl;
DTM := DTMFromString('78DA6374606260F06000032608C590E9AEC6C' +
'00AA41981F83F1030FA02655C70AB01014667A08C0DAA9AF2386D' +
'14350023120862');
IF finddtmrotated(DTM, x, y, MMX1, MMY1, MMX2, MMY2, 200, 300, 2, AN) then
begin
mouse(x, y, 2, 2, true);
end;
freedtm(dtm);
end.

Magiic

2008-09-21 11:03:25

You can script very nicely in my opinion. Your functions are expertly made, and you seem to have the personality srl members need. However, I see no instance of radial walk or radial road walk, which is almost necessary in most applications. But I believe that most people would be leaning towards yes,right now. I will not vote.

Raskolnikov

2008-09-21 17:06:07

Yes:

You know what your doing as you showed. My other reasons I showed above.

Cut em2 it

King of Knives

2008-09-21 18:12:49

I will vote yes without really having read the code.

You seem to have the correct mindset: Ready to give, share and help.
I believe in your attitude. And if you can script this after 4 months, I believe it would be a waste of talent to not let you into SRL Members.

Do your best and keep doing that.

-Knives

BazzBarrett

2008-09-22 19:31:28

qucik thing a quick proggy for teh script above..

/-----------------------------------\
| BazzBarrett's Oak Power Chopper!
|
| Total Time Running: 86 Minuets!
| And 25 Secounds!
|
| *******: //unsure on why it finished
| Started at lvl 61 and ended at lvl 61
| So We Gained 0 Levels!
| We Cut 540 Logs!
| And Gained 8100 XP!
|
| *********://internet died for 10secs -.-
| Started at lvl 28 and ended at lvl 29
| So We Gained 1 Levels!
| We Cut 27 Logs!
| And Gained 405 XP!
|
| ******://12:30 at night i ended it XD
| Started at lvl 10 and ended at lvl 10
| So We Gained 0 Levels!
| We Cut 27 Logs!
| And Gained 405 XP!
|
\-----------------------------------/

P1nky

2008-09-22 23:20:37

no, btw proggies dont really matter how well it ran and so on but just the quality of the script.
imo powerchopper = too easy..

walking is needed .

BazzBarrett

2008-09-24 18:06:19

From: ~~Joker~~
no, btw proggies dont really matter how well it ran and so on but just the quality of the script.
imo powerchopper = too easy..

walking is needed .


A good powerchopper is not too easy altough i will admit i rushed into this if u classed wat i posted as v1.0 id b on about v1.8 by now XD fixed 80% of the bugs and once ive got it pritty much flawless im going to release it publicly. after finishing this i have big plans! i wish to make a non-reflection tut runner (Im just waiting 2 c if there keeping the old tut island or they are still gonna use the new 1 once i know for sure ill b rite on it ;))

Magiic

2008-09-26 11:12:03

btw instead of setting the players activity to false just log them out and in the main loop set it to end if theyre logged out and then make it do NextPlayer(False) which sets the player to false

BazzBarrett

2008-09-26 15:24:00

From: sandos1234
btw instead of setting the players activity to false just log them out and in the main loop set it to end if theyre logged out and then make it do NextPlayer(False) which sets the player to false


umm tahts wat i did.. and no cuz if u set false even if its compleated its lodes it will go to False i change it acordingly through out the script. i cant quite see how your mehord is better?

Blumblebee

2008-09-26 15:46:29

I voted yes, the script isn't peticulairly amazing, but you bring alot to SRL, and i think that you'd be a great addition to the SRL members,

-Blumblebee

BazzBarrett

2008-09-26 15:51:11

From: blumblebee
I voted yes, the script isn't peticulairly amazing, but you bring alot to SRL, and i think that you'd be a great addition to the SRL members,

-Blumblebee


Thank you, i have a question though when does this end? and wat are the requirements to be entered into members?

Magiic

2008-09-26 18:12:01

blumblebee your not supposed to vote until two weeks after being a member i mean you can but like you should read the stickies lol

Blumblebee

2008-09-26 19:16:42

From: sandos1234
blumblebee your not supposed to vote until two weeks after being a member i mean you can but like you should read the stickies lol


oh haha didn't read, sorry :P. I'll refrain from voting from now on.

Laur€ns

2008-09-27 10:34:56

Seems like you are in! Congratulations :)
Welcome to the 1337 zone :p

BazzBarrett

2008-09-27 15:14:29

kool cant wait to start helping ;) so when do i become member :p

Laur€ns

2008-09-27 16:05:30

Now wait 'til the admins awake :)

Magiic

2008-09-28 15:49:41

pm an admin nielsie is the main one

NiCbaZ

2008-09-28 19:29:45

From: bazzbarrett
kool cant wait to start helping ;) so when do i become member :p


Who says your going 2 be a member on my first apply i got 10 no, 16 yes and i got declined :p

TravisV10

2008-09-28 20:03:04

From: sandos1234
pm an admin nielsie is the main one


Yeah. Make sure you dont pm Hobbit ;)

Illkillutill

2008-09-29 00:09:49

Lol, I think it would also be a waste of talent to not let you in to Members. You know what you are doing and have a good point of view. You want to help others learn and learn some more for yourself along the way. I would have voted yes, but poll is over. :(

Yes from me, for what it counts. Gl.

nielsie95

2008-09-29 03:03:22

It's a close call, but when I look at your other scripts, I think you know what you're doing (work on your standards though).

So: welcome, sir!