No categories assigned

LUA:GetTradeskillClassName

LUA Functions: GetTradeskillClassName()

Returns the tradeskill class name for the given spawn.


Syntax

var = GetTradeskillClassName(param1)


Parameters

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


Usage

function hailed(NPC, Spawn)
    Say(NPC, "You're a " .. GetTradeskillClassName(Spawn) .. "!")
end

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