No categories assigned

LUA:GetTradeskillClassName

Revision as of 16:45, 9 January 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: GetTradeskillClassName() = Returns the tradeskill class name for the given spawn. ==== Syntax ==== var = GetTradeskillClassName(param1) ==== Parameters ==== ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.