AutoHarvest Script

by Unknown

Back to Mechanic's Corner.

Peeka2005-12-11 01:44:14
So I've been looking around for information on a harvesting script, and I plugged in Sugar's twice so far, and each time it causes Zmud to crash after I add in the last bunch of triggers. Ack.
Tsuki2005-12-11 03:42:04
I like the summary about herbs around hibernation, Ekard, but really, the end of the month before hibernation you don't just want to leave 10 ... you want to make sure they're Guarded for the month, at least some places so they can be replanted out again. Few days into a month once when I was late going around to Guard some of the extra spots beyond what I try to take care of normally (up to about 20-30 spots of forest/swamp/underground/mountain at the moment, plus the Centaur Hills when pennyroyal's about to be in hibernation and I notice it), I saw over 20 galingale just wither and all vanish. Lately I've been Guarding select spots outside of hibernation too, because so much has vanished ... either naturally through hibernation or from carelessness in harvesting or from deliberateness in harvesting. I imagine I'm not the only herbalist who's spent hours at a time on occassions working to replant an area, only to come back the next RL day and find it all vanished again when it should've been flourishing.

I have a harvesting thing that I tell it how many I want to leave in the location, and it has a minimum it will not harvest below so I can't accidentally mistype and tell it to harvest down to 01 when I meant down to 10 or something. All it really does is save me the trouble of doing nothing else but waiting to regain equilibrium to hit the enter key to harvest again, so I can talk with someone or check on things (like the logs and news) while I'm harvesting. That's still a benefit that made me so much happier to have, but it still takes awhile ... just isn't giving me carpel tunnel as much wink.gif . Harvesting to transplant and transplanting are both fully manual, as is casting Growth and Guarding ... just have a new alias for Guarding that takes out the mistletoe, guards, and puts it away if the spot was already guarded. And yes, I have triggers to put the herbs in my rift, or in a pocketbelt if the rift is full.
Hajamin2005-12-11 03:54:09
From what I read, this script is NOT illegal. Only scripts that fully automate harvesting are. From the looks of this, it will harvest one room for you, but it does not move you.

Just like rats, a script that attacks rats as they enter the room is ok, as long as you still have to physically move. The easiest way to look at it is this way: Once I start it, could I leave my computer for 20 minutes and it still be going? If the answer is yes, it's probably illegal.
Munsia2005-12-11 04:02:07
I <3 both of you for the herb script.
Strakc2005-12-11 04:04:57
I made a harvesting script for mush it does only one herb, and doesn't let you pick how much you harvest, it goes down to 10 and stops, then if the plant is in hibernation it should not even let you pick it.
Peeka2005-12-11 04:24:01
Aha! I have managed to get it to work by just picking out the the things I need and leaving out the season check stuff and the last trigger. So I am currently using a combo of Sugar's and Ekard's.

This is pretty sweet. It's repetitive, yes, but it's so much more relaxing and less stressful than running around through various villages to do quests, or beg (which costs me money on bromides anyway). Oh, and Haj is correct. These scripts do not move you around. You basically just tell it how many of an herb you want to harvest, and it will do it for you and count down along the way.


So now I just need to know -- Are there any other regulations other than not going below ten?

From what I gather, we should Guard the areas that are in hibernation, yeah?

How do you know when something needs to be replanted?
Xenthos2005-12-11 04:28:03
QUOTE(peeka @ Dec 11 2005, 12:24 AM)
How do you know when something needs to be replanted?
235359



If there's 0 of it in a room and it's not hibernating, replant from nearby rooms.

Easy enough. smile.gif
Shiri2005-12-11 04:30:27
QUOTE(peeka @ Dec 11 2005, 04:24 AM)
Are there any other regulations other than not going below ten?
235359



It was 5 when I was a herbalist. unsure.gif Some people just leave it at 10 anyway.
Xenthos2005-12-11 04:31:43
QUOTE(Shiri @ Dec 11 2005, 12:30 AM)
It was 5 when I was a herbalist. unsure.gif Some people just leave it at 10 anyway.
235361



1-2 works, too. Herbs will mostly all grow from 1 (excepting things like horehound which sometimes die off at 1-2), unless they're in a demesne. But yeah, I personally stop at 6.
Tsuki2005-12-11 05:20:09
I stop at 5 or 10 or more, depending what it is and how many there are around and how much I need it for the demand, and when it's hibernation or peak growth is coming up or just passed, and if I Guarded the spot. laugh.gif Less is riskier than more, and 60 is the maximum that can grow in a room so I tend to trim those down to 55 or 50 when I see them even if my rift's already full and they're not much in demand. I apparently have compulsive tendencies... unsure.gif

It also might be worth noting that no, there are no "regulations" as such ... it's just extremely foolish (to use nicer terminology than what I sometimes think) for any herbalist, regardless of affiliation, to overharvest and not take some time (even just a bit for a room or two) to transplant, because that just hurts them as well. If Irresponsible_Herbalist harvests down to 5 at the start of hibernation and doesn't Guard or cast Growth even if they're capable of doing so ... guess what? That herb's very likely to vanish, and either need to be replanted after hibernation to start all over again or just sit and wait for natural regrowth to hopefully occur. Natural regrowth is great, but all it does is ensure the survival of the herb, not in any way meeting the slightest bit of the demand to support herbalism as a trade. Five rooms that can grow galingale, and only one's planted ... you don't want to harvest down in that room and not transplant out to establish it in the other four. Five rooms where it's established means (approximately) 5 more new herbs at midnight, rather than just 1!

It's wonderful to see the results of a lot of work transplanting growing well ... and so utterly disheartening to see the results of a lot of work transplanting callously stripped away by the next month. I've had both happen, and the few times of the latter have led to me not bothering to try and transplant quite as much as I used to.


QUOTE
From what I gather, we should Guard the areas that are in hibernation, yeah?

Preferably, the end of the month before they're in hibernation ... but I haven't figured out what affects Guard lengths. Mine is currently 33 days, and I know it used to be 31 days. Also heard from another recently who said theirs was 20-some when mine was 33. And I don't remember what I learned more of between when I was at 31 to when I where I am now at 33 days! sad.gif
Munsia2005-12-11 08:44:11
Ok the thing I found wrong is if spices are drawn it doesnt register it
Munsia2005-12-12 05:39:04

You twirl your cudgel before you, bringing forth an emerald shield that
surrounds you.
3260h, 3550m, 3980e, 10p ek-

Sparkling motes of bright light surround the Moonhart Mother Tree.
3260h, 3550m, 3980e, 10p ek-

You have recovered balance on all limbs.
Only 0 unset left to harvest!
ALL DONE HARVESTING
3260h, 3550m, 3980e, 10p exk-

You see no unset in your inventory.

Thats gonna screw up curing aeon
Tsuki2005-12-15 02:48:59
Ekard ... much love for the notification thing of herbs in and around hibernation and peak. Much, much, much love. wub.gif
Ekard2005-12-15 19:02:39
QUOTE(Tsuki @ Dec 15 2005, 04:48 AM)
Ekard ... much love for the notification thing of herbs in and around hibernation and peak. Much, much, much love.  wub.gif
236594



Thanks!

This script is from times when i was herbalist. But i'm still using it i like to know where is best month to buy what herbs.
Phoebe2006-05-16 06:43:41
is this for mush or Zmud?
Ekard2006-05-16 07:40:34
QUOTE(phoebe @ May 16 2006, 08:43 AM) 288555

is this for mush or Zmud?

Those scripts are for zmud.
Gero2007-06-10 09:18:23
I need a quick fix for spices, if you take spices it will harvest an extra time or how many other times spices were taken instead
Unknown2007-06-10 12:41:58
Put #ADD herbamount -1 in the spices trigger?
Unknown2007-06-18 22:07:16
I've updated the autoharvesting script that Aebrin posted earlier. I took out the spices line so that it won't overharvest if you get spices instead of an herb, there is a line now that pops up an indicator when you're done harvesting, and after each group of herbs that you harvest it automatically in rifts them all. This is useful in case you get jumped while harvesting, you will lose a minimal amount of herbs.

edit: Sorry about that, had to fix one trigger that I had changed due to my other systems. It's working now.

#CLASS {autoharvest}
#ALIAS gherb {number=%1;herb=%2;autoharvestnumber=%1;ggherb}
#ALIAS ggherb {harvest @herb;#add number (-1)}
#ALIAS hoff {#var number {0};inr @autoharvestnumber @autoharvestherb}
#VAR number {0}
#VAR autoharvestherb {}
#VAR autoharvestnumber {0}
#TRIGGER {You have recovered balance on all limbs.} {#if {@number > 0} {ggherb}}
#TRIGGER {You reach down and carefully harvest} {#if {@number = 0} {#echo HARVESTING DONE;inr @autoharvestnumber @autoharvestherb;autoharvestnumber=0}}
#TRIGGER {You reach down and carefully harvest a %1 of %2.} {autoharvestherb=%2}
#TRIGGER {Hmm, that wasn't the herb you thought after all.} {#if {@number = 0} {#echo HARVESTING DONE}}
#CLASS 0