No categories assigned
LUA:SetTradeskillClass
- Last edited 13 years ago by I need to Update My Profile
LUA Functions: SetTradeskillClass()
Sets the tradeskill class of the given spawn
Syntax
SetTradeskillClass(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (int8)
- param1 is the spawn to set the tradeskill class on
- param2 is the class id
Usage
function hail(NPC, Spawn)
SetTradeskillClass(Spawn, 2)
end
Changes the players tradeskill class to craftsman when they hail the npc.
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