Lua functions

SetTradeskillLevel

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

Historical signature: SetTradeskillLevel(spawn, level)

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

Function: SetTradeskillLevel(spawn, level)

Description: Sets the tradeskill level on the Spawn.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • level (uint8) - Integer value level.

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.

SetTradeskillLevel(Spawn,2)

Evidence: server/SpawnScripts/Baubbleshire/RalaEurocarry.lua:48; binding EQ2Emu_lua_SetTradeskillLevel.

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