Lua functions

GetWis

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

Historical signature: GetWis(spawn)

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

Function: GetWis(spawn)

Description: Gets the wisdom of the current spawn.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: UInt32 of the Spawn's wisdom.

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.

StatBonus = GetWis(Caster) / 5

Evidence: server/Spells/Priest/Druid/SylvanTouch.lua:11; binding EQ2Emu_lua_GetWis.

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