Lua functions

GetItemSkillReq

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

Historical signature: GetItemSkillReq(item, type)

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

Function: GetItemSkillReq(item, type)

Description: Get the skill id requirement for the item. Type 1 is skill_req1, Type 2 is skill_req2.

Parameters:

  • item (Item) - Item object representing item.
  • type (uint32) - Integer value type.

Returns: UInt32 Skill ID required to use the item.

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 secondarySymbolItem and (GetItemSkillReq(secondarySymbolItem, 1) == 545043066 or GetItemSkillReq(secondarySymbolItem, 2) == 545043066) then

Evidence: server/Spells/ClassicRefresh/Fighter/Crusader/Paladin/Bash-2550845.lua:26; binding EQ2Emu_lua_GetItemSkillReq.

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