MetalancA
2009-01-17 04:55:07
<!– BEGIN TEMPLATE: formanswers –>
metalanca - SRL Member Application Form
metalanca
What is the meaning to life?
Where you Referred to SRL? If yes, by whom?
no
Programming Knowledge
Other Communitys
Thegrandexchange.com, Sythe.org
How Long have You Played Runescape
3 years on and off
Are you affilated in anyway with Jagex LTD?
No
—————————————————–
Please write down a paragraph about Yourself.
Well, my name is Alan, I'm a senior in high school in Southern California. I've applied for members once before, and I've learned a lot since then. I'm always looking for ways to improve my scripting, so I'm open to any suggestions you guys have. The script I'm applying with isn't complete, though only because I just didn't have the time to complete it, what with my tight study schedule. It compiles all right, and I hope it reflects what I know about scripting.
——————————————————
Please Post a Sample of your Work. Only SCAR Scripts Accepted
——————————————————
<!– END TEMPLATE: formanswers –>
metalanca - SRL Member Application Form
metalanca
What is the meaning to life?
Where you Referred to SRL? If yes, by whom?
no
Programming Knowledge
Other Communitys
Thegrandexchange.com, Sythe.org
How Long have You Played Runescape
3 years on and off
Are you affilated in anyway with Jagex LTD?
No
—————————————————–
Please write down a paragraph about Yourself.
Well, my name is Alan, I'm a senior in high school in Southern California. I've applied for members once before, and I've learned a lot since then. I'm always looking for ways to improve my scripting, so I'm open to any suggestions you guys have. The script I'm applying with isn't complete, though only because I just didn't have the time to complete it, what with my tight study schedule. It compiles all right, and I hope it reflects what I know about scripting.
——————————————————
Please Post a Sample of your Work. Only SCAR Scripts Accepted
{=============================================================================}
{ }
{ _________________________________________________ }
{ |Name: DhideTanner | }
{ |Writer: Metalanca | }
{ |Category: Crafting | }
{ |Description: Tans black dragonhide at Al Kaharid | }
{ |Version: 1.0 | }
{ |SCAR: 3.15 Divi by Freddy1990 | }
{ |________________________________________________ | }
{ }
{=============================================================================}
{ Instructions }
{=============================================================================}
{ 1. Use he Runescape Client, Low Detail, Very Bright, Window Maximized. }
{ 2. Setup lines ' ' to ' ' including your runescape username and password. }
{ 3. Fill out your SRL STATS username and password. }
{ 4. Run the script logged out, It will log your character in. }
{ 5. Make sure you are in the Al-Kaharid bank. }
{ 6. IMPORTANT! Make sure you have your money in the very first slot in your }
{ bank AND have your Dhides in your second slot }
{ 7. Run with no money in your inventory }
{=============================================================================}
program DhideTanner;
{.include SRL/SRL.scar}
const
directionToRun='E';
yourSRLID=''; //Your SRL ID
yourSRLPW=''; //Your SRL Password
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := ''; //Your runescape username
Players[0].Nick := ''; //3-4 letters from your username
Players[0].Pass := ''; //Your runescape password
Players[0].Pin := ''; // Dun worry, you wont get haxed :)
Players[0].Strings[0] := 'akb'; //LEAVE THIS!! This tells the script that you are in Al Kaharid bank
Players[0].Strings[1] := 'black dragonhide'; //What kind of hides are you tanning? enter either: cowhide, green dragonhide, red dragonhide, blue, or black.
Players[0].Active := True;
{
Players[1].Name := ''; //Same thing applys here
Players[1].Pass := '';
Players[1].Nick := '';
Players[0].Pin := '';
Players[1].Strings[0] := 'akb';
Players[1].Strings[1] := 'black dragonhide';
Players[1].Active := True; }
MouseSpeed := 15;
end;
var x, y, coins, opx, opy, plant : integer;
Procedure DuntGetBanned; forward;
Procedure AntiRandoms;
begin
Findnormalrandoms;
FindNonInventoryRandoms;
FindInventoryRandoms;
end;
procedure CheckMoney; //Procedure Checkmoney, withdraws 50k from your runescape bank. If you dont have 50k in your bank? Gf. You're a noob.
begin
Coins := DTMFromString('78DA6394626060906440011F8FC8826946289' +
'F5113484831A001465435202DEA04D4F0000971026AF881843201' +
'353240829B801A0D2021825F0D0082760359');
if not LoggedIn then Exit;
if not (FindDTM(Coins, x, y, 3, 2, 759, 494)) then
if OpenBank(Players[CurrentPlayer].Strings[0], true, true) = true then //open bank
begin
wait(200+random(500));
InPin(Players[CurrentPlayer].Pin);
if (BankScreen = true) then
begin
Withdraw(1,1,50000);
wait(500+random(500));
closebank;
Antirandoms;
end;
end;
end;
Procedure WithdrawSt00f; //Withdraws black dragonhides.
begin
if not LoggedIn then Exit;
if OpenBank(Players[CurrentPlayer].Strings[0], true, true) = true then
wait(200+random(400));
SearchBank(players[CurrentPlayer].Strings[1])
wait(1000+random(500));
if (Players[CurrentPlayer].Strings[1]= 'black dragonhide') then
begin
if FindObj(x,y,'lack',2763309,7) then
mouse(x,y,0,0,false);
Chooseoption('All');
Closebank;
exit;
end else
if (Players[CurrentPlayer].Strings[1]= 'cowhide') then
begin
if FindObj(x,y,'owhide',11382456,7) then
mouse(x,y,0,0,false);
Chooseoption('All');
Closebank;
exit;
end else
if (Players[CurrentPlayer].Strings[1]= 'green dragonhide') then
begin
if FindObj(x,y,'reen ',672008,7) then
mouse(x,y,0,0,false);
Chooseoption('All');
Closebank;
exit;
end else
if (Players[CurrentPlayer].Strings[1]= 'blue dragonhide') then
begin
if FindObj(x,y,'lue ',5967371,7) then
mouse(x,y,0,0,false);
Chooseoption('All');
Closebank;
exit;
end else
if (Players[CurrentPlayer].Strings[1]= 'red dragonhide') then
begin
if FindObj(x,y,'ed ',528199,7) then
mouse(x,y,0,0,false);
Chooseoption('All');
Closebank;
exit;
end else
begin
cleardebug;
writeln('Please make sure you have hides in your bank before you run the script :)');
logout;
end;
Closebank;
Antirandoms;
Duntgetbanned;
if not invfull = true then
begin
writeln('You dont have any dhides left in your bank, Script Terminated');
Terminatescript;
end;
end;
Procedure Siggy; //Teh siggy. RAWR!
begin
cleardebug;
writeln('----- ___ _____ ___ -----');
writeln('----- /\ /\ | | /\ | /\ |\ | / /\ -----');
writeln('----- / \ / \ |___ | /__\ | /__\ | \ | | /__\ -----');
writeln('----- / \ / \ | | / \ | / \ | \ | | / \ -----');
writeln('----- / \/ \ |___ | / \ |____ / \ | \| \ ___ / \ -----');
writeln('----- -----');
writeln('----- -----');
wait(1000);
cleardebug;
writeln(' ____ ____ ');
writeln(' | \ | \ ');
writeln(' |____/ |____/ ');
writeln(' | | ');
writeln(' |roudly |resents ');
wait(1000);
Cleardebug;
writeln('DhideTanner DhideTanner DhideTanner DhideTanner DhideTanner ');
writeln(' DhideTanner DhideTanner DhideTanner DhideTanner DhideTanner ');
writeln(' DhideTanner DhideTanner DhideTanner DhideTanner DhideTanner ');
writeln(' DhideTanner DhideTanner DhideTanner DhideTanner ');
writeln(' DhideTanner DhideTanner DhideTanner ');
writeln(' DhideTanner DhideTanner DhideTanner DhideTanner ');
writeln(' DhideTanner ');
wait(2000);
cleardebug;
end;
Procedure DuntGetBanned; //some antiban. Feel free to add some more, you can never have too much antiban heh heh.
begin
case Random(30) of
1: RandomRClick;
2: HoverSkill('strength', False);
3: PickUpMouse;
4: SayCurrentLevels('strength');
5: RandomMovement;
6: BoredHuman;
7: SleepAndMoveMouse(500+random(3000));
8: MouseSpeed := MouseSpeed + Random(5) - Random(5);
9: FTWait(RandomRange(1,30));
10:
begin
GameTab(1+Random(6));
wait(1+random(400));
Wait(100+Random(6000)); // #10 from Hy's fightcaver :)
GameTab(4);
FindNormalRandoms;
end;
11: HoverSkill('random',False);
12: begin
if IsUpText('ptions') then
begin
GetMousePos(opx,opy);
Mouse(opx,opy,0,0,False);
ChooseOption('xamine')
end;
end;
end;
end;
function Sand: Integer;
var
arP: TPointArray;
arC: TIntegerArray;
tmpCTS, i, arL: Integer;
H, S, L: Extended;
X, Y, Z: Extended;
begin
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(1);
FindColorsSpiralTolerance(MMCX, MMCY, arP, 5996441, MMX1, MMY1, MMX2, MMY2, 22);
if (Length(arP) = 0) then
begin
Writeln('Failed to find the color, no result.');
ColorToleranceSpeed(tmpCTS);
Exit;
end;
arC := GetColors(arP);
ClearSameIntegers(arC);
arL := High(arC);
for i := 0 to arL do
begin
ColorToHSL(arC[i], H, S, L);
if (H >= 9.07) and (H <= 9.38) and (S >= 19.28) and (S <= 30.06) and (L >= 44.69) and (L <= 52.37) then
begin
ColorToXYZ(arC[i], X, Y, Z);
if (X >= 18.31) and (X <= 27.84) and (Y >= 18.48) and (Y <= 27.61) and (Z >= 11.43) and (Z <= 15.19) then
begin
Result := arC[i];
Writeln('AutoColor = ' + IntToStr(arC[i]));
Break;
end;
end;
end;
ColorToleranceSpeed(tmpCTS);
if (i = arL + 1) then
Writeln('AutoColor failed in finding the color.');
end;
function Tannery: Integer;
var
arP: TPointArray;
arC: TIntegerArray;
tmpCTS, i, arL: Integer;
H, S, L: Extended;
X, Y, Z: Extended;
begin
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(1);
FindColorsSpiralTolerance(MMCX, MMCY, arP, 861772, MMX1, MMY1, MMX2, MMY2, 40);
if (Length(arP) = 0) then
begin
Writeln('Failed to find the color, no result.');
ColorToleranceSpeed(tmpCTS);
Exit;
end;
arC := GetColors(arP);
ClearSameIntegers(arC);
arL := High(arC);
for i := 0 to arL do
begin
ColorToHSL(arC[i], H, S, L);
if (H >= 4.24) and (H <= 10.79) and (S >= 56.17) and (S <= 97.64) and (L >= 9.59) and (L <= 25.12) then
begin
ColorToXYZ(arC[i], X, Y, Z);
if (X >= 1.35) and (X <= 7.62) and (Y >= 0.90) and (Y <= 6.48) and (Z >= 0.11) and (Z <= 1.73) then
begin
Result := arC[i];
Writeln('AutoColor = ' + IntToStr(arC[i]));
Break;
end;
end;
end;
ColorToleranceSpeed(tmpCTS);
if (i = arL + 1) then
Writeln('AutoColor failed in finding the color.');
end;
procedure walk1;
begin
Plant := DTMFromString('78DA63E4666060E06240018649E2609A11CA6' +
'7140012FC04D40802091E54351A410CA86A8480043B0173788104' +
'0B01356C40828D805D1C4082978039207FF3E157030039C905B5');
if FindColorTolerance(x, y, Plant, MMX1, MMY1, MMX2, MMY2, 15) then
begin
Mouse(x, y, 2, 2, True);
DuntGetBanned;
wait(4000+random(500));
Fflag(10);
end else
if FindColorTolerance(x, y, Plant, MMX1, MMY1, MMX2, MMY2, 10) then
Begin
Mouse(x, y, 2, 2, True);
DuntGetBanned;
wait(4000+random(500));
Fflag(10);
end else
if (FindSymbol(x, y, 'cookery')) then
begin
Mouse(x, y, 5, 5, True);
DuntGetBanned;
wait(1000+random(500));
Fflag(10);
exit;
end else
if (FindSymbol(x, y, 'Kebab Shop')) then
begin
Mouse(x, y, 5, 5, True);
DuntGetBanned;
wait(1000+random(500));
Fflag(10);
exit;
end else
if radialwalk(Sand, 0, 50, 65, -1, 0) then
begin
Mouse(x, y, 5, 5, True);
DuntGetBanned;
wait(1000+random(500));
Fflag(10);
exit;
end else
if radialwalk(Sand, 0, 60, 50, -1, 0) then
begin
Mouse(x, y, 5, 5, True);
DuntGetBanned;
wait(1000+random(500));
Fflag(10);
exit;
end else
if radialwalk(Sand, 0, 40, 65, -1, 0) then
begin
Mouse(x, y, 5, 5, True);
DuntGetBanned;
wait(1000+random(500));
Fflag(10);
exit;
end else
begin
writeln('Could not find any symbols or the autowalk color');
terminatescript;
end;
end;
procedure walk2;
begin
if FindColorTolerance(x, y, 1068393, MMX1, MMY1, MMX2, MMY2, 15) then
Begin
Mouse(x, y, 2, 2, True);
DuntGetBanned;
wait(4000+random(500));
Fflag(10);
exit;
end else
if radialwalk(tannery, 310, 400, 65, -1, 0) then
begin
DuntGetBanned;
wait(1000+random(500));
Fflag(10);
exit;
end else
if radialwalk(tannery, 310, 410, 65, -1, 0) then
begin
DuntGetBanned;
wait(1000+random(500));
Fflag(10);
exit;
end else
if radialwalk(tannery, 300, 400, 70, -1, 0) then
begin
DuntGetBanned;
wait(1000+random(500));
Fflag(10);
exit;
end else
if radialwalk(tannery, 310, 4100, 60, -1, 0) then
begin
DuntGetBanned;
wait(1000+random(500));
Fflag(10);
exit;
end else
begin
writeln('could not find tannery symbol');
terminatescript;
end;
end;
Procedure Walktotannery; //All the stuff the script does when walking, antirandoms, antiban, messages, etc.
begin
if not LoggedIn then Exit;
Disguise('walking initiated');
Antirandoms;
Duntgetbanned;
setrun(true);
walk1;
Antirandoms;
walk2;
Antirandoms;
end;
Procedure FindEllis;
begin
if FindObjEx(x, y, ['Ellis', 'llis'], [5998055, 5208539], 5, 50, 8, 9, 753, 491) then
begin
Mouse(x, y, 2, 2, False);
wait(500+random(150));
Chooseoption('Trade');
writeln('Traded');
disguise('Found Ellis');
wait(5000+random(500));
exit;
end else
if FindObjEx(x, y, ['Ellis', 'llis'], [5076951, 4747209], 5, 50, 7, 5, 517, 339) then
begin
Mouse(x, y, 2, 2, False);
wait(50+random(150));
Chooseoption('Trade');
writeln('Traded');
disguise('Found Ellis');
wait(5000+random(500));
exit;
end else
if not FindObjEx(x, y, ['Elli', 'llis'], [4747209, 5076951], 5, 50, 7, 5, 517, 339) then
begin
if radialwalk(tannery, 270, 450, 60, -1, 0) then
begin
wait(5000+random(500));
Fflag(10);
exit;
end;
end else
if FindObjEx(x, y, ['Ellis', 'llis'], [5076951, 4747209], 5, 50, 7, 5, 517, 339) then
begin
Mouse(x, y, 2, 2, False);
wait(500+random(150));
Chooseoption('Trade');
writeln('Traded');
disguise('Found Ellis');
wait(5000+random(500));
exit;
end else
begin
writeln('could not find ellis');
terminatescript;
end;
end;
procedure TanHides;// this will find the tanner and trade him
var
x, y :integer;
begin
if not LoggedIn then Exit;
if (Players[CurrentPlayer].Strings[1]= 'black dragonhide') then
begin
if FindObjCustom(x, y, ['lack', 'hide'], [2368551, 3158068], 5) = true then
begin
if FindObjCustom(x, y, ['lack', 'hide'], [6316135, 2894896], 5) = true then
Mouse(X, Y, 1, 1, false);
Wait(500 + Random(150));
ChooseOption('All');
end else
if FindObjCustom(x, y, ['lack', 'hide'], [2631723, 6250342], 5) = true then
begin
Mouse(X, Y, 1, 1, false);
Wait(500 + Random(150));
ChooseOption('All');
end else
begin
writeln('Could not tan dhides.');
terminatescript;
end;
exit;
end else
if (Players[CurrentPlayer].Strings[1]= 'cowhide') then
begin
if FindObjCustom(x, y, ['ard', 'rd '], [11448249, 10921650], 5) = true then
begin
Mouse(x, y, 1, 1, false);
wait(500+random(150));
ChooseOption('All');
end else
if FindObjCustom(x, y, ['ard', 'rd '], [11579578, 11448249], 5) = true then
begin
Mouse(x, y, 1, 1, false);
wait(500+random(150));
ChooseOption('All');
end else
if FindObjCustom(x, y, ['ard', 'rd '], [10987699, 13224400], 5) = true then
begin
Mouse(x, y, 1, 1, false);
wait(500+random(150));
ChooseOption('All');
end else
if (Players[CurrentPlayer].Strings[1]= 'green dragonhide') then
begin
if FindObjCustom(x, y, ['ree', 'een '], [806154, 739337], 5) = true then
begin
Mouse(x, y, 1, 1, false);
wait(500+random(150));
ChooseOption('All');
end else
begin
if FindObjCustom(x, y, ['ree', 'een '], [1007628, 872970], 5) = true then
begin
Mouse(x, y, 1, 1, false);
wait(500+random(150));
ChooseOption('All');
end else
if FindObjCustom(x, y, ['ree', 'een '], [941067, 672264], 5) = true then
begin
Mouse(x, y, 1, 1, false);
wait(500+random(150));
ChooseOption('All');
end else
if (Players[CurrentPlayer].Strings[1]= 'blue dragonhide') then
if FindObjCustom(x, y, ['lue', 'lue '], [6032907, 6623245], 5) = true then
begin
Mouse(x, y, 1, 1, false);
wait(500+random(150));
ChooseOption('All');
end else
if FindObjCustom(x, y, ['lue', 'lue '], [10891797, 5705227], 5) = true then
begin
Mouse(x, y, 1, 1, false);
wait(500+random(150));
ChooseOption('All');
end else
if FindObjCustom(x, y, ['lue', 'lue '], [5377290, 11482390], 5) = true then
begin
Mouse(x, y, 1, 1, false);
wait(500+random(150));
ChooseOption('All');
end else
if (Players[CurrentPlayer].Strings[1]= 'red dragonhide') then
if FindObjCustom(x, y, ['red', 'ed '], [593736, 527938], 5) = true then
begin
Mouse(x, y, 1, 1, false);
wait(500+random(150));
ChooseOption('All');
end else
if FindObjCustom(x, y, ['red', 'ed '], [857701, 659533], 5) = true then
begin
Mouse(x, y, 1, 1, false);
wait(500+random(150));
ChooseOption('All');
end else
if FindObjCustom(x, y, ['red', 'ed '], [857701, 659533], 5) = true then
begin
Mouse(x, y, 1, 1, false);
wait(500+random(150));
ChooseOption('All');
end else
begin
writeln('Could not tan dhides.');
terminatescript;
end;
exit;
end;
end;
end;
end;
begin
siggy;
SetupSRL;
declarePlayers;
Activateclient;
if not (loggedin) then loginplayer;
Disguise('Logging in player...');
duntgetbanned;
Setangle(true);
Checkmoney;
Withdrawst00f;
walktotannery;
FindEllis;
Tanhides;
end.——————————————————
<!– END TEMPLATE: formanswers –>