Difference between revisions of "LUA:GetTradeskillClassName"

(Created page with "= LUA Functions: GetTradeskillClassName() = Returns the tradeskill class name for the given spawn. ==== Syntax ==== var = GetTradeskillClassName(param1) ==== Parameters ==== ...")
 
(No difference)

Latest revision as of 16:45, 9 January 2013

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.