Lua functions

GetCanBind

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

Historical signature: GetCanBind(spawn)

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

Function: GetCanBind(spawn)

Description: Gets if the Spawn(Player) can bind in the current zone.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: Returns UINT32 1 if you can bind, otherwise 0.

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.

canbind = GetCanBind(Caster)

Evidence: server/Spells/Commoner/SetRecallPoint.lua:11; binding EQ2Emu_lua_GetCanBind.

Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.