You are viewing an old version of this page. Return to the latest version.
Version of 16:24, 9 January 2013 by I need to Update My Profile
No categories assigned
LUA:GetTradeskillClass
- Last edited 13 years ago by I need to Update My Profile
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.