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.
Reference
Tradeskill class id's
1 - Artisan
2 - Craftsman
3 - Provisioner
4 - Woodworker
5 - Carpenter
6 - Outfitter
7 - Armorer
8 - Weaponsmith
9 - Tailor
10 - Scholar
11 - Jeweler
12 - Sage
13 - Alchemist