unrealman
2009-01-04 15:08:24
unrealman - SRL Member Application Form
unrealman
What is the meaning to life?
Where you Referred to SRL? If yes, by whom?
no
Programming Knowledge
HTML, PHP, Java, Basic
Other Communitys
Zybez
How Long have You Played Runescape
5 years
Are you affilated in anyway with Jagex LTD?
No
—————————————————–
Please write down a paragraph about Yourself.
I have been apart of SRL for a little wile but I hardly had any knowledge of how to script or even work SCAR. After a while i looked at some tutorials and found out how to make SCAR work. At that time i was still a leecher and could only use the Free For All scripts and i said , "hmm i wonder what the Jr. Member scripts are like." So i starting posting and eventually got up to 10 posts. I was like YES! finnaly. Then after i got the Jr. Mem scripts i said to myself, I don't think this is fair.. I get to use all these amazing scripts and what have i done to contribute to SRL? So i started looking into tutorials for scripting and found out how to move the mouse, click on colors, all of the basics. Then it just took off. I loved scripting but i just didn't have the time. My mom hates it when i am on the computer and i get grounded if i am on for over an hour so it kind of took a while to actually take the time to make my own script. I did learn a lot with trying to make a script. I just want to learn even more than i already do though.. =)
——————————————————
Please Post a Sample of your Work. Only SCAR Scripts Accepted
{/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/\ Instructions /\/////////////////////
//////////////////////////////\/\/\/\/\/\/\/\/\/\\\\\\\\\\\\\\\\\\\\\
/// Make Sure you start off in Varrock West Bank with a \\
/// tinderbx already in your invintory. Set the tab to the \\
/// correct tab before starting the script. Make sure that \\
/// it is Set up that way and you should be ready to roll!! \\
/// \\
/// Thanks for trying it out. \\
/// Plz give me feedback on the forums. THNX!!! \\
/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/////////\\\\\\\\\/////////////////////
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/}
{Fill Our Declare Players Below!}
program Firemaker;
{.include SRL/SRL/Misc/Smart.scar}
{.include SRL/SRL.scar}
{.include SRL/SRl/SKILL/Firemaking.scar}
var
x, y : Integer
;Tinder, Willow, Oak, Maple, Total : Integer
;Testing : Boolean
;Coolor : TPointArray
;CoolorP : TPoint
;Procedure DeclarePlayers;
Begin
CurrentPlayer := 0;
HowManyPlayers := 1;
NumberOfPlayers( HowManyPlayers );
Players[0].Name := 'Username';
Players[0].Pass := 'Password';
Players[0].Nick := 'ser';
Players[0].Pin := '0000';
Players[0].Strings[0] := 'Willow'; //What Log Are You Going To Use?
//Valid Arguments are 'Oak', 'Willow', and 'Maple'
Players[0].Active:= True;
Writeln( IntToStr ( HowManyPlayers ) + ' Player[s]' );
End;
procedure DeclareDTMs;
begin
Tinder := DTMFromString('78DA63CC62626070626440068E961C0CFF813' +
'448F43F1030A603D598A1AA81C8C248205D0654634C404D0A508D' +
'370135F140357604D49400D578E0570300EF6C099B');
Willow := DTMFromString('78DA639CC1C4C060CBC8800CC2FDE419F8813' +
'448F43F10302EC45403918591407A31508D3B0135B3806A3C09A8' +
'E903AAF122A0A61DA8C619BF1A0009880A15');
Oak := DTMFromString('78DA637CC5C4C060CBC8800C26E43B31F0036' +
'990E87F2060FC0154638FAA06220B2381F467A01A77026ADE02D5' +
'781250F318A8C69B809ADB4035AEF8D500005EE60C8C');
Maple := DTMFromString('78DA633CC4C4C060CBC8800C0A7C7819F8813' +
'448F43F10309E05AAB147550391859140FA1C508D1B013547806A' +
'3C09A8D90554E34340CD46A01A17FC6A008C890B1F');
end;
Function DeclareDDTMs(walkorlog: Integer): Integer; // TY Mariofan12 for the DDTTMs
var
dtmMainPoint: TDTMPointDef;
dtmSubPoints: array[0..4] of TDTMPointDef;
TempTDTM: TDTM;
Vroadcolor: integer;
begin
Vroadcolor := FindVarrockRoadColor;
case walkorlog of
1: begin
dtmMainPoint.x := 573;
dtmMainPoint.y := 110;
dtmMainPoint.AreaSize := 0;
dtmMainPoint.AreaShape := 0;
dtmMainPoint.Color := Vroadcolor;
dtmMainPoint.Tolerance := 7;
dtmSubPoints[0].x := 573;
dtmSubPoints[0].y := 110;
dtmSubPoints[0].AreaSize := 0;
dtmSubPoints[0].AreaShape := 0;
dtmSubPoints[0].Color := Vroadcolor;
dtmSubPoints[0].Tolerance := 7;
dtmSubPoints[1].x := 555;
dtmSubPoints[1].y := 91;
dtmSubPoints[1].AreaSize := 0;
dtmSubPoints[1].AreaShape := 0;
dtmSubPoints[1].Color := Vroadcolor;
dtmSubPoints[1].Tolerance := 7;
dtmSubPoints[2].x := 574;
dtmSubPoints[2].y := 53;
dtmSubPoints[2].AreaSize := 0;
dtmSubPoints[2].AreaShape := 0;
dtmSubPoints[2].Color := 6392462;
dtmSubPoints[2].Tolerance := 15;
dtmSubPoints[3].x := 586;
dtmSubPoints[3].y := 126;
dtmSubPoints[3].AreaSize := 0;
dtmSubPoints[3].AreaShape := 0;
dtmSubPoints[3].Color := 4486771;
dtmSubPoints[3].Tolerance := 15;
dtmSubPoints[4].x := 562;
dtmSubPoints[4].y := 107;
dtmSubPoints[4].AreaSize := 0;
dtmSubPoints[4].AreaShape := 0;
dtmSubPoints[4].Color := Vroadcolor;
dtmSubPoints[4].Tolerance := 7;
TempTDTM.MainPoint := dtmMainPoint;
TempTDTM.SubPoints := dtmSubPoints;
Result := AddDTM(TempTDTM);
end;
2: begin
dtmMainPoint.x := 602;
dtmMainPoint.y := 95;
dtmMainPoint.AreaSize := 0;
dtmMainPoint.AreaShape := 0;
dtmMainPoint.Color := 5271947;
dtmMainPoint.Tolerance := 15;
dtmSubPoints[0].x := 602;
dtmSubPoints[0].y := 95;
dtmSubPoints[0].AreaSize := 0;
dtmSubPoints[0].AreaShape := 0;
dtmSubPoints[0].Color := 5271947;
dtmSubPoints[0].Tolerance := 15;
dtmSubPoints[1].x := 602;
dtmSubPoints[1].y := 114;
dtmSubPoints[1].AreaSize := 0;
dtmSubPoints[1].AreaShape := 0;
dtmSubPoints[1].Color := Vroadcolor;
dtmSubPoints[1].Tolerance := 7;
dtmSubPoints[2].x := 602;
dtmSubPoints[2].y := 118;
dtmSubPoints[2].AreaSize := 0;
dtmSubPoints[2].AreaShape := 0;
dtmSubPoints[2].Color := Vroadcolor;
dtmSubPoints[2].Tolerance := 7;
dtmSubPoints[3].x := 622;
dtmSubPoints[3].y := 116;
dtmSubPoints[3].AreaSize := 0;
dtmSubPoints[3].AreaShape := 0;
dtmSubPoints[3].Color := Vroadcolor;
dtmSubPoints[3].Tolerance := 7;
dtmSubPoints[4].x := 607;
dtmSubPoints[4].y := 87;
dtmSubPoints[4].AreaSize := 0;
dtmSubPoints[4].AreaShape := 0;
dtmSubPoints[4].Color := 5271947;
dtmSubPoints[4].Tolerance := 15;
TempTDTM.MainPoint := dtmMainPoint;
TempTDTM.SubPoints := dtmSubPoints;
Result := AddDTM(TempTDTM);
end;
3: begin
dtmMainPoint.x := 630;
dtmMainPoint.y := 106;
dtmMainPoint.AreaSize := 0;
dtmMainPoint.AreaShape := 0;
dtmMainPoint.Color := FindVarrockRoadColor;
dtmMainPoint.Tolerance := 7;
dtmSubPoints[0].x := 630;
dtmSubPoints[0].y := 106;
dtmSubPoints[0].AreaSize := 0;
dtmSubPoints[0].AreaShape := 0;
dtmSubPoints[0].Color := FindVarrockRoadColor;
dtmSubPoints[0].Tolerance := 7;
dtmSubPoints[1].x := 612;
dtmSubPoints[1].y := 79;
dtmSubPoints[1].AreaSize := 0;
dtmSubPoints[1].AreaShape := 0;
dtmSubPoints[1].Color := 4947074;
dtmSubPoints[1].Tolerance := 15;
dtmSubPoints[2].x := 625;
dtmSubPoints[2].y := 48;
dtmSubPoints[2].AreaSize := 0;
dtmSubPoints[2].AreaShape := 0;
dtmSubPoints[2].Color := 4947074;
dtmSubPoints[2].Tolerance := 15;
dtmSubPoints[3].x := 632;
dtmSubPoints[3].y := 109;
dtmSubPoints[3].AreaSize := 0;
dtmSubPoints[3].AreaShape := 0;
dtmSubPoints[3].Color := FindVarrockRoadColor;
dtmSubPoints[3].Tolerance := 15;
dtmSubPoints[4].x := 617;
dtmSubPoints[4].y := 34;
dtmSubPoints[4].AreaSize := 0;
dtmSubPoints[4].AreaShape := 0;
dtmSubPoints[4].Color := 6392462;
dtmSubPoints[4].Tolerance := 15;
TempTDTM.MainPoint := dtmMainPoint;
TempTDTM.SubPoints := dtmSubPoints;
Result := AddDTM(TempTDTM);
end;
end;
end;
procedure FreeDtms;
begin
freedtm(Tinder);
freedtm(Willow);
freedtm(Oak);
freedtm(Maple);
end;
procedure antibann;
begin
if not LoggedIn then Exit;
case Random(60) of
0: wait(500+random(10000));
1: begin
RandomMovement;
SetAngle(true);
end;
2: HoverSkill('random' ,false);
3: PickUpMouse;
end;
end;
Procedure AntiiRandoms;
begin
FindNormalRandoms;
FindInventoryRandoms;
FindnonInventoryRandoms;
Findtalk;
if Pos('tch sp', lowercase(GetTalkingNPCName)) > 0 then ClickContinue(true, true);
end;
function sWait(number: integer): boolean; //Thank You "i pro leechin'"
var
i, d, g, b: integer;
begin
d := (number + 10);
g := random(3) + 1;
b := random(4) + 1;
for i := 1 to g do
d := d + (d / b);
wait(d);
end;
procedure SetupSmart;
begin
SmartSetupEx(2, True, True, False);
SetTargetDC(SmartGetDC);
end;
Procedure Stuckage;
var
VarrockRoadColor: integer;
begin
makecompass('n');
VarrockRoadColor := FindVarrockRoadColor;
if RadialRoadWalk(VarrockRoadColor, 45, 135, 20 + random(10), -2, 1)then
begin
Writeln('Getting Into Position');
end else
begin
if RadialRoadWalk(VarrockRoadColor, 225, 315, 20 + random(10), -2, 1) then
begin
Writeln('Getting Into Position');
end else
begin
Writeln('Don''t Know Where You Are. Logging Character Out');
logout;
end;
end;
end;
procedure GetOaks;
begin
DeclareDTMs;
if FindDtm(Oak, x, y, MSX1, MSY1, MSX2, MSY2) then
begin
mouse(x, y, 8, 8, false);
swait(600);
chooseoption('All');
closebank;
end else
begin
closebank;
Writeln('No More logs!');
end;
end;
procedure GetWillows;
begin
DeclareDTMs;
if FindDtm(Willow, x, y, MSX1, MSY1, MSX2, MSY2) then
begin
mouse(x, y, 8, 8, false);
swait(600);
chooseoption('All');
closebank;
end else
begin
closebank;
Writeln('No More logs!');
end;
end;
Procedure GetMaples;
begin
DeclareDTMs;
if FindDtm(Maple, x, y, MSX1, MSY1, MSX2, MSY2) then
begin
mouse(x, y, 8, 8, false);
swait(400);
chooseoption('All');
closebank;
end else
begin
closebank;
Writeln('No More logs!');
end;
end;
procedure GetLogs;
begin
GameTab(4);
MakeCompass('perfect north');
SetAngle(True);
if not(FindDTM(maple, x, y, MIx1, MIy1, MIx2, MIy2))then
begin
OpenBank('vwb', True, True);
end;
if pinscreen then
begin
InPin(Players[CurrentPlayer].pin);
Wait(258+random(168));
end;
if (BankScreen) then
begin
case Lowercase(players[currentplayer].strings[0]) of
'Oak', 'oak': GetOaks;
'Willow', 'willow': GetWillows;
'Maple', 'maple': GetMaples;
end;
antibann;
end else
begin
WriteLn('Can Not Find ' + players[currentplayer].Strings[0] + ' Logs. Terminating Script');
Logout;
end;
end;
procedure WalkToSpot;
var
Walk, Help, VarrockRoadColor: integer;
begin
if not LoggedIn then exit;
Walk := DeclareDDTMs(1);
Help := DeclareDDTMs(3);
VarrockRoadcolor := FindVarrockRoadColor;
Makecompass('n');
if (RadialRoadWalk(VarrockRoadcolor, 100, 180, 50 + random(22), -2, 1)) then
begin
Writeln('Walked out using radial walk');
end else
begin
if DTMRotated(Walk, x, y, MMX1, MMY1, MMX2, MMY2) then
begin
Mouse(x, y, 8, 8, true);
FFlag(0);
Writeln('Walk out of bank Complete');
end else
begin
if DTMRotated(Help, x, y, MMX1, MMY1, MMX2, MMY2) then
begin
Mouse(x, y, 8, 8, true);
FFlag(0);
Writeln('Walk out of bank Complete');
end else
begin
WriteLn('Could not find the road, logging out');
logout;
end;
end;
end;
freedtm(Help);
freedtm(Walk);
end;
procedure WalkToBank;
var
Walk, Help, b, VarrockRoadcolor: integer;
begin
if not LoggedIn then exit;
Help:= DeclareDDTMs(1);
Walk:= DeclareDDTMs(2);
VarrockRoadColor := FindVarrockRoadColor;
if DTMRotated(Walk, x, y, MMX1, MMY1, MMX2, MMY2) then
begin
Mouse(x, y, 8, 8, true);
FFlag(0);
Testing := True;
swait(100);
if FindSymbol(x, y, 'bank') then
begin
mouse(x, y, 6, 6, True);
FFlag(0);
end else
begin
FindColorsSpiralTolerance(MMCx, MMCy, Coolor, 2871018, MMX1, MMY1, MMX2, MMY2, 10);
if Length(Coolor) = 0 then
begin
Writeln('Don''t Know Where You Are. Logging Character Out');
logout;
end;
For b := 0 to High(Coolor) do
begin
CoolorP := Coolor[b];
mouse(CoolorP.x, CoolorP.y, 6, 6, True);
FFlag(0);
end;
end;
end else if DTMRotated(Help, x, y, MMX1, MMY1, MMX2, MMY2) then
begin
mouse(x, y, 8, 8, true);
FFlag(0);
Testing := True;
swait(100);
if FindSymbol(x, y, 'bank') then
begin
mouse(x, y, 6, 6, True);
FFlag(0);
end else
begin
FindColorsSpiralTolerance(MMCx, MMCy, Coolor, 2871018, MMX1, MMY1, MMX2, MMY2, 10)
if Length(Coolor) = 0 then
begin
Writeln('Don''t Know Where You Are. Logging Character Out');
logout;
end;
For b := 0 to High(Coolor) do
begin
CoolorP := Coolor[b];
mouse(CoolorP.x, CoolorP.y, 6, 6, True);
FFlag(0);
end;
end;
end else if (RadialRoadWalk(VarrockRoadColor, 45, 135, 50 + random(22), -2, 1)) then
begin
swait(100);
Testing := true;
if FindSymbol(x, y, 'bank') then
begin
mouse(x, y, 6, 6, True);
FFlag(0);
end else
begin
FindColorsSpiralTolerance(MMCx, MMCy, Coolor, 2871018, MMX1, MMY1, MMX2, MMY2, 10)
if Length(Coolor) = 0 then
begin
Writeln('Don''t Know Where You Are. Logging Character Out');
logout;
end;
For b := 0 to High(Coolor) do
begin
CoolorP := Coolor[b];
mouse(CoolorP.x, CoolorP.y, 6, 6, True);
FFlag(0);
end;
end;
end else
begin
Testing := False;
Writeln('Don''t Know Where You Are. Logging Character Out');
end;
if not (Testing) then
begin
Logout;
end;
FreeDTM(Walk);
FreeDtm(Help);
end;
procedure BurnOaks;
begin
if not(FindDTM(Tinder, x, y, MIx1, MIy1, MIx2, MIy2))then
Exit;
repeat
if FindDTM(Tinder, x, y, MIX1, MIY1, MIX2, MIY2) then
Mouse(x, y, 5, 5, True);
Wait(100+Random(200));
if FindDTM(Oak, x, y, MiX1, MiY1, MiX2, MiY2) then
Mouse(x, y, 5, 5, true);
Wait(1000 + Random(487));
if (GetBlackChatMessage = 'You can''t light a fire here.') then
begin
Wait(250 + Random(250));
Writeln('Can Not Light A Fire. Changing Position');
Stuckage;
end;
LightWait;
Total := Total +1
until (not FindDTM(Oak, x, y, MiX1, MiY1, MiX2, MiY2))
MakeCompass('perfect North');
Antiirandoms;
end;
procedure BurnWillows;
begin
if not(FindDTM(Tinder, x, y, MIx1, MIy1, MIx2, MIy2))then
Exit;
repeat
if FindDTM(Tinder, x, y, MIX1, MIY1, MIX2, MIY2) then
Mouse(x, y, 5, 5, True);
Wait(100+Random(200));
if FindDTM(Willow, x, y, MiX1, MiY1, MiX2, MiY2) then
Mouse(x, y, 5, 5, true);
Wait(1000 + Random(487));
if (GetBlackChatMessage = 'You can''t light a fire here.') then
begin
Wait(250 + Random(250));
Writeln('Can Not Light A Fire. Changing Position');
Stuckage;
end;
LightWait;
Total := Total +1
until (not FindDTM(Willow, x, y, MiX1, MiY1, MiX2, MiY2))
MakeCompass('perfect North');
Antiirandoms;
end;
procedure BurnMaples;
begin
if not(FindDTM(Tinder, x, y, MIx1, MIy1, MIx2, MIy2))then
Exit;
repeat
if FindDTM(Tinder, x, y, MIX1, MIY1, MIX2, MIY2) then
Mouse(x, y, 5, 5, True);
Wait(100+Random(200));
if FindDTM(Maple, x, y, MiX1, MiY1, MiX2, MiY2) then
Mouse(x, y, 5, 5, true);
Wait(1000 + Random(487));
if (GetBlackChatMessage = 'You can''t light a fire here.') then
begin
Wait(250 + Random(250));
Writeln('Can Not Light A Fire. Changing Position');
Stuckage;
end;
LightWait;
Total := Total +1
until (not FindDTM(Maple, x, y, MiX1, MiY1, MiX2, MiY2))
MakeCompass('perfect North');
Antiirandoms;
end;
procedure MakeFire;
begin
GameTab(4);
if LoggedIn then
begin
case Lowercase(players[currentplayer].strings[0]) of
'Oak', 'oak': BurnOaks;
'Willow', 'willow': BurnWillows;
'Maple', 'maple': BurnMaples;
end;
end else
begin
WriteLn('Can Not Find ' + players[currentplayer].Strings[0] + ' Logs. Terminating Script');
Logout;
end;
Antibann;
end;
Procedure ProgressReport;
begin
WriteLn('\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/');
WriteLn('\//////////// Progress Report! \\\\\\\\\\\\/');
WriteLn('\\\\\\\\\\\/\/\/\/\/\/\/\/\/\/\/\///////////');
WriteLn('\ ');
WriteLn('\ This Script Ran For: ' + TimeRunning +' ');
WriteLn('\ ');
WriteLn('\ You Burned: ' + IntToStr(Total) + ' logs!');
WriteLn('\ ');
WriteLn('\ Please Post Proggie On Forums! TY! ');
WriteLn('\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/');
WriteLn(' ');
end;
begin
SetupSRL;
SetupSmart;
DeclarePlayers;
LoginPlayer;
repeat
DeclareDTMs;
GetLogs;
WalkToSpot;
MakeFire;
WalkToBank;
ProgressReport;
FreeDTMs;
until(AllPlayersInactive)
end.——————————————————
<!– END TEMPLATE: formanswers –>