SRL Archive - OSR Help

My WoodCutter.


Xanith

2010-12-21 10:05:18

I am making a simple woodcutting script to get into scripting. I have a pretty nice function to find the tree and click on it, but I want to make a function that finds if the tree is gone so the script doesn't go on to the next tree right away.

I just cant figure it out. Help would be greatly appreciated. =]

Sex

2010-12-21 10:13:06

You can either have the mouse on the tree the entire time and check the uptext, or save where the tree was found and check the color periodically, or if it is a tree that only provides one log (such as normal trees), you can count your inventory items and check for a change. If you need further help, don't hesitate to add me on MSN :).

Death12652

2010-12-24 17:53:20

Yes listen to Sex and add him to MSN he has helped me many times over. Also you could use some of the newer fuctions like OBJ finding and stuff like that. What I do is look at how other script do it. Try looking at some in the Public scripts and if your really desperate look at MSI's procedures.

Dynamite

2010-12-24 17:59:05

Or check for animation.

Sex

2010-12-24 20:54:03

From: The Man
Or check for animation.

Ah, yes, there are a number of "new-school" ways you can do it as well :).