Log in

View Full Version : Script question



Script writer
12-04-2012, 08:28 PM
How would I make a woodcutting script drop all the logs once it gets a full inventory?

Nebula
12-04-2012, 08:30 PM
if InvFull then
DropAll;

Rezozo
12-04-2012, 08:30 PM
I believe there is a dropping function for the inventory.

DropAll;

^^^Probably it.

Edit: :ninja:

Script writer
12-04-2012, 10:22 PM
Anyone know the code to only drop willows because it drops my axe also

tbanz1
12-04-2012, 10:25 PM
if i start script and it doesnt do anything after loading smart world then what do i do?

Olly
12-04-2012, 10:30 PM
Anyone know the code to only drop willows because it drops my axe also

Take a look at the drop functions :)

Rezozo
12-04-2012, 10:34 PM
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.


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
12-04-2012, 10:39 PM
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
12-04-2012, 10:43 PM
Thanks it worked

Rezozo
12-04-2012, 10:45 PM
Or that :p
~Rez