Lua functions

SendBook

Registered in this checkout as EQ2Emu_lua_SendBook; implementation found at WorldServer/Lua/LuaFunctions.cpp:15699.

Historical signature: SendBook(…) via current binding

Parameter and behavior details in the historical explanation are under review against the current implementation.

Function: SendBook(player, item_id)

Description: Looks up a definition and displays its book title, language, and pages. This does not grant an inventory item.

Parameters: player: connected player spawn. item_id: definition ID with the desired book content.

Returns: None. Invalid player, missing connection, or missing definition has no effect.

Connection lifetime: Each player or group-member connection resolved by this function is retained through the native call. A disconnect or reconnect during a callback cannot destroy that retained connection or switch the ongoing call to a replacement. A later Lua call resolves the current connection. This does not extend the lifetime of unrelated spawn or item userdata.

Checked example

No checked example is published for this function yet. No active script call with the current C++ argument count was found.

Current registration: WorldServer/Lua/LuaInterface.cpp.