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.
Syntax
Section titled “Syntax”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 |
Returns
Section titled “Returns”true, or false and the reason
Example
Section titled “Example”SetHerbRegrowTime("*", 1800) -- everything grows back in half an hourSetHerbRegrowTime("herb_belladona", 0) -- belladonna only when the mode says soSee also
Section titled “See also”GetHerbRegrowTime · GetHerbKinds · the Herbs and mushrooms group of the index
