HayHay89
2008-04-22 04:16:37
<!– BEGIN TEMPLATE: formanswers –>
hayhay89 - SRL Member Application Form
hayhay89
What is the meaning to life?
99.9% Scripting!!!!! and 0.1% School ha wat am i kidding 100% scripting!!
Where you Referred to SRL? If yes, by whom?
no
Programming Knowledge
Java
Other Communitys
None
How Long have You Played Runescape
4-6 years
Are you affilated in anyway with Jagex LTD?
No
—————————————————–
Please write down a paragraph about Yourself.
MY name is Hayhay89
Been trying to learn Scar for bout 2 months now and made this script
was pritty hard with ent finder and stuff
People who have helped me but i wrote allmost everthing my self
Zephrys and Timer helped me heaps mostly zephrys tho and Pvh And Ip-drowner
id hope to get in
things i no
-dtms/ddtms didnt use them tho
-radialwalk
-standards KInder
-the basics
-Multiplayer ( was a hard 1)
-Most things in general cant name everthing lol
well thanks
——————————————————
Please Post a Sample of your Work. Only SCAR Scripts Accepted
——————————————————
<!– END TEMPLATE: formanswers –>
hayhay89 - SRL Member Application Form
hayhay89
What is the meaning to life?
99.9% Scripting!!!!! and 0.1% School ha wat am i kidding 100% scripting!!
Where you Referred to SRL? If yes, by whom?
no
Programming Knowledge
Java
Other Communitys
None
How Long have You Played Runescape
4-6 years
Are you affilated in anyway with Jagex LTD?
No
—————————————————–
Please write down a paragraph about Yourself.
MY name is Hayhay89
Been trying to learn Scar for bout 2 months now and made this script
was pritty hard with ent finder and stuff
People who have helped me but i wrote allmost everthing my self
Zephrys and Timer helped me heaps mostly zephrys tho and Pvh And Ip-drowner
id hope to get in
things i no
-dtms/ddtms didnt use them tho
-radialwalk
-standards KInder
-the basics
-Multiplayer ( was a hard 1)
-Most things in general cant name everthing lol
well thanks
——————————————————
Please Post a Sample of your Work. Only SCAR Scripts Accepted
program Fallycutter;
{.Include SRL/SRL/Misc/Smart.Scar}
{.Include SRL/SRL.Scar}
var
X, Y, Oak, Banked, Antiban, Loads: integer;
Axe,Trys: integer;
const
Smartworld = 142;
Smartsigned = True; //is smart signed true for yes false for no
Loadz = 3; //how many loads to do before switching players
procedure DeclarePlayers;
begin
NumberOfPlayers(1);
Players[0].Name := 'klklk';
Players[0].Pass := 'hgdfgdf';
Players[0].Nick := 'gdfgdf'; // 3/4 of name.
Players[0].Loc := 'Bank';
Players[0].Active := True;
Players[0].Integers[2] := 0000; //Bank Pin.
end;
procedure WhileChopping; forward;
procedure Intro;
begin
ClearDebug;
WriteLn('Oak Fally Cutter/Banker');
WriteLn('Made And Created BY Hayhay89');
WriteLn('First Sscript For RS Woot');
WriteLn('Post Progress reports At Thread');
WriteLn('THANKS FOR USEING');
end;
procedure Location(TheLocation: string);
begin
Players[CurrentPlayer].Loc := TheLocation;
WriteLn('Location: ' + TheLocation);
end;
procedure Noban;
begin
case Random(14) of
0: begin
randommovement;
MakeCompass('N');
SetAngle(true);
end;
1: GameTab(1 + random(10));
2: HoverSkill('woodcutting', false);
3: begin
GameTab(2);
Wait(2000 + random(4000));
GameTab(4);
end;
6: PickUpMouse;
end;
Antiban := Antiban + 1
end;
function CheckAxe: boolean;
var
TIA:TIntegerArray;
i: integer;
begin
TIA:= [Axe];
for i:=0 to High(TIA) do
begin
if not FindDTM(TIA[i], X, Y, MIX1, MIY1, MIX2, MIY2) then
Continue
else
begin
Result := True;
break;
end;
end;
end;
{
procedure Switchtime; //is it time to change players
begin
if (Loads >= Loadz) then
begin
writeln('Load reached.. switching!');
SetupPlayer;
nextplayer(true);
end else
exit;
end; }
function SwitchTime: Boolean; //Changed so its better
begin
if (Loads >= Loadz) then
Result := True;
end;
procedure Countlogs;
begin
end;
procedure LoadDtms;
begin
Oak := DTMFromString('78DA633464666038CFC8800C72438C181E026' +
'990E87F2060D402AAB98DAA06220B2381B43150CD0D026A6C806A' +
'2E1150630E54739C801A4D22D42801D59C25A04681B09B01F61B0' +
'DFB');
Axe := DTMFromString('78DA63D464666038CBC8800C9A9304181E026' +
'990E87F20605403AAB98DAA06220B2381B43650CD79026A74806A' +
'0E115003B2EB0201352A4035D709A83102AA3982AAC636281A558' +
'D167EBB98801800F59A0EB5');
end;
procedure Freedtms;
begin
FreeDTM(Oak);
FreeDTM(Axe);
end;
function EntFinder: boolean;//made my bobbo edited largely by me
var
X, Y: integer;
begin
if FindColorTolerance(X, Y, 51657, 80, 6, 127, 20, 5) and IsUpText('Chop') then
begin
MFNF(MMCX, MMCY, -3, 3);
Result := True;
EntsAvoided := EntsAvoided + 1;
end;
end;
procedure ProgressReport;
begin
Cleardebug;
Writeln('[---------OakCutter--------------]');
Writeln('Time Running '+TimeRunning+ ' WoW');
Writeln('');
WriteLn(' ¤ Banked ' + IntToStr(Banked) + ' times');
Writeln('Cut how many logs');
Writeln('');
Writeln('did antiban ' + IntToStr(Antiban) + ' many times');
Writeln('');
Writeln('Post this progress report');
Writeln('[----Made by hayhay89---]')
end;
procedure FindRandoms;
begin
if (not LoggedIn) then
Exit;
FindNormalRandoms;
if (findfight) then
begin
RunAway('W', True, 1, 2000)
if FindSymbol(x, y, 'Tree') then
begin
mouse(x, y + 20, 6, 6, true);
FFlag(2);
Exit;
end else
Logout;
end;
end;
procedure ChopOak;
begin
if not LoggedIn then Exit;
FindRandoms;
if FindObjTPA(x, y, 2510664, 10, 1, 5, 5, 15, ['Oak']) then
begin
case Random(5) of
0, 1, 2: begin
Wait(30 + Random(20));
Mouse(x, y, 3, 3, True);
Wait(7000 + Random(1000));
FindRandoms;
end;
3, 4: begin
Mouse(x, y, 2, 3, False);
wait(60 + random(80));
ChooseOption('Chop');
FindRandoms;
end;
end;
WhileChopping; //Waits while chopping
end;
end;
procedure WalkToBank;
begin
if (not(LoggedIn)) then Exit;
if not RadialRoadWalk(FindFallyRoadColor, 345, 376, 54, 2, 1) then
RadialRoadWalk(FindFallyRoadColor, 345, 376, 54, 2, 1);
RadialRoadWalk(FindFallyRoadColor, 345, 376, 54, 1, 2);
if not RadialWalk(8232867, 345, 376, 54, 1, 2) then
begin
if FindSymbol(x, y, 'Bank') then
begin
mouse(x, y + 20, 6, 6, true);
FFlag(2);
Writeln('We are at the bank');
Location('At Bank');
Exit;
end;
end;
end;
procedure WhileChopping;
begin
if (not(LoggedIn)) then Exit;
while (IsUpText('Oak')) do
begin
FindRandoms;
Noban;
if (EntFinder) then
DoEmote(4);
if (InvFull) then Break;
end;
end;
procedure Bank;
begin
If not (Loggedin) then Exit;
if (OpenBank('feb',False,False)) then
begin
if (PinScreen) then
begin
InPin(IntToStr(Players[CurrentPlayer].Integers[2]));
wait((500)+random( 450));
If (BankScreen) then
Deposit(2, 28, True) ;
end else
if (FindSymbol(x, y, 'Bank')) then
begin
Mouse(x, y, 0, 0, True)
Bank;
Trys:= Trys+1;
If (trys>= 5) then
begin
logout;
exit;
end;
end;
end;
end;
procedure walktoOaks;
begin
if (not(LoggedIn)) then Exit;
Setrun(true);
if not RadialRoadWalk(FindFallyRoadColor, 210, 168, 65, 1, 2) then
RadialRoadWalk(RoadColor, 205, 185, 64, 1, 1);
FindRandoms;
if not RadialRoadWalk(FindFallyroadcolor, 192, 171, 65, 1, 1) then
if not RadialRoadWalk(FindFallyRoadColor, 199, 164, 67, 1, 1) then
begin
if not RadialRoadWalk(RoadColor, 181, 110, 36, 1, 2) then
if not RadialRoadWalk(RoadColor, 172, 131, 65, 2, 1) then
if not RadialRoadWalk(RoadColor, 182, 142, 59, 1, 1) then
RadialRoadWalk(RoadColor, 183, 143, 68, 1, 1);
Findrandoms;
end;
end;
procedure secondwalk;
begin
if (not(LoggedIn)) then Exit;
if not RadialRoadWalk(RoadColor, 181, 110, 36, 1, 2) then
if not RadialRoadWalk(RoadColor, 172, 131, 65, 2, 1) then
if not RadialRoadWalk(RoadColor, 182, 142, 59, 1, 1) then
begin
RadialRoadWalk(RoadColor, 183, 143, 68, 1, 1);
setrun(False);
Location('Trees');
Findrandoms;
end;
end;
{-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Function AmIAtTree(Pixles_Away: Integer): Boolean;
By: Timer edited by me
Description: Finds The Exact Middle Of The Tree Symbol. Subracts It From The
Center Coords... And If Its Smaller Or Eaqual To Pixles_Away It Will Result
True...
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-}
function AmIAtTree(Pixles_Away: Integer): Boolean;
var
Tree: TPointArray;
TreeAt: TPoint;
Temp: array[0..2] of Integer;
begin
FindColorsTolerance(Tree, GetSymbolColor(X, Y, 'tree'), MMX1, MMY1, MMX2, MMY2, 0);
TreeAt := MiddleTPA(Tree);
Temp[0] := MMCX - TreeAt.X;
Temp[1] := MMCY - TreeAt.Y;
Temp[2] := Temp[0] + Temp[1];
Temp[2] := Round(Temp[2] / 2);
if Temp[2] <= Pixles_Away then
Result := True
else
Result := False;
end;
procedure Oaks;
begin
if (not(LoggedIn)) then Exit;
repeat
ChopOak;
if (EntFinder) then
DoEmote(1+Random(8));
Noban;
FindRandoms;
if (InvFull) then
begin
Writeln('Inv Full, going back to bank');
Location('To Bank');
Break;
end;
until (not(LoggedIn)) ;
end;
procedure SetupPlayer;
begin
if (not(LoggedIn)) then Exit;
Wait(2000);
MakeCompass('n');
SetAngle(True);
Retaliate(False);
SetChat('off', 2);
if not (CheckAxe) then
begin
Writeln('No Axe');
LogOut;
end;
end;
procedure WAlk;
begin
if (not(LoggedIn)) then Exit;
repeat
walktoOaks;
Secondwalk;
if (AmIAtTRee(20)) then
begin
Writeln('We are at the Oak Trees');
Location('Oaks');
Exit;
end;
until(not (LoggedIn));
end;
procedure SetupScript;
begin
SmartSetupEx(Smartworld, False, Smartsigned);
wait(15000);
SetTargetDC(SmartGetDC);
SetupSRL;
Intro;
DeclarePlayers;
LoadDtms;
Loginplayer;
SetupPlayer;
end;
begin
SetupSRL;
SetupScript;
repeat
SetupPlayer;
IF not LoggedIn then
Nextplayer(false);
repeat
case Players[CurrentPlayer].Loc of
'Bank' : Walk;
'Oaks' : Oaks;
'To Bank' : WalkToBank;
'At Bank' : Bank;
end;
until(SwitchTime);
NextPlayer(LoggedIn);
until(False);
end.
——————————————————
<!– END TEMPLATE: formanswers –>