GetPlayerRecipes
The recipes the player’s character knows.
The keys of every recipe the character knows - from what their game reported, with the mode’s own gives and takes at once. Right after the join it holds only what the mode gave: what the character knew already comes with their game’s first report, a few seconds after the spawn.
Syntax
Section titled “Syntax”GetPlayerRecipes(pid [, kind])| Parameter | Type | |
|---|---|---|
pid |
number | the player |
kind |
string | "alchemy" or "smithing" for one kind; nothing for both (optional) |
Returns
Section titled “Returns”table - {key, ...}; empty for a player who is not there
Example
Section titled “Example”SendClientMessage(pid, COLOR_WHITE, "You know " .. #GetPlayerRecipes(pid, "alchemy") .. " alchemy recipes.")See also
Section titled “See also”HasPlayerRecipe · SetPlayerRecipes · OnPlayerLearnRecipe · the Recipes group of the index
