Skip to content

SetHerbRegrowTime

How long a kind of herb takes to grow back, in real seconds.

seconds is real time on the server’s clock: 0 = never on its own (only ResetHerb / ResetHerbs bring it back), nil or below 0 = the game’s own time again (the kind’s game hours at the server’s clock speed, [world] time_ratio). The time counts from each pick: spots picked before the call keep the time they were given.

SetHerbRegrowTime(kind, seconds)
Parameter Type
kind string the item name, its class GUID, or "*" for every kind
seconds number real seconds, up to a year; 0 never, nil the game’s own

true, or false and the reason

SetHerbRegrowTime("*", 1800) -- everything grows back in half an hour
SetHerbRegrowTime("herb_belladona", 0) -- belladonna only when the mode says so

GetHerbRegrowTime · GetHerbKinds · the Herbs and mushrooms group of the index