Lua functions

GetTradeskillLevel

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

Historical signature: GetTradeskillLevel(spawn)

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

Function: GetTradeskillLevel(spawn)

Description: Gets the tradeskill level of the spawn.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: UInt32 tradeskill level of 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 GetTradeskillLevel(Spawn)<2 then

Evidence: server/SpawnScripts/Baubbleshire/RalaEurocarry.lua:71; binding EQ2Emu_lua_GetTradeskillLevel.

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