You are viewing an old version of this page. Return to the latest version.
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
Artisan 1
Craftsman 2
Provisioner 3
Woodworker 4
Carpenter 5
Outfitter 6
Armorer 7
Weaponsmith 8
Tailor 9
Scholar 10
Jeweler 11
Sage 12
Alchemist 13