Chop Tree Squared (script)
| Chop Tree Squared (script) | |
|---|---|
| Category | training,crafting,survival |
| Front-end | Genie |
| Author | Aliselyn |
Description
This script will keep the sizes of rare and common lumber that you choose, and the types. There's also an option for rare lumber you might not want to always keep, but still have the option to keep if you so desire. For the optional wood to not pick up anything, populate the variable with something such as "none" or "0", something it can't match on. This script is very similar to my other script, Chop Tree (script), but it only watches for danger when one of the hints show up. Same as the other script, it will keep going until it exhausts the room, then look carefully for more resources. It'll end when you have completely exhausted and cannot find any more resources by looking carefully.
How to Use
Start in any room with lumber. I have the wood types completely populated for ease of use to choose what you want specifically. Cull it if you wish. Choose your container and chopping weapon type and add them to the script. When you start the script, enter anything after the script name to let the script know you want to use the on-site helpers to give you deeds rather than using packets (for example, <.chop 1> or <.chop money>, anything like that should work). If you have a packet on hand, choose the storage place and it will use that instead. Change "wear" and "remove" to "stow" and "wield" or "get" if you don't wear your axe.
Script
var rareWoodToKeep albarco|azurelle|bloodwood|bocote|cherry|copperwood|crabwood|darkspine|ebony|goldwood|hickory|ilomba|iroko|ironwood|kapok|leori|macawood|mistwood|osage|ramin|redwood|rosewood|sandalwood|silverwood|tamarak|yew
var commonWoodToKeep alder|apple|ash|aspen|balsa|bamboo|birch|cedar|cypress|durian|elm|fir|hemlock|larch|mahogany|mangrove|maple|moabi|oak|pine|spruce|teak|walnut|willow
var rareWoodOtional
var normalSizeToKeep stick|branch|limb|log
var rareSizeToKeep stick|branch|limb|log
var deedstore
var packetstore
var money 0
var chopper
action (danger) goto danger when ^You notice an unusual smell|^A loud cracking sound resonates|^A monotonous buzzing sound
if_1 var money 1
send watch forest danger
pause .5
roomCheck:
if (%money == 0) then {
if (contains("$roomobjs", "deed")) then {
send get deed
send put my deed in my %deedstore
pause .5
goto roomCheck
}
else if matchre ("$roomobjs", "(%rareWoodToKeep) (%rareSizeToKeep)") then {
var RAREWOOD $1
var RARESIZE $2
send wear my %chopper
pause .5
send get packet
pause .5
goto getRareWood
}
else if matchre ("$roomobjs", "(%commonWoodToKeep) (%normalSizeToKeep)") then {
var COMMONWOOD $1
var COMMONSIZE $2
send wear my %chopper
pause .5
send get packet
pause .5
goto getCommonWood
}
else if matchre ("$roomobjs", "(%rareWoodOtional) (%rareSizeToKeep)") then {
var OPTIONALWOOD $1
var RARESIZE $2
send wear my %chopper
pause .5
send get packet
pause .5
pause .5
echo 1 to keep, 0 to ignore
match getOptionalWood 1
match danger 0
matchwait 8
goto chop
}
else {
if (("$righthandnoun" == "%chopper") || ("$lefthandnoun" == "%chopper") then goto chop
else {
send remove %chopper
goto chop
}
}
}
else {
if matchre ("$roomobjs", "(%rareWoodToKeep) (%rareSizeToKeep)") then goto getRareWood
else if matchre ("$roomobjs", "(%rareWoodOtional) (%rareSizeToKeep)") then goto getOptionalWood
else if matchre ("$roomobjs", "(%commonWoodToKeep) (%normalSizeToKeep)") then goto getCommonWood
else goto chop
}
getRareWood:
if (%money == 0) then {
send get my packet
pause .5
send push %RAREWOOD %RARESIZE with my packet
match nope was just recently mined by someone else
matchwait 2
pause .5
send put my deed in %deedstore
send put packet in %packetstore
pause .5
goto roomCheck
}
else {
send push %RAREWOOD %RARESIZE
waitfor You push
pause .5
send put my deed in %deedstore
}
getCommonWood:
if (%money == 0) then {
send get my packet
pause .5
send push %COMMONWOOD %COMMONSIZE with my packet
match nope was just recently mined by someone else
matchwait 2
pause .5
send put my deed in %deedstore
send put packet in %packetstore
pause .5
goto roomCheck
}
else {
send push %COMMONWOOD %COMMONSIZE
waitfor You push
pause .5
send put my deed in %deedstore
pause .5
goto roomCheck
}
getOptionalWood:
if (%money == 0) then {
send get my packet
pause .5
echo %OPTIONALWOOD %RARESIZE
send push %OPTIONALWOOD %RARESIZE with my packet
match nope was just recently mined by someone else
matchwait 2
pause .5
send get %OPTIONALWOOD deed
pause .5
send put my deed in %deedstore
send put packet in %packetstore
pause .5
goto roomCheck
}
else {
var OPTIONALWOOD $1
var RARESIZE $2
send push %OPTIONALWOOD %RARESIZE
match nope was just recently mined by someone else
matchwait 2
pause .5
send get %OPTIONALWOOD deed
pause .5
send put my deed in %deedstore
}
danger:
pause .5
send watch forest danger
match danger unable
match chop Roundtime:
matchwait
nothing:
pause .5
send watch forest careful
match chop marker to direct
matchre end no additional resources|no additional trees
matchwait
chop:
pause .5
send chop tree
matchre roomCheck stick|branch|limb|log
matchre nothing rotted core|unable to find a tree|fail to find
match chop Roundtime:
matchwait
nope:
send put my packet in my %packetstore
send remove my %chopper
goto chop
end:
send wear my %chopper
echo TIME TO CHANGE ROOMS!