Historical signature: HasRecipeBook(player, recipe_id)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: HasRecipeBook(player, recipe_id)
Description:
Return's true if the player has a recipe book that matches the recipe_id.
Parameters:
player (Spawn) - Spawn object representing player.
recipe_id (uint32) - Integer value recipe_id.
Returns: True if the player has a recipe book with the recipe of recipe_id included. Otherwise false.
Checked example
Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.
if not HasRecipeBook(Spawn, artisan_ess_1) and not HasItem(Spawn, artisan_ess_1, 1) then
Evidence: server/SpawnScripts/Generic/GenericCraftingTrainer.lua:64; binding EQ2Emu_lua_HasRecipeBook.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.