No categories assigned

LUA:GetTradeskillLevel

LUA Functions: GetTradeskillLevel()

Returns the tradeskill level for the given spawn.


Syntax

var = GetTradeskillLevel(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn whos tradeskill level we are getting


Usage

function hailed(NPC, Spawn)
    Say(NPC, "Your tradeskill level is " .. GetTradeskillLevel(Spawn) .. "!")
end

This makes the NPC respond to the player who hails it with the players tradeskill level.