Skip to content

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.

GetPlayerRecipes(pid [, kind])
Parameter Type
pid number the player
kind string "alchemy" or "smithing" for one kind; nothing for both (optional)

table - {key, ...}; empty for a player who is not there

SendClientMessage(pid, COLOR_WHITE, "You know " .. #GetPlayerRecipes(pid, "alchemy") .. " alchemy recipes.")

HasPlayerRecipe · SetPlayerRecipes · OnPlayerLearnRecipe · the Recipes group of the index