SRL Archive - First Scripts

Second Script oak cutter and banker


71runemaker

2007-06-30 09:24:24

Hello, I made an oak cutter and banker. Hope you like it and post errors or bugs
MSN - [email]pyro_dudes@hotmail.com[/email]

EDIT: New version 2.0

/////////////////////////////////////////////////////////////////////////
// //
// Script Info //
// Name: Oak Cutter and Banker 1000 //
// Author: 71runemaker //
// Version: 2.0 //
// SCAR Version: 2.03+ //
// SRL Version: Tested with 3.7 //
// Description: Cuts and banks a full load of Oak //
// In Varrock and banks its //
// //
// *UPDATE HISTORY* //
// Version 1.0 //
// First Release //
// //
// Version 1.1 //
// Improved walking to oaks //
// Added Ent finder //
// Added axe head finder //
// More anti-ban //
// //
// Version 1.2 //
// Multiplayer working //
// Added failsafe (sorta) //
// Fixed open bank procedure //
// //
// Version 2.0 //
// Fixed walking to oaks //
// Won't quit after you cut oaks //
// //
// //
// //
/////////////////////////////////////////////////////////////////////////

program OakCutterAndBanker;
{.include SRL\SRL.scar}
{.include SRL\SRL\skill\WoodCutting.scar}

var
i: Integer;

////////////////////////////////Setup////////////////////////////////////
//
const TreeColor1 = 3168336; //Color of Oak Tree //
const TreeColor2 = 2900024; //Another color of Oak Tree //
const TreeColor3 = 2504752; //Another color of Oak Tree //
const MMTree = 1068840; //Color of trees on minimap //
const RoadMM = 6186343; //Color of road on minimap //
const GrassC = 2907485; //Color of grass on MainScreen //
const GrassCMM = 2119764; //Color of grass near trees MiniMap //
const BankMini = 2245193; //Color of bank floor on MiniMap //
const BankColor1 = 3560029; //Color of bank floor on MainScreen //
const Wait1 = 3000; //Time to wait before clicking tree again //
const Loads = 2; //Load want to do before switching characters //
//
//////////////////////////////////End////////////////////////////////////

procedure DeclarePlayers;

begin
HowManyPlayers :=6; // How many players are you using?
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:=0; // Starting Player

Players[0].Name :='Username';
Players[0].Pass :='Password';
Players[0].Nick :='Nickname';
Players[0].Active:=True;
Players[0].Boolean1:=True; //True if you can weild axe, false if cannot

Players[1].Name :='Username';
Players[1].Pass :='Password';
Players[1].Nick :='Nickname';
Players[1].Active:=False;
Players[1].Boolean1:=True; //True if you can weild axe, false if cannot

Players[2].Name :='Username';
Players[2].Pass :='Password';
Players[2].Nick :='Nickname';
Players[2].Active:=False;
Players[2].Boolean1:=True; //True if you can weild axe, false if cannot

Players[3].Name :='Username';
Players[3].Pass :='Password';
Players[3].Nick :='Nickname';
Players[3].Active:=False;
Players[3].Boolean1:=True; //True if you can weild axe, false if cannot

Players[4].Name :='Username';
Players[4].Pass :='Password';
Players[4].Nick :='Nickname';
Players[4].Active:=False;
Players[4].Boolean1:=True; //True if you can weild axe, false if cannot

Players[5].Name :='Username';
Players[5].Pass :='Password';
Players[5].Nick :='Nickname';
Players[5].Active:=False;
Players[5].Boolean1:=True; //True if you can weild axe, false if cannot
end;

procedure NoBan;
begin
RandomRClick;
PickUpMouse;
end;

procedure WalkToOaks;
begin
FindAxeHeadColor;
RadialWalk( BankMini , 217, 577, 16, 0, 0);
Flag;
RadialRoadWalk( BankColor1, 217, 577, 16, 0, 0);
Flag;
RadialWalk( RoadMM , 231, 591, 60, 0, 0);
Flag;
RadialRoadWalk( RoadColor, 231, 591, 60, 0, 0);
Flag;
RadialWalk( GrassCMM , 208, 568, 31, 0, 0);
Flag
RadialRoadWalk( GrassC, 208, 568, 31, 0, 0);
end;

procedure CutOaks;
begin
MakeCompass ('N');
repeat
if (FindColor (x,y,TreeColor1,0,0,600,600)) and
(FindColor (x,y,TreeColor2,0,0,600,600)) and
(FindColor (x,y,TreeColor3,0,0,600,600)) and
(IsUpText('Oak')) then
Mouse(x,y,1,1,true);
Wait(Wait1+random(1000));
FindHead;
FindEnt(TreeColor1);
FindNormalRandoms;
until (InvFull);
end;

procedure WalkToBank;
begin
RadialWalk( RoadMM , 58, 418, 62 ,0, 0);
Flag;
RadialRoadWalk(RoadColor, 58, 418, 62, 0, 0);
Flag;
RadialWalk( BankMini , 349, 709, 22, 0, 0);
Flag;
RadialRoadWalk(BankColor1, 349, 709, 22, 0, 0);
end;

procedure BankOaks;
begin
OpenBank3;
DepositAll;
CloseBank;
end;

begin
SetupSRL;
repeat
WalkToOaks;
CutOaks;
WalkToBank;
BankOaks;
until(i>= Loads);
repeat
NextPlayer(false);
until (false)
end.

Harry

2007-06-30 09:36:10

You have to edit HowManyPlayers :=1; to how many players are true/false

Besides that, looks okay from me.

71runemaker

2007-06-30 09:37:45

Did you test it?

bobobopo2

2007-06-30 13:13:27

potential to become a great have u =)
and nice job for a first script altho im a leecher i give credit when credit is due

Ilikepie1995

2007-06-30 21:57:24

Looks pretty nice :).
Try adding a Report; Procedure.

Venom666

2007-07-01 10:26:35

yea, looks nice but maybe some ent finding and axe head attacher?

71runemaker

2007-07-01 18:35:49

Updated it :D version 1.1

71runemaker

2007-07-01 19:10:01

version 1.2 now :D

71runemaker

2007-07-02 10:40:08

Updated again 2.0 now try it runs alot better :D

Negaal

2007-07-12 07:24:39

Very simple!
Nice
btw, whats difference about radialminimapwalk…?

yanix

2007-07-13 16:27:27

nice and keep up the work

71runemaker

2007-11-01 18:14:39

Hello, I'm back in the scripting mood. :D But, I need some help on some things. If anyone has any advice on my problems please email me or add me to MSN at [email]pyro_dudes@hotmail.com[/email]. Thank you! :)

runescapeautoer123

2007-11-13 07:42:29

the scripts using BOOLEAN don't work for some reason

U Got Jacked Up

2007-11-13 12:14:46

where do u suggest to run this at what oak trees?

rogeruk

2007-11-13 14:51:01

From: runescapeautoer123
the scripts using BOOLEAN don't work for some reason


Its because the thread is sooooo old!. Please start reading the damn thread dates!!

migaeler1

2007-12-19 06:58:08

hello!

appolo13

2009-09-22 22:48:50

im going to try it out right now

Dynamite

2009-09-22 23:02:56

Outdated by 2 years.

T~M

appolo13

2009-09-27 05:08:22

yes u are right it dont works:(

Dynamite

2009-09-27 13:14:23

From: appolo13
yes u are right it dont works:(


Stop spamming! OMG!

Tsige

2009-10-06 17:14:05

looks awesome gonna try