SRL Archive - First Scripts

First Willow Cutting/ Banker Script - So Far...


Choob'R'Us

2007-10-10 03:06:31

I'M DONE! It chops the willows, brings them to the bank and deposits them. The only problem is that once it deposits the willows, the camera turns north to the highest angle, cutting off view of the willows, thus preventing the script continuing without human intervention. Can you tell me how to fix this? Thanx! :D

Dumpin

2007-10-10 13:05:33

not bad, try finish it before posting.. anyway heres something without errors, that compiles.( did the chop part to not sure it works )

check attachment

matiquielma

2007-10-10 13:41:56

Hey guys i'd like to do a willow/banker in draynor, where is a good guide to make
it?

Dumpin

2007-10-10 15:02:34

just try some tutorials and with some little improvise you can do it :)

TViYH

2007-10-10 15:21:50

Here's your edited script. I added a proggy :D:
program WillowBanker;
{.include srl/srl.scar}
Const
WillowColor=2185809;
BankSymbolColor=4901104;

Var Chopped: Integer;
Procedure DeclarePlayers;
begin
HowManyPlayers:= 6;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:= 0;
Players[0].Name := 'Username'; //UserName
Players[0].Pass := 'Password'; //Password
Players[0].Nick := 'Nick'; //2-4 letters of username
Players[0].Integers[1] := 10; //Number of loads before switching
Players[0].Booleans[1] := True; //Is the axe wielded?
Players[0].Active := True; //Active
Players[1].Name := 'Username'; //UserName
Players[1].Pass := 'Password'; //Password
Players[1].Nick := 'Nick'; //2-4 letters of username
Players[1].Integers[1] := 10; //Number of loads before switching
Players[1].Booleans[1] := True; //Is the axe wielded?
Players[1].Active := True;
Players[2].Name := 'Username'; //UserName
Players[2].Pass := 'Password'; //Password
Players[2].Nick := 'Nick'; //2-4 letters of username
Players[2].Integers[1] := 10; //Number of loads before switching
Players[2].Booleans[1] := True; //Is the axe wielded?
Players[2].Active := True; //Active
Players[3].Name := 'Username'; //UserName
Players[3].Pass := 'Password'; //Password
Players[3].Nick := 'Nick'; //2-4 letters of username
Players[3].Integers[1] := 10; //Number of loads before switching
Players[3].Booleans[1] := True; //Is the axe wielded?
Players[3].Active := True; //Active
Players[4].Name := 'Username'; //UserName
Players[4].Pass := 'Password'; //Password
Players[4].Nick := 'Nick'; //2-4 letters of username
Players[4].Integers[1] := 10; //Number of loads before switching
Players[4].Booleans[1] := True; //Is the axe wielded?
Players[4].Active := True; //Active
Players[5].Name := 'Username'; //UserName
Players[5].Pass := 'Password'; //Password
Players[5].Nick := 'Nick'; //2-4 letters of username
Players[5].Integers[1] := 10; //Number of loads before switching
Players[5].Booleans[1] := True; //Is the axe wielded?
Players[5].Active := True; //Active
Writeln('Using '+IntToStr(HowManyPlayers)+' Players');
NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick, UpChars);
end;
procedure Login;
begin
if (not(LoggedIn)) then
LoginPlayer;
end;
procedure DoChats;
begin
if (not(LoggedIn)) then
Exit;
SetChat('off', 1);
SetChat('friends', 2);
SetChat('on', 3);
SetChat('off', 4);
end;
function FindFastRandoms: Boolean;
var
i: Integer;
begin
for i:=1 to 10 do
begin
case I of
1: If FindDead then
Result := True;
2: If FindMod then
Result := True;
3: If FindMime then
Result := True;
4: If FindMaze then
Result := True;
5: If FindQuiz then
Result := True;
6: If FindDemon then
Result := True;
7: begin
if NoGameTab then
begin
Result := True;
Players[CurrentPlayer].loc := 'No GameTab';
Logout;
Exit;
end;
end;
8: begin
if InBlack then
begin
Result := True;
Players[CurrentPlayer].loc := 'InBlack';
Logout;
Exit;
end;
end;
9: RC;
10: Respond;
end;
wait(1);
end;
end;
procedure FindRandoms;
begin
FindTalk;
FindFastRandoms;
FindNormalRandoms;
FindLamp('Woodcutting');
SolvePinball;
if (FindFight) then
begin
MakeCompass('N');
RunTo('N', True);
Wait(7000 +Random(3000));
RunBack;
end;
end;
procedure AntiBan;
begin
if (not(LoggedIn)) then
Exit;
case Random(8) of
0: RandomRClick;
1: HoverSkill('Woodcutting', False);
2: RandomMovement;
3: BoredHuman;
4: PickUpMouse;
5: AlmostLogout;
6: begin
GameTab(1 +Random(12));
wait(2000 +Random(1000));
GameTab(4);
end;
end;
end;
procedure Chop;
begin
if Findcolor(x,y,WillowColor,333,218,350,230) then
mouse(x, y, 1, 1, false);
if IsupText('willow') then
chooseoption('chop');
status('chopped down a willow');
Chopped := Chopped + 1;
end;

begin // These functions will start te script ( login player find window ect..)
SetupSRL;
FindWindowBySize(766, 504);
Activateclient;
DeclarePlayers;
LoginPlayer;
repeat // all function below here will repeat untill false.
FindFastRandoms;
FindRandoms;
Antiban;
Chop;
// bank needs here if you made a bank function
WriteLn('Chopped '+ IntToStr(Chopped) + ' willows!');
until(false);
end.

the ghetto8

2007-10-10 20:56:29

Is there s certain spot you are supposed to start out on this? I started it in the draynor bank and the mouse just moved around in random places and did nothing. Although it did exam the ground once. The script I was using was the one dumpin posted

Dumpin

2007-10-11 09:45:21

LOL?! thats my script… not his… you just added a writeln and removed the spaces between the declare players? lol

wcman390

2007-10-11 12:17:18

From: ChoobR
Please, let me know if i'm doing anything wrong so far.
Note: Some sections are not complete.


good script, ran it for a while nice :D

the ghetto8

2007-10-11 20:06:12

Hey I want to try out this script but when I try to run it I get this.

Line 7: [Error] (7:11): Identifier expected in script C:\DOCUME~1\MATTPR~1\LOCALS~1\Temp\First Script.scar
Line 7: [Error] (7:13): colon (':') expected in script C:\DOCUME~1\MATTPR~1\LOCALS~1\Temp\First Script.scar

Can someone please tell me what this means because I am a noob at scar.

Choob'R'Us

2007-10-11 21:12:58

My first scrip is compleated…aside from the fact it needs fixing up a bit. See first post for details.:D

Choob'R'Us

2007-10-13 02:22:36

Revised Final Version Completed: See first post for more details.

Naum

2007-10-13 04:02:50

Try if findobj. Because then it will hover over the same colors which is very detectable.

->{Nauman}<-

Dumpin

2007-10-13 04:22:41

final version is pretty good , good job !

timode

2007-10-13 04:27:06

I Havent tried it yet but it looks pretty good - ill leave an edit in a min.

timode

2007-10-13 04:40:50

Line 27: [Error] (14707:32): Identifier expected in script C:\Documents and Settings\Home\Desktop\Draynor Wood Cutter and Banker.scar - doesnt want to work for me - nothing does.

70rd4n

2007-10-13 04:44:18

Pretty solid for your first script man. you got to post the finished master piece up man.. keep it dude

l8rs
West syd:google:

70rd4n

2007-10-13 04:45:34

sorry man didnt mean to add the last icon.. but still keep it up man

dzidek01

2007-10-13 05:58:40

good job man

ShowerThoughts

2007-10-13 06:00:52

lol ^^ stop spamming or your post count will be 0 and you never will be junior member

dzidek01

2007-10-13 06:05:33

lol im saying what i think about it… lol

Choob'R'Us

2007-10-13 20:43:51

Nauman… How would if Findobj keep the script flowing? The problem is that there are no willows on screen after it deposits the willows in the bank. I don't see how if Findobj would fix that…

irishpir8

2007-10-14 16:37:12

cool

derrick slay

2007-10-26 08:54:13

good SCRIPT !!

Choob'R'Us

2007-10-31 16:56:40

From: derrick slay
good SCRIPT !!


thanks…
I'm suprised on how good I did for my first script.
It still has a few bugs to work out though…

wesleyxD

2007-11-11 15:59:26

i got error

runescapeautoer123

2007-11-13 07:29:35

very gd

alessio12345

2007-11-13 17:27:34

this is nice ran it for a while got me like 100 logs

dwarfo

2007-12-18 14:07:11

yea i can not get my scar to do anything all it says is

Line 144: [Error] (14825:14) : Unknown idnetifier 'x' in script
Faild when compiling
Line 144: [Error] (14825:14) : Unknown idnetifier 'x' in script
Faild when compiling
plzzzz help i am a noob at scar also am i doing somthing rong


This is the scriptVVVVVV

program WillowBanker;
{.include srl/srl.scar}
Const
WillowColor=2185809;
BankSymbolColor=4901104;

Var Chopped: Integer;
Procedure DeclarePlayers;
begin
HowManyPlayers:= 6;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:= 0;
Players[0].Name := 'Username'; //UserName
Players[0].Pass := 'Password'; //Password
Players[0].Nick := 'Nick'; //2-4 letters of username
Players[0].Integers[1] := 10; //Number of loads before switching
Players[0].Booleans[1] := True; //Is the axe wielded?
Players[0].Active := True; //Active
Players[1].Name := 'Username'; //UserName
Players[1].Pass := 'Password'; //Password
Players[1].Nick := 'Nick'; //2-4 letters of username
Players[1].Integers[1] := 10; //Number of loads before switching
Players[1].Booleans[1] := True; //Is the axe wielded?
Players[1].Active := True;
Players[2].Name := 'Username'; //UserName
Players[2].Pass := 'Password'; //Password
Players[2].Nick := 'Nick'; //2-4 letters of username
Players[2].Integers[1] := 10; //Number of loads before switching
Players[2].Booleans[1] := True; //Is the axe wielded?
Players[2].Active := True; //Active
Players[3].Name := 'Username'; //UserName
Players[3].Pass := 'Password'; //Password
Players[3].Nick := 'Nick'; //2-4 letters of username
Players[3].Integers[1] := 10; //Number of loads before switching
Players[3].Booleans[1] := True; //Is the axe wielded?
Players[3].Active := True; //Active
Players[4].Name := 'Username'; //UserName
Players[4].Pass := 'Password'; //Password
Players[4].Nick := 'Nick'; //2-4 letters of username
Players[4].Integers[1] := 10; //Number of loads before switching
Players[4].Booleans[1] := True; //Is the axe wielded?
Players[4].Active := True; //Active
Players[5].Name := 'Username'; //UserName
Players[5].Pass := 'Password'; //Password
Players[5].Nick := 'Nick'; //2-4 letters of username
Players[5].Integers[1] := 10; //Number of loads before switching
Players[5].Booleans[1] := True; //Is the axe wielded?
Players[5].Active := True; //Active
Writeln('Using '+IntToStr(HowManyPlayers)+' Players');
NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick, UpChars);
end;
procedure Login;
begin
if (not(LoggedIn)) then
LoginPlayer;
end;
procedure DoChats;
begin
if (not(LoggedIn)) then
Exit;
SetChat('off', 1);
SetChat('friends', 2);
SetChat('on', 3);
SetChat('off', 4);
end;
function FindFastRandoms: Boolean;
var
i: Integer;
begin
for i:=1 to 10 do
begin
case I of
1: If FindDead then
Result := True;
2: If FindMod then
Result := True;
3: If FindMime then
Result := True;
4: If FindMaze then
Result := True;
5: If FindQuiz then
Result := True;
6: If FindDemon then
Result := True;
7: begin
if NoGameTab then
begin
Result := True;
Players[CurrentPlayer].loc := 'No GameTab';
Logout;
Exit;
end;
end;
8: begin
if InBlack then
begin
Result := True;
Players[CurrentPlayer].loc := 'InBlack';
Logout;
Exit;
end;
end;
9: RC;
10: Respond;
end;
wait(1);
end;
end;
procedure FindRandoms;
begin
FindTalk;
FindFastRandoms;
FindNormalRandoms;
FindLamp('Woodcutting');
SolvePinball;
if (FindFight) then
begin
MakeCompass('N');
RunTo('N', True);
Wait(7000 +Random(3000));
RunBack;
end;
end;
procedure AntiBan;
begin
if (not(LoggedIn)) then
Exit;
case Random(8) of
0: RandomRClick;
1: HoverSkill('Woodcutting', False);
2: RandomMovement;
3: BoredHuman;
4: PickUpMouse;
5: AlmostLogout;
6: begin
GameTab(1 +Random(12));
wait(2000 +Random(1000));
GameTab(4);
end;
end;
end;
procedure Chop;
begin
if Findcolor(x,y,WillowColor,333,218,350,230) then
mouse(x, y, 1, 1, false);
if IsupText('willow') then
chooseoption('chop');
status('chopped down a willow');
Chopped := Chopped + 1;
end;

begin // These functions will start te script ( login player find window ect..)
SetupSRL;
FindWindowBySize(766, 504);
Activateclient;
DeclarePlayers;
LoginPlayer;
repeat // all function below here will repeat untill false.
FindFastRandoms;
FindRandoms;
Antiban;
Chop;
// bank needs here if you made a bank function
WriteLn('Chopped '+ IntToStr(Chopped) + ' willows!');
until(false);
end.
program New;
begin
end.