Chop Tree (script): Difference between revisions
mNo edit summary |
(→Script) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Script |
{{Script |
||
|cat=crafting, survival |
|cat=training, crafting, survival |
||
|fe=Genie |
|fe=Genie |
||
|auth=[[Aliselyn]] |
|auth=[[Aliselyn]] |
||
Line 12: | Line 12: | ||
Start in any room with lumber. |
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. |
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. |
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== |
==Script== |
||
<pre> |
<pre> |
||
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 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| |
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 rareWoodOtional |
||
var normalSizeToKeep stick|branch|limb|log |
var normalSizeToKeep stick|branch|limb|log |
||
var rareSizeToKeep stick|branch|limb|log |
var rareSizeToKeep stick|branch|limb|log |
||
Line 31: | Line 31: | ||
if (%money == 0) then { |
if (%money == 0) then { |
||
if matchre ("$roomobjs", "(%rareWoodToKeep) (%rareSizeToKeep)") then { |
if matchre ("$roomobjs", "(%rareWoodToKeep) (%rareSizeToKeep)") then { |
||
⚫ | |||
⚫ | |||
send wear my %chopper |
send wear my %chopper |
||
pause .5 |
pause .5 |
||
Line 37: | Line 39: | ||
goto getRareWood |
goto getRareWood |
||
} |
} |
||
else if matchre ("$roomobjs", "(%commonWoodToKeep) (%normalSizeToKeep)") then { |
else if matchre ("$roomobjs", "(%commonWoodToKeep) (%normalSizeToKeep)") then { |
||
⚫ | |||
⚫ | |||
send wear my %chopper |
send wear my %chopper |
||
pause .5 |
pause .5 |
||
Line 46: | Line 49: | ||
} |
} |
||
else if matchre ("$roomobjs", "(%rareWoodOtional) (%rareSizeToKeep)") then { |
else if matchre ("$roomobjs", "(%rareWoodOtional) (%rareSizeToKeep)") then { |
||
var OPTIONALWOOD $1 |
|||
⚫ | |||
⚫ | |||
pause .5 |
|||
send get packet |
|||
pause .5 |
|||
pause .5 |
pause .5 |
||
echo 1 to keep, 0 to ignore |
echo 1 to keep, 0 to ignore |
||
match |
match getOptionalWood 1 |
||
match 0 danger |
|||
matchwait 8 |
matchwait 8 |
||
goto getOptionalWood |
|||
} |
} |
||
else { |
else { |
||
if (("$righthandnoun" == "%chopper") || ("$lefthandnoun" == "%chopper") then goto danger |
|||
⚫ | |||
else { |
|||
send remove %chopper |
|||
goto danger |
|||
} |
|||
} |
} |
||
} |
} |
||
else { |
else { |
||
if matchre ("$roomobjs", "(%rareWoodToKeep) (%rareSizeToKeep)") then goto getRareWood |
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 if matchre ("$roomobjs", "(%commonWoodToKeep) (%normalSizeToKeep)") then goto getCommonWood |
||
else goto danger |
else goto danger |
||
Line 64: | Line 79: | ||
getRareWood: |
getRareWood: |
||
if (%money == 0) then { |
if (%money == 0) then { |
||
send get my packet |
|||
⚫ | |||
pause .5 |
|||
⚫ | |||
send push %RAREWOOD %RARESIZE with my packet |
send push %RAREWOOD %RARESIZE with my packet |
||
waitfor You push |
waitfor You push |
||
pause .5 |
pause .5 |
||
send put deed in %deedstore |
send put my deed in %deedstore |
||
send put packet in %packetstore |
send put packet in %packetstore |
||
pause .5 |
pause .5 |
||
Line 75: | Line 90: | ||
} |
} |
||
else { |
else { |
||
⚫ | |||
⚫ | |||
send push %RAREWOOD %RARESIZE |
send push %RAREWOOD %RARESIZE |
||
waitfor You push |
waitfor You push |
||
pause .5 |
pause .5 |
||
send put deed in %deedstore |
send put my deed in %deedstore |
||
} |
} |
||
getCommonWood: |
getCommonWood: |
||
if (%money == 0) then { |
if (%money == 0) then { |
||
send get my packet |
|||
⚫ | |||
pause .5 |
|||
⚫ | |||
send push %COMMONWOOD %COMMONSIZE with my packet |
send push %COMMONWOOD %COMMONSIZE with my packet |
||
waitfor You push |
waitfor You push |
||
pause .5 |
pause .5 |
||
send put deed in %deedstore |
send put my deed in %deedstore |
||
send put packet in %packetstore |
send put packet in %packetstore |
||
pause .5 |
pause .5 |
||
Line 96: | Line 109: | ||
} |
} |
||
else { |
else { |
||
var COMMONWOOD $1 |
|||
var COMMONSIZE $2 |
|||
send push %COMMONWOOD %COMMONSIZE |
send push %COMMONWOOD %COMMONSIZE |
||
waitfor You push |
waitfor You push |
||
pause .5 |
pause .5 |
||
send put deed in %deedstore |
send put my deed in %deedstore |
||
pause .5 |
pause .5 |
||
goto roomCheck |
goto roomCheck |
||
} |
|||
getOptionalWood: |
|||
if (%money == 0) then { |
|||
send get my packet |
|||
pause .5 |
|||
echo %OPTIONALWOOD %RARESIZE |
|||
send push %OPTIONALWOOD %RARESIZE with my packet |
|||
waitfor You push |
|||
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 |
|||
⚫ | |||
send push %OPTIONALWOOD %RARESIZE |
|||
waitfor You push |
|||
pause .5 |
|||
send get %OPTIONALWOOD deed |
|||
pause .5 |
|||
send put my deed in %deedstore |
|||
} |
} |
||
Line 117: | Line 154: | ||
send watch forest careful |
send watch forest careful |
||
match chop marker to direct |
match chop marker to direct |
||
matchre end no additional resources|no additional trees |
|||
matchwait |
matchwait |
||
Line 129: | Line 166: | ||
end: |
end: |
||
send |
send wear my %chopper |
||
echo TIME TO CHANGE ROOMS! |
echo TIME TO CHANGE ROOMS! |
||
</pre> |
Latest revision as of 18:52, 30 March 2017
Chop Tree (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. This script will alternate between chopping and looking for danger. It is slow, but safe. 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 if_1 var money 1 pause .5 roomCheck: if (%money == 0) then { 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 0 danger matchwait 8 goto getOptionalWood } else { if (("$righthandnoun" == "%chopper") || ("$lefthandnoun" == "%chopper") then goto danger else { send remove %chopper goto danger } } } 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 danger } getRareWood: if (%money == 0) then { send get my packet pause .5 send push %RAREWOOD %RARESIZE with my packet waitfor You push 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 waitfor You push 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 waitfor You push 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 waitfor You push 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 match danger Roundtime: matchre roomCheck stick|branch|limb|log matchre nothing rotted core|unable to find a tree matchwait end: send wear my %chopper echo TIME TO CHANGE ROOMS!