SRL Archive - First Scripts

Holysin's Draynor Willow PowerChopper


holysin

2012-02-09 14:35:26


this is a go at a script iv'e decided to make, feedback would be nice but not needed tbh (i know i need to improve some things) start at the draynor willows with you axe(hatchet) equipped otherwise it'll be dropped also set your compass to northwest for best results.

Known bugs:
sometimes miss-clicks. edit: i added aca so this shouldn't be a problem now

:spot:

my name is sam by the way thats why it says Sam's powerchopper in program im using a seperate file called that to test things :hypocrite:

please no bad comments straight away due to the fact that i'm very nervous about your opinions on this script.

Future Updates:
better report /proggy(added but still implimenting a better one)

Abig thank you goes out to Tehq for helping me out.

holysin

2012-02-09 14:58:57

if you like it post a comment :0 if not tell me how i could improve it for your benefit

rice

2012-02-09 15:41:27

nice beginner script

holysin

2012-02-09 15:43:03

From: rice
nice beginner script


thanks that's much appriciated i got from 55 to 64 wc testing this lol with hati paws though :P

tehq

2012-02-09 15:57:38

At line 49, change it to
 FindNormalRandoms;
At line 50, you may want to raise this
case Random(8) of  
to
case Random(20) of  

Just suggestions of course, but great first script!

tehq

2012-02-09 16:06:17

Just noticed a few more things.

Question:
At line 84,
Until not IsUpText('ew') or (InvFull); 
Isn't this a willow script? ;)

Suggestion:
Add
LoadCount = 50; 
to constants and add count to variables line 28
x,y,LoadsDone,Count:integer; 
I think you know what i'm implying, good luck! :)

holysin

2012-02-09 16:09:33

From: tehq
Just noticed a few more things.

Question:
At line 84,
Until not IsUpText('ew') or (InvFull); 
Isn't this a willow script? ;)

Suggestion:
Add
LoadCount = 50; 
to constants and add count to variables line 28
x,y,LoadsDone,Count:integer; 
I think you know what i'm implying, good luck! :)

thanks for the feedback ill try and update as soon as possible but have asnow storm and it seems to be lagging my internet up lol and for some strange reason smart also :S

youknowwho

2012-02-09 16:30:52

interesting, this is my first time looking at simba, it looks pretty simple. By the way it said my password was like 1946 days old when i just signed on. How old is this forum?

holysin

2012-02-09 16:35:36

From: youknowwho
interesting, this is my first time looking at simba, it looks pretty simple. By the way it said my password was like 1000 days old when i just signed on. How old is this forum?


rofl i dont know tbh but you signed up in 06 :D

tehq

2012-02-09 16:40:44

From: youknowwho
interesting, this is my first time looking at simba, it looks pretty simple. By the way it said my password was like 1946 days old when i just signed on. How old is this forum?


Started in Feb '06. You're an old-timer! :p

holysin

2012-02-09 16:43:01

From: tehq
Started in Feb '06. You're an old-timer! :p

for some strange reason the script has appeared to stop clicking the willows abut still drops the inv :|

tehq

2012-02-09 16:50:35

From: holysin
for some strange reason the script has appeared to stop clicking the willows abut still drops the inv :|


I'd be glad to test it for you and post feedback.

holysin

2012-02-09 16:53:04

From: tehq
I'd be glad to test it for you and post feedback.

please this would be helpfull i might just have accidently done something

tehq

2012-02-09 17:24:29

Dropping supports hatchet in first inventory slot; should have less miss-clicks.



program Sams_PowerChopper;
{$DEFINE SMART}
{$i srl\srl.simba}


procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

With Players[0] Do
Begin
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active:=True

End;

End;
const
SRLStats_Username = '';
SRLStats_Password = '';
LoadCount = 50;
var
x,y,LoadsDone,Count:integer;
Procedure Report;
begin
ClearDebug;
WriteLn('========================================= ============================');
WriteLn(Padr('|| LoadsDone:'+ IntToStr(LoadsDone), 67) + '||');
WriteLn('========================================= ============================');
stats_IncVariable('Willow Logs Chopped', 1);
end;
Procedure PlayerSetup;
begin
LoginPlayer;
SetAngle(SRL_ANGLE_HIGH);
FindNormalRandoms;
SetRun(True);
end;

procedure AntiBan;
begin
if(not(LoggedIn))then
Exit;
FindNormalRandoms
case Random(8) of
0:
begin
HoverSkill('Woodcutting', false);
wait(2453+Random(432));
end;
1: PickUpMouse;
2:
begin
MakeCompass('N');
wait(100+random(133));
MakeCompass('S');
wait(50+random(133));
MakeCompass('N');

end;
end;
end;


procedure ChopTree;
var x, y: integer;
begin
repeat
FindNormalRandoms;
if FindObj(x,y,'hop',3227711,1) or FindObj(x,y,'own',3227711,1) or FindObj(x,y,'illow',3227711,20) or WaitupText('hop Down', 545) then
begin
Mouse(x,y,0,0,true);
ChooseOption('Chop Down');
end;
repeat
wait(4000+random(2000));
Until not IsUpText('illow') or (InvFull);
until(InvFull);
end;
Procedure DropLogs;
var
i: Integer;
begin
FindNormalRandoms;
Writeln('Dropping');
for I:=2 to 28 do
begin
if FindNormalRandoms or (not LoggedIn) then
Exit;

InvMouse(I,mouse_right);
Wait(RandomRange(50,80));
if ChooseOption('rop') then
Wait(RandomRange(50,70));

if ExistsItem(I) then
begin
InvMouse(I,2);
wait(RandomRange(100,200));
if ChooseOption('rop') then
begin
writeln('dropping again');
Wait(500+Random(800));
end;

inc(LoadsDone);
end;
end;
end;



begin
SetupSRL;
ActivateClient;
DeclarePlayers;
PlayerSetup;
repeat
SetAngle(SRL_ANGLE_HIGH);
ChopTree;
Antiban;
DropLogs;
inc(count);
Until(count=loadcount);

end.

holysin

2012-02-09 17:28:31

From: tehq
Dropping supports hatchet in first inventory slot; should have less miss-clicks.
I just noticed this in your anti-ban, Take Out Pickupmouse!


program Sams_PowerChopper;
{$DEFINE SMART}
{$i srl\srl.simba}


procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

With Players[0] Do
Begin
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active:=True

End;

End;
const
SRLStats_Username = '';
SRLStats_Password = '';
LoadCount = 50;
var
x,y,LoadsDone,Count:integer;
Procedure Report;
begin
ClearDebug;
WriteLn('========================================= ============================');
WriteLn(Padr('|| LoadsDone:'+ IntToStr(LoadsDone), 67) + '||');
WriteLn('========================================= ============================');
stats_IncVariable('Willow Logs Chopped', 1);
end;
Procedure PlayerSetup;
begin
LoginPlayer;
SetAngle(SRL_ANGLE_HIGH);
FindNormalRandoms;
SetRun(True);
end;

procedure AntiBan;
begin
if(not(LoggedIn))then
Exit;
FindNormalRandoms
case Random(8) of
0:
begin
HoverSkill('Woodcutting', false);
wait(2453+Random(432));
end;
1: PickUpMouse;
2:
begin
MakeCompass('N');
wait(100+random(133));
MakeCompass('S');
wait(50+random(133));
MakeCompass('N');

end;
end;
end;


procedure ChopTree;
var x, y: integer;
begin
repeat
FindNormalRandoms;
if FindObj(x,y,'hop',3227711,1) or FindObj(x,y,'own',3227711,1) or FindObj(x,y,'illow',3227711,20) or WaitupText('hop Down', 545) then
begin
Mouse(x,y,0,0,true);
ChooseOption('Chop Down');
end;
repeat
wait(4000+random(2000));
Until not IsUpText('illow') or (InvFull);
until(InvFull);
end;
Procedure DropLogs;
var
i: Integer;
begin
FindNormalRandoms;
Writeln('Dropping');
for I:=2 to 28 do
begin
if FindNormalRandoms or (not LoggedIn) then
Exit;

InvMouse(I,mouse_right);
Wait(RandomRange(50,80));
if ChooseOption('rop') then
Wait(RandomRange(50,70));

if ExistsItem(I) then
begin
InvMouse(I,2);
wait(RandomRange(100,200));
if ChooseOption('rop') then
begin
writeln('dropping again');
Wait(500+Random(800));
end;

inc(LoadsDone);
end;
end;
end;



begin
SetupSRL;
ActivateClient;
DeclarePlayers;
PlayerSetup;
repeat
SetAngle(SRL_ANGLE_HIGH);
ChopTree;
Antiban;
DropLogs;
inc(count);
Until(count=loadcount);

end.

k
but if i go back to the very basicss of a first save it clicks but lags i restart it and get a error -.- virtual line 45 only part i can remember from it lol :S

holysin

2012-02-09 17:30:35

From: tehq
Dropping supports hatchet in first inventory slot; should have less miss-clicks.
I just noticed this in your anti-ban, Take Out Pickupmouse!


program Sams_PowerChopper;
{$DEFINE SMART}
{$i srl\srl.simba}


procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

With Players[0] Do
Begin
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active:=True

End;

End;
const
SRLStats_Username = '';
SRLStats_Password = '';
LoadCount = 50;
var
x,y,LoadsDone,Count:integer;
Procedure Report;
begin
ClearDebug;
WriteLn('========================================= ============================');
WriteLn(Padr('|| LoadsDone:'+ IntToStr(LoadsDone), 67) + '||');
WriteLn('========================================= ============================');
stats_IncVariable('Willow Logs Chopped', 1);
end;
Procedure PlayerSetup;
begin
LoginPlayer;
SetAngle(SRL_ANGLE_HIGH);
FindNormalRandoms;
SetRun(True);
end;

procedure AntiBan;
begin
if(not(LoggedIn))then
Exit;
FindNormalRandoms
case Random(8) of
0:
begin
HoverSkill('Woodcutting', false);
wait(2453+Random(432));
end;
1: PickUpMouse;
2:
begin
MakeCompass('N');
wait(100+random(133));
MakeCompass('S');
wait(50+random(133));
MakeCompass('N');

end;
end;
end;


procedure ChopTree;
var x, y: integer;
begin
repeat
FindNormalRandoms;
if FindObj(x,y,'hop',3227711,1) or FindObj(x,y,'own',3227711,1) or FindObj(x,y,'illow',3227711,20) or WaitupText('hop Down', 545) then
begin
Mouse(x,y,0,0,true);
ChooseOption('Chop Down');
end;
repeat
wait(4000+random(2000));
Until not IsUpText('illow') or (InvFull);
until(InvFull);
end;
Procedure DropLogs;
var
i: Integer;
begin
FindNormalRandoms;
Writeln('Dropping');
for I:=2 to 28 do
begin
if FindNormalRandoms or (not LoggedIn) then
Exit;

InvMouse(I,mouse_right);
Wait(RandomRange(50,80));
if ChooseOption('rop') then
Wait(RandomRange(50,70));

if ExistsItem(I) then
begin
InvMouse(I,2);
wait(RandomRange(100,200));
if ChooseOption('rop') then
begin
writeln('dropping again');
Wait(500+Random(800));
end;

inc(LoadsDone);
end;
end;
end;



begin
SetupSRL;
ActivateClient;
DeclarePlayers;
PlayerSetup;
repeat
SetAngle(SRL_ANGLE_HIGH);
ChopTree;
Antiban;
DropLogs;
inc(count);
Until(count=loadcount);

end.

Ty for the better drop procedure:hypocrite:

holysin

2012-02-09 17:36:17

From: tehq
Dropping supports hatchet in first inventory slot; should have less miss-clicks.



program Sams_PowerChopper;
{$DEFINE SMART}
{$i srl\srl.simba}


procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

With Players[0] Do
Begin
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active:=True

End;

End;
const
SRLStats_Username = '';
SRLStats_Password = '';
LoadCount = 50;
var
x,y,LoadsDone,Count:integer;
Procedure Report;
begin
ClearDebug;
WriteLn('========================================= ============================');
WriteLn(Padr('|| LoadsDone:'+ IntToStr(LoadsDone), 67) + '||');
WriteLn('========================================= ============================');
stats_IncVariable('Willow Logs Chopped', 1);
end;
Procedure PlayerSetup;
begin
LoginPlayer;
SetAngle(SRL_ANGLE_HIGH);
FindNormalRandoms;
SetRun(True);
end;

procedure AntiBan;
begin
if(not(LoggedIn))then
Exit;
FindNormalRandoms
case Random(8) of
0:
begin
HoverSkill('Woodcutting', false);
wait(2453+Random(432));
end;
1: PickUpMouse;
2:
begin
MakeCompass('N');
wait(100+random(133));
MakeCompass('S');
wait(50+random(133));
MakeCompass('N');

end;
end;
end;


procedure ChopTree;
var x, y: integer;
begin
repeat
FindNormalRandoms;
if FindObj(x,y,'hop',3227711,1) or FindObj(x,y,'own',3227711,1) or FindObj(x,y,'illow',3227711,20) or WaitupText('hop Down', 545) then
begin
Mouse(x,y,0,0,true);
ChooseOption('Chop Down');
end;
repeat
wait(4000+random(2000));
Until not IsUpText('illow') or (InvFull);
until(InvFull);
end;
Procedure DropLogs;
var
i: Integer;
begin
FindNormalRandoms;
Writeln('Dropping');
for I:=2 to 28 do
begin
if FindNormalRandoms or (not LoggedIn) then
Exit;

InvMouse(I,mouse_right);
Wait(RandomRange(50,80));
if ChooseOption('rop') then
Wait(RandomRange(50,70));

if ExistsItem(I) then
begin
InvMouse(I,2);
wait(RandomRange(100,200));
if ChooseOption('rop') then
begin
writeln('dropping again');
Wait(500+Random(800));
end;

inc(LoadsDone);
end;
end;
end;



begin
SetupSRL;
ActivateClient;
DeclarePlayers;
PlayerSetup;
repeat
SetAngle(SRL_ANGLE_HIGH);
ChopTree;
Antiban;
DropLogs;
inc(count);
Until(count=loadcount);

end.

i just noticed what i changed with the choptree procedure instead of illow i put ow by accident (mainly because im preoccupied with the snowfall ) :D

holysin

2012-02-09 18:03:44

v1.1 released

holysin

2012-02-10 13:01:08

please use 1.1

tehq

2012-02-10 15:04:31

From: holysin
please use 1.1

From: holysin
v1.1 released


Please don't write a new post for each small update.. Just edit your main post ^^

holysin

2012-02-10 15:32:26

From: tehq
Please don't write a new post for each small update.. Just edit your main post ^^

k will do.

holysin

2012-02-14 18:18:02

*Bump*

Please download the latest version i have included autocoloraid