Lua functions

GetTradeskillClass

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

Historical signature: GetTradeskillClass(spawn)

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

Function: GetTradeskillClass(spawn)

Description: Gets the tradeskill class id of the Spawn.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: UInt32 tradeskill class id of the spawn.

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 GetTradeskillClass(Spawn)>0 then

Evidence: server/SpawnScripts/FarJourneyFreeport/HelmsmanNyles.lua:169; binding EQ2Emu_lua_GetTradeskillClass.

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