SRL Archive - First Scripts

Draynor Willow Cutter - By .. Aaronator


Aaronator

2009-10-12 19:42:07

Draynor Willow Chopper + Banker


Note - You need scar 3.21 + SRL From the DEV'S svn.



Features

TPA'S for cutting
Banking
Multi-player
Advanced Anti-ban
Anti-randoms
Fail safes
DDTM + DTM
Works Perfectly
Progress Report


History
[VER 0.9] 10/12 - Released


Progress Reports
[PHP]
Ran for : 2 minuites
Account : ******
Loads : 1
Logs : 16 [/PHP]


Copied this thread format from someone else's

Please rate+comment+post progress reports

Download

Aaronator

2009-10-12 19:53:46

I'm seeing things, i thought someone posted :)

Neehosoft

2009-10-12 19:57:26

From: Aaronator
I'm seeing things, i thought someone posted :)


:)
Haha,very nice script. Will post proggy in a minute.

Aaronator

2009-10-12 19:58:50

Id rather not have a 1 minute proggy, but if you mean you will post a proggy later and your gonna comment on the script now, then Hooray! :)

PS: (;))

Neehosoft

2009-10-12 20:01:59

From: Aaronator
Id rather not have a 1 minute proggy, but if you mean you will post a proggy later and your gonna comment on the script now, then Hooray! :)

PS: (;))


Well here's the proggy:
[PHP]Ran for : 2 minuites
Account : ******
Loads : 1
Logs : 16[/PHP]
Put it on proggy list pl0x?

Aaronator

2009-10-12 20:14:44

From: Neehosoft
Well here's the proggy:
[PHP]Ran for : 2 minuites
Account : ******
Loads : 1
Logs : 16[/PHP]
Put it on proggy list pl0x?


How couldn't i?

Neehosoft

2009-10-12 20:16:23

From: Aaronator
How couldn't i?


I know its crazy right?
Haha real progress report will be comming tommorow from a overnight run with 8 accs.

Aaronator

2009-10-12 20:17:39

From: Neehosoft
I know its crazy right?
Haha real progress report will be comming tommorow from a overnight run with 8 accs.


I cant wait, im practically jumping out of my chair right now! :)

Neehosoft

2009-10-12 20:21:55

From: Aaronator
I cant wait, im practically jumping out of my chair right now! :)


I'll keep it running during school to :)

3Garrett3

2009-10-12 20:31:00

From: Aaronator
I cant wait, im practically jumping out of my chair right now! :)


Hahah. Do you two know eachother irl? Or is there some kind of bond happening already? XD

I dont really have any woodcut accounts, but if you would like, I can go through the script and make some comments on it. I know some people don't like having a critique of their script though, so I will ask first.

E: NOOOOOOOO I just wrote such a long amount of tips, then accidentally pressed something on the keyboard that closed the window. Ctrl or something :\ Fuck. I'll try it again. Something shorter though.

Here goes.

Just commenting on the TPA part, since everything else I saw was just little things about standards and stuff.

Where you have:

FindColorsTolerance(TPA, 8039586, MSX1,MSY1,MSX2,MSY2,5);

There is no failsafe. If you call TPAtoATPA and the TPA has no colours stored in it (Ie, the colour wasn't found) it will give you a runtime error. Solved simply by:


FindColorsTolerance(TPA, 8039586, MSX1,MSY1,MSX2,MSY2,5);
If Length(TPA) = 0 Then
Begin
FindColorsTolerance(TPA, {Another Colour here}, MSX1, MSY1, MSX2, MSY2, {Tol})
If Length(TPA) = 0 Then
Begin
Writeln('Failed');
TerminateScript;
End;
End;

Which adds a couple checks for the colour, and can look for another colour.


SetColorSpeed2Modifiers(1.26, 1.02);

Where did you get those numbers? They probably don't help anything unless I'm missing something somewhere… Leaving it at a default would probably be your best bet unless it really does help?


For I:=0 to High(High1) do

Instead of calling "High" over and over again, just call it once before the For loop, it will be much quicker. Such as this:


A := High(High1);
For I := 0 to A do

A for loop will call High over and over, and naturally that will take more time than having a solid number.


mouse(tp.x,tp.y,0,0,true);
AntiRandoms;

Will check for the randoms right after it clicks. Which could miss any randoms due to lag or if they just take a second to appear. Add a small wait (500 ms or so) and it will hopefully not miss them because of that.

Now, on to some other random thoughts.


function Invycount:integer;
var i:integer;
begin
for i := 1 to 28 do
begin
if ExistsItem(i) then
inc(result);
end;
end;

I'm pretty sure that you could just change that to this:


function Invycount:integer;
var i:integer;
begin
for i := 1 to 28 do
if ExistsItem(i) then
inc(result);
end;

Just to take out some unneeded lines.

Theres a lot of random empty lines after… WaitCut. XD

A few random things:

Capitalize letters more. Like WaitCut instead of waitcut. Because it just looks neater ;)

Join the dark side and captalize the bold letters too!

All in all though, I love your use of failsafes, especially in your walking. I agree with promising newcomer as well.

BobboHobbo

2009-10-12 20:35:57

Nice for a first script? Promising new comer cup xD?

Aaronator

2009-10-12 22:06:01

From: 3Garrett3
Hahah. Do you two know eachother irl? Or is there some kind of bond happening already? XD

I dont really have any woodcut accounts, but if you would like, I can go through the script and make some comments on it. I know some people don't like having a critique of their script though, so I will ask first.

E: NOOOOOOOO I just wrote such a long amount of tips, then accidentally pressed something on the keyboard that closed the window. Ctrl or something :\ Fuck. I'll try it again. Something shorter though.

Here goes.

Just commenting on the TPA part, since everything else I saw was just little things about standards and stuff.

Where you have:

FindColorsTolerance(TPA, 8039586, MSX1,MSY1,MSX2,MSY2,5);

There is no failsafe. If you call TPAtoATPA and the TPA has no colours stored in it (Ie, the colour wasn't found) it will give you a runtime error. Solved simply by:


FindColorsTolerance(TPA, 8039586, MSX1,MSY1,MSX2,MSY2,5);
If Length(TPA) = 0 Then
Begin
FindColorsTolerance(TPA, {Another Colour here}, MSX1, MSY1, MSX2, MSY2, {Tol})
If Length(TPA) = 0 Then
Begin
Writeln('Failed');
TerminateScript;
End;
End;

Which adds a couple checks for the colour, and can look for another colour.


SetColorSpeed2Modifiers(1.26, 1.02);

Where did you get those numbers? They probably don't help anything unless I'm missing something somewhere… Leaving it at a default would probably be your best bet unless it really does help?


For I:=0 to High(High1) do

Instead of calling "High" over and over again, just call it once before the For loop, it will be much quicker. Such as this:


A := High(High1);
For I := 0 to A do

A for loop will call High over and over, and naturally that will take more time than having a solid number.


mouse(tp.x,tp.y,0,0,true);
AntiRandoms;

Will check for the randoms right after it clicks. Which could miss any randoms due to lag or if they just take a second to appear. Add a small wait (500 ms or so) and it will hopefully not miss them because of that.

Now, on to some other random thoughts.


function Invycount:integer;
var i:integer;
begin
for i := 1 to 28 do
begin
if ExistsItem(i) then
inc(result);
end;
end;

I'm pretty sure that you could just change that to this:


function Invycount:integer;
var i:integer;
begin
for i := 1 to 28 do
if ExistsItem(i) then
inc(result);
end;

Just to take out some unneeded lines.

Theres a lot of random empty lines after… WaitCut. XD

A few random things:

Capitalize letters more. Like WaitCut instead of waitcut. Because it just looks neater ;)

Join the dark side and captalize the bold letters too!

All in all though, I love your use of failsafes, especially in your walking. I agree with promising newcomer as well.


WOW WOW WOW WOW WOW, thank you alot for those comments, lets go through some of them. Color modifiers work good, better then default. Thanks for all those tips too! :) Yes, almost EVERYWHERE in the script will be failsafed. Banking, walking, woodcutting(except for that error i didnt no about for runtime with tpas). THANKS +1

Thanks everyone for there comments(BobboHobbo)

Edit: Garrett, you dont have rep, so i cant rep you :(

3Garrett3

2009-10-12 22:17:11

From: Aaronator
Edit: Garrett, you dont have rep, so i cant rep you :(


I dont require rep ;)

Just a thanks.

I'll go through more in the morning if I have time. Bed now though.

Aaronator

2009-10-12 22:24:42

Good night. Don't let the bed bugs kill you lol.

Tniffoc

2009-10-12 22:41:50

From: BobboHobbo
Nice for a first script? Promising new comer cup xD?


Ninja'd.

I second the motion for a newcomer cup.

Aaronator

2009-10-12 22:50:48

Thanks, any body else going to use the script?

Kyle Undefined

2009-10-13 01:48:09

Looks promising, keep up the good work. I agree, New Comer cup for him.

~Camo

YoHoJo

2009-10-13 02:30:41

From: Neehosoft
I'll keep it running during school to :)


Woe Neeho take it easy. Never trust a script overnight until you've tested it a lot and know its safe and reliable!

@Aaron, its late, but ill check out the code/edit this post tomorrow with feedback. Goodjob contributing to the community!

Aaronator

2009-10-13 06:46:40

From: YoHoJo
Woe Neeho take it easy. Never trust a script overnight until you've tested it a lot and know its safe and reliable!

@Aaron, its late, but ill check out the code/edit this post tomorrow with feedback. Goodjob contributing to the community!


Thank you ;)

I ran this 3 times over night, with two characters, it failed like 2 hours through because of randoms.

Dynamite

2009-10-13 15:13:20

Umm, not 100% sure on what you trying to do here:
If (countColor(FindWaterColor, 526,19,671,165) > 40) then
begin
mouse(611,135,6,6,true);
but couldn't you do something like:
ResultHere := countColor(FindWaterColor, 526,19,671,165) > 40
begin
if ResultHere then (Wait confused on how CountColor works :p)
Mouse((ResultHereX + Blah),(ResultHereY + Blah),6,6,true);
lol kinda failed there :p
Sorry :p

T~M