Lua functions

SetTradeskillClass

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

Historical signature: SetTradeskillClass(spawn, value)

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

Function: SetTradeskillClass(spawn, value)

Description: Set's the Spawn's tradeskill class to the value provided, class list is available at https://eq2emu.com/developers/references/classes Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • value (int32) - Integer value value.

Returns: None.

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.

SetTradeskillClass(Spawn,1)

Evidence: server/SpawnScripts/Baubbleshire/RalaEurocarry.lua:49; binding EQ2Emu_lua_SetTradeskillClass.

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