SRL Archive - First Scripts

Neegers Willow Cutter&Banker(SRL)


neeger

2007-11-08 13:45:05

Neegers Willow Cutter&Banker(SRL) V0.6 BETA

Hey!

Finally got all to work and posting beta for testing…

Features:
*Finds willow trees and cuts them until inv is full, then runs tu bank and banks all itmes and runs back to willows
*solves randoms

V0.6
Added a form!
Finds willows faster!
Added report… post them here ;)
And hopefully it finds an ent =)
Going to add axe finder soon and some other features :)

Start off in Drynor bank(better if ur near the bankbooth)

So test it and post how it was working :p

rogeruk

2007-11-08 14:38:22

Standards are not very good.

Also your commented out players wouldnt work if they were uncommented

{  Players[1].Name :='';
Players[1].Pass :='';
Players[1].Nick :='';
Players[0].integers[0] := 69; ADD AS MANY PLAYERS U WANT!!!
Players[1].Active:=False;

You see Players[0].integers[0] := 69; theres your problem.

Your ent finding wont work, since your only checking once after you click, the ent may appear as you click and about 2-4 seconds after you clicked.

Failed logging out procedure?

neeger

2007-11-08 15:29:26

Your ent finding wont work, since your only checking once after you click, the ent may appear as you click and about 2-4 seconds after you clicked.


I realised that, when i tested it :p going to fix that :)

Failed logging out procedure?


What you mean? That i should make and add:

procedure FailedLoggingOut;

begin
if (not(LoggedIn)) then
exit;
else
Logout;
end;

rogeruk

2007-11-08 15:57:36

Whats it for? How can it fail logging out? lol.

neeger

2007-11-08 16:07:36

Oh lol indeed-i thought you mean something else…

I think i dont need 1 because it never cuts a willow over 1 minute(i think so), but i could add 1:
Cuts 30+few randoms secs and if still cutting then it makes a right click or something like this :D

Shuttleu

2007-11-08 16:12:19

just read through it and found out that it says that once the inventory is full then it exits the script

repeat
{ MarkTime(CuttingTime);
Wait(500 + Random(500));
Randoms;
if (TimeFromMark(CuttingTime) > 10000+random(1500)) then
Chop; }
If (InvFull) then
Exit;
Wait(500 + Random(200));
Randoms;
Wait(500 + Random(500));
if not (IsUpText('illo')) then
begin
Wait(500 + Random(100));
Writeln('Finding new tree')
Chop;
end;
until (InvFull);
Wait(500 + Random(500));
If (InvFull) then
Exit;
else
Chop;
end;
and why is part of it commented out?

neeger

2007-11-08 16:33:28

just read through it and found out that it says that once the inventory is full then it exits the script


Huh? i dont understand what u mean :confused:

and why is part of it commented out?

Heh, because i want it so… :p
Sry no offence but this scrip is for testng-i dont want to use MarkTime yet.

rogeruk

2007-11-08 17:50:49

From: shuttleu
just read through it and found out that it says that once the inventory is full then it exits the script

repeat
{ MarkTime(CuttingTime);
Wait(500 + Random(500));
Randoms;
if (TimeFromMark(CuttingTime) > 10000+random(1500)) then
Chop; }
If (InvFull) then
Exit;
Wait(500 + Random(200));
Randoms;
Wait(500 + Random(500));
if not (IsUpText('illo')) then
begin
Wait(500 + Random(100));
Writeln('Finding new tree')
Chop;
end;
until (InvFull);
Wait(500 + Random(500));
If (InvFull) then
Exit;
else
Chop;
end;
and why is part of it commented out?


No offence but, you shouldn't really review scripts if you cant understand what they are doing.

If (InvFull) then
Exit;

Is inside the Chop; procedure. Therefor once the player is full it will drop out of the Chop procedure and go onto the next..

repeat
RunToWillows;
Chop;
RunToBank;
Wait(1000 + Random(200));
Banking;
Loads:= Loads+1
until (Loads = Players[CurrentPlayer].integers[0])

So it will do RunToBank; etc.

d0pe b0i

2007-11-08 17:55:54

welp its not smooth at all. it just says finding rs screen.

th3haxkor

2007-11-08 19:30:40

it cant find the bank so there for it just looks and looks and then yah thats it and it waits to long to find another willow tree so please fix those 2 bugs behide that it would be awesome.

neeger

2007-11-08 21:32:06

welp its not smooth at all. it just says finding rs screen.


If it says "Finding RS screen" then open up ur login page and wait few seconds, then it should type in username and password!

it cant find the bank so there for it just looks and looks and then yah


Cant find bank? It finds bank icon and then clicks on it-hmm giong to use DTM
in next version

thats it and it waits to long to find another willow tree so please fix those 2 bugs behide that it would be awesome.


hmm… it only cuts trees witch are near to you, therefor i can use more humanlike chopping-waits till it has chopped willow not going to run another if willow still stands… But im going to look that-i have a idea how to make it faster to detect willow

The Mod

2007-11-09 00:40:46

Ill try it :d

d0pe b0i

2007-11-09 16:19:29

kk well it has great ent finding but not very efficient =[

chip111

2007-11-09 21:08:24

im going to download and test now doesnt look bad…..!

neeger

2007-11-10 03:03:31

Version 0.6 is OUT!!!

Added a form!
Finds willows faster!
Added report… post them here ;)
And hopefully it finds an ent =)