Lua functions

GetTradeskillClassName

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

Historical signature: GetTradeskillClassName(spawn)

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

Function: GetTradeskillClassName(spawn)

Description: Gets the tradeskill class name of the Spawn.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: String name of the Tradeskill Class.

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.

AddConversationOption(conversation, "My name is " .. GetName(Spawn) .. ".", "Send" .. GetTradeskillClassName(Spawn) .. "Choice")

Evidence: server/SpawnScripts/Generic/GenericCraftingTrainer.lua:118; binding EQ2Emu_lua_GetTradeskillClassName.

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