SRL Archive - Help

Script question


Script writer

2012-12-04 15:28:59

How would I make a woodcutting script drop all the logs once it gets a full inventory?

Nebula

2012-12-04 15:30:11


if InvFull then
DropAll;

Rezozo

2012-12-04 15:30:39

I believe there is a dropping function for the inventory.

DropAll;

^^^Probably it.

Edit: :ninja:

Script writer

2012-12-04 17:22:19

Anyone know the code to only drop willows because it drops my axe also

tbanz1

2012-12-04 17:25:34

if i start script and it doesnt do anything after loading smart world then what do i do?

Olly

2012-12-04 17:30:15

From: Script writer
Anyone know the code to only drop willows because it drops my axe also


Take a look at the drop functions :)

Rezozo

2012-12-04 17:34:22

From: Script writer
Anyone know the code to only drop willows because it drops my axe also


There is no defined code for only willows. However, a very sure way would be to use DTM's and use a repeating function. Take a look at my EOC ChopNBurn.

From: tbanz1
if i start script and it doesnt do anything after loading smart world then what do i do?


If its after you logged in and everything, then make sure the script is for RS, not an RSPS. Also, make sure SMART is defined in the beginning. After all that, post on the thread of the script, or PM the scripter.

Lastly..Unrelated much?
~Rez

Sax

2012-12-04 17:39:53

From: Script writer
Anyone know the code to only drop willows because it drops my axe also


actually there is:

DropAllExcept

DropAllExcept([1, 3, 5, 6]); // will drop all except inv slots 1, 3, 5 and 6

so if you have the axe in 1st slot you should use:

DropAllExcept([1]);

Hope it helps :)

Script writer

2012-12-04 17:43:30

Thanks it worked

Rezozo

2012-12-04 17:45:54

Or that :p
~Rez