Tlachtli
2011-01-07 00:57:10
After messing around with Simba and reading some tutorials around here, I've decided to try my hand at actually writing a script. So here it is (description is copied from the script itself):
I think that sums it up pretty well. Since this is my first attempt at scripting, I need all the critisism on it you have to offer. Suggestions for fixing/optimizing anything within the script are also more than welcome and will be credited accordingly. Also, my standards may be a little messed up since I've never programmed in Pascal; I just followed the Java standards as closely as I could.
Also, just as proof that it runs:
So let me know what you think!
EDIT: Newer version uploaded. I've replaced the Reflection tree finding with Color. The Reflection finding code is still included, just commented out; eventually I'll add an option for the user to decide which to use.
{
Daemonheim Woodcutter
by dd409
You can start the script anywhere, it will use the Ring of kinship to
teleport to Daemonheim. From there it will walk to the woodcutting
island, cut trees until the inventory is full, then use the ring to
teleport back and bank. This script is mostly F2P based, since I
do not have a membership and don't feel like getting one.
It supports all F2P axes both equipped and in inventory from bronze-rune,
and *should* support Dragon and Clay axes as well. This needs confirmation
from a member.
Assumptions:
-Ring of kinship (any color) is equipped at start of script
-Useable axe is equipped or in inventory at start of script
-Dungeoneering level is sufficient to enter the island
-Woodcutting level is sufficient to cut selected tree(s)
I will eventually add failsafes for each of these so that they no longer
need to be assumed. Consider it the first part of my 'to-do' list.
Everything outside of assumptions that still needs to be done:
-Implement bitmaps for Ring of kinship recognition (currently relies on preset screen coordinates, which I know is bad)
-Add walking from trees back to bank if Ring is not equipped
}I think that sums it up pretty well. Since this is my first attempt at scripting, I need all the critisism on it you have to offer. Suggestions for fixing/optimizing anything within the script are also more than welcome and will be credited accordingly. Also, my standards may be a little messed up since I've never programmed in Pascal; I just followed the Java standards as closely as I could.
Also, just as proof that it runs:
------------------------------------
- Daemonheim Woodcutter - by dd409 -
------------------------------------
Player:
Trees being cut: maple
Loads banked: 1
Randoms encountered: 0
------------------------------------So let me know what you think!
EDIT: Newer version uploaded. I've replaced the Reflection tree finding with Color. The Reflection finding code is still included, just commented out; eventually I'll add an option for the user to decide which to use.