No categories assigned

LUA:GetTradeskillClass

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

LUA Functions: GetTradeskillClass()

Returns the tradeskill class id for the given spawn.


Syntax

var = GetTradeskillClass(param1)


Parameters

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


Usage

function hailed(NPC, Spawn)
    Say(NPC, "Your tradeskill class id is " .. GetTradeskillClass(Spawn) .. "!")
end

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