CowFish
2009-05-21 04:02:58
How Long have You Played Runescape?
3 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
What is your general programming knowledge?
HTML, Is SCAR one?, Is CSS one?
Are you a member of any other communities?
Don't recall so :)
Tell us about yourself…
Please show us one (or multiple) of your scripts.
3 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
What is your general programming knowledge?
HTML, Is SCAR one?, Is CSS one?
Are you a member of any other communities?
Don't recall so :)
Tell us about yourself…
From: banditmeow aka CowFish
Well, my name is Terry if you didn't know that and I'm 12 years old :D I've been programming lazily for a long time like since I was in first grade which was HTML. My dad and I worked on it together and made a website. Some interests are scripting(not really HTML anymore), sports, music, my friends, etc. I don't think there's really much else to say so yeah :)
Please show us one (or multiple) of your scripts.
program YewCutter;
{.include SRL\SRL.scar}
{.include SRL\SRL\skill\WoodCutting.scar}
const
YewColor1 = 2184522;
YewColor2 = 3039575;
LoadsPerPlayer = 5;//SET MEEEEE!
var
x, y, Loads, AntiBans, CurrentLoadsPerPlayer: Integer;
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := ''; //Name of Player
Players[0].Pass := ''; //Password of Player
Players[0].Nick := ''; //3-4 letters from Player's name
Players[0].Active := True;
Players[0].BoxRewards := ['mote', 'ostume', 'XP', 'Gem', 'ithril', 'oal', 'une', 'oins'];
{
Players[1].Name := ''; //Name of Player
Players[1].Pass := ''; //Password of Player
Players[1].Nick := ''; //3-4 letters from Player's name
Players[1].Active := True;
Players[1].BoxRewards := ['mote', 'ostume', 'XP', 'Gem', 'ithril', 'oal', 'une', 'oins'];
Players[2].Name := ''; //Name of Player
Players[2].Pass := ''; //Password of Player
Players[2].Nick := ''; //3-4 letters from Player's name
Players[2].Active := True;
Players[2].BoxRewards := ['mote', 'ostume', 'XP', 'Gem', 'ithril', 'oal', 'une', 'oins'];
Players[3].Name := ''; //Name of Player
Players[3].Pass := ''; //Password of Player
Players[3].Nick := ''; //3-4 letters from Player's name
Players[3].Active := True;
Players[3].BoxRewards := ['mote', 'ostume', 'XP', 'Gem', 'ithril', 'oal', 'une', 'oins'];
}
end;
procedure AntiBan;
begin
if not LoggedIn then Exit;
case Random(150) of
1:begin
RandomRClick;
Inc(AntiBans);
Wait(1000);
end;
2:begin
PickUpMouse;
Inc(AntiBans);
Wait(1000);
end;
3:begin
MakeCompass('N');
Wait(1000 + Random(500));
case Random(3) of
0:MakeCompass('S');
1:MakeCompass('W');
2:MakeCompass('E');
end;
Inc(AntiBans);
Wait(1000);
end;
end;
end;
procedure DoAntiRandoms;
begin
if not LoggedIn then Exit;
FindNormalRandoms;
end;
function CheckUpText: Boolean;
begin
if IsUpText('ew') or IsUpText('Yew') then
begin
Result := True;
Status('Chopping Yews.');
end else
begin
Result := False;
Status('Not chopping Yews.');
end;
end;
procedure FindYew;
var
x, y: Integer;
begin
if not LoggedIn then
Exit;
if FindObjTPA(x, y, YewColor1, 5, 121, 115, 1, 5, ['ew', 'Yew']) then
begin
Mouse(x, y, 0, 0, True);
GetMousePos(x, y);
while CheckUpText = True do
repeat
Wait(100);
AntiBan;
DoAntiRandoms;
MMouse(x, y, 0, 0);
CheckUpText;
if InChat('full to') then
Exit;
until(CheckUpText = False or InvFull);
end else
begin
if FindObjTPA(x, y, YewColor2, 5, 121, 115, 1, 5, ['ew', 'Yew']) then
Mouse(x, y, 0, 0, True);
GetMousePos(x, y);
while CheckUpText = True do
repeat
Wait(100);
AntiBan;
DoAntiRandoms;
CheckUpText;
MMouse(x, y, 0, 0);
if InChat('full to') then
Exit;
until(CheckUpText = False or InvFull);
end;
end;
procedure NewTree;
var
x, y, DirtRoad: Integer;
begin
if not LoggedIn then
Exit;
DirtRoad := BitmapFromString(7, 8, 'beNoriugsGgoIAHc8Sik=');
begin
if not FindObjTPA(x, y, YewColor1, 5, 121, 115, 1, 5, ['ew', 'Yew']) then
MakeCompass('N');
Status('Going to the far tree :)');
RadialWalk(AutoColorThis(DirtRoad, 30, MMX1, MMY1, MMX2, MMY2), 101, 106, 59, 0, 0);
FFlag(5);
else
begin
FindYew;
repeat
if IsUpText('ew') then
Wait(100);
until(IsUpText('alk'));
end else
//RadialWalk(AutoColorThis(DirtRoad, 30, MMX1, MMY1, MMX2, MMY2), 260, 270, 65, 0, 0);
Mouse(570, 70, 0, 0, True);
FFlag(5);
repeat
Wait(100);
until(FindObjTPA(x, y, YewColor1, 5, 121, 115, 1, 5, ['ew', 'Yew']));
end;
end;
procedure AxeFinder;
var
Axe, x, y: Integer;
begin
if not LoggedIn then
Exit;
begin
Axe := DTMFromString('78DA6334676660D8CCC8800C3A33841844803' +
'448F43F103082D4AC415503918591401AA466270135AE44986302' +
'547300B71AA02C0300E00409DB');
if FindDTM(Axe, x, y, 0, 0, 700, 700) then
begin
GameTab(4);
WriteLn('Axe is in Inventory.');
Players[CurrentPlayer].Booleans[0] := False;
FreeDTM(Axe);
end else
begin
GameTab(5);
if FindDTM(Axe, x, y, 0, 0, 700, 700) then
WriteLn('Axe is equipped.');
Players[CurrentPlayer].Booleans[0] := True;
FreeDTM(Axe);
end;
GameTab(4);
end;
end;
procedure BankYews;
begin
if not LoggedIn then
Exit;
begin
repeat
Wait(100);
until(FindObjTPA(x, y, 5133396, 5, 121, 60, 1, 5, ['ank', 'ker', 'Banker']));
Status('Banking');
Mouse(x, y, 0, 0, False);
Wait(700 + Random(300));
ChooseOption('ank Banker');
if(Players[CurrentPlayer].Booleans[0] = True) then
DepositAll;
CloseBank;
Inc(CurrentLoadsPerPlayer);
if(Players[CurrentPlayer].Booleans[0] = False) then
Deposit(2,28, True);
CloseBank;
Inc(CurrentLoadsPerPlayer);
if not FindObj(x, y, 'anker', 879767, 5) then
SymbolAccuracy := 0.5;
if FindSymbol(x, y, 'bank') then
Mouse(x, y, 0, 0, True);
FFlag(5);
if FindObjTPA(x, y, 5133396, 5, 121, 60, 1, 5, ['ank', 'ker', 'Banker']) then
begin
Mouse(x, y, 0, 0, False);
Wait(700 + Random(300));
ChooseOption('ank Banker');
if(Players[CurrentPlayer].Booleans[0] = True) then
DepositAll;
CloseBank;
Inc(CurrentLoadsPerPlayer);
if(Players[CurrentPlayer].Booleans[0] = False) then
Deposit(2,28, True);
CloseBank;
Inc(CurrentLoadsPerPlayer);
end;
end;
end;
procedure WalkToBank;
var
x, y,DirtRoad, GeFloor, SymbolDTM: Integer;
begin
if not LoggedIn then
Exit;
begin
DirtRoad := BitmapFromString(7, 8, 'beNoriugsGgoIAHc8Sik=');
GeFloor := BitmapFromString(9, 7, 'beNqrLKysHLIIAG4gV14=');
if InvFull or InChat('full to') then
if FindSymbol(x, y, 'Tree') then
Status('Walking to bank');
MakeCompass('N');
SymbolAccuracy := 0.5;
Mouse(x, y, 0, 0, True);
Wait(3000 + Random(500));
RadialWalk(AutoColorThis(DirtRoad, 30, MMX1, MMY1, MMX2, MMY2), 236, 234, 55, 0, 0);
Wait(1000 + Random(300));
RadialWalk(AutoColorThis(DirtRoad, 30, MMX1, MMY1, MMX2, MMY2), 236, 234, 55, 0, 0);
Wait(100 + Random(300));
RadialWalk(AutoColorThis(GeFloor, 20, MMX1, MMY1, MMX2, MMY2) , 267, 273, 60, 0, 0);
FreeBitmap(DirtRoad);
FreeBitmap(GeFloor);
WriteLn('Walked to Bank!');
end;
end;
procedure WalkBackToYews;
var
x, y, DirtRoad, SymbolDTM: Integer;
begin
if not LoggedIn then
Exit;
begin
MakeCompass('N');
DirtRoad := BitmapFromString(7, 8, 'beNoriugsGgoIAHc8Sik=');
if FindSymbol(x, y, 'bank') then
Status('Returning to yews');
RadialWalk(AutoColorThis(DirtRoad, 30, MMX1, MMY1, MMX2, MMY2) , 85, 92, 72, 0, 0);
FFlag(2);
RadialWalk(AutoColorThis(DirtRoad, 30, MMX1, MMY1, MMX2, MMY2) , 42, 46, 70, 0, 0);
if FindSymbol(x, y, 'Tree') then
Mouse(x+3, y-4, 0, 0, True);
WriteLn('Walked back to trees!');
FreeBitmap(DirtRoad);
end;
end;
procedure Proggy;
begin
ClearDebug;
WriteLn('************************************');
WriteLn(' Yew Cutter ');
WriteLn(' by banditmeow aka CowFish ');
WriteLn(' ');
WriteLn('Worked for ' + TimeRunning + '!');
WriteLn('Did ' + IntToStr(Loads) + ' loads! ');
WriteLn('Performed ' + IntToStr(AntiBans) + ' antibans!');
WriteLn('Gained ' + IntToStr(Loads * 175) + ' experience!');
WriteLn('************************************');
end;
procedure Startup;
begin
ClearDebug;
WriteLn('_____.___. _________ __ __ ');
WriteLn('\__ | | ______ _ __ \_ ___ \ __ ___/ |__/ |_ ___________ ');
WriteLn(' / | |/ __ \ \/ \/ / / \ \/| | \ __\ __\/ __ \_ __ \');
WriteLn(' \____ \ ___/\ / \ \___| | /| | | | \ ___/| | \/');
WriteLn(' / ______|\___ >\/\_/ \______ /____/ |__| |__| \___ >__| ');
WriteLn(' \/ \/ \/ \/ ');
Wait(5000);
end;
procedure ScriptTerminate;
begin
Proggy;
end;
procedure MainLoop;
begin
DeclarePlayers;
LoginPlayer;
AxeFinder;
SetRun(True);
repeat
repeat
FindYew;
NewTree;
until(InvFull or InChat('full to'));
AntiBan;
DoAntiRandoms;
WalkToBank;
BankYews;
Proggy;
AntiBan;
DoAntiRandoms;
WalkBackToYews;
if CurrentLoadsPerPlayer = LoadsPerPlayer then
begin
NextPlayer(True);
end;
if not LoggedIn then
NextPlayer(False);
until(IsFKeyDown(12));
end;
begin
StartUp;
SetupSRL;
MouseSpeed := RandomRange(12, 18);
ActivateClient;
repeat
MainLoop;
until(AllPlayersInactive);
end.