You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:SetTradeskillClass"
(Created page with "= LUA Functions: SetTradeskillClass() = Sets the tradeskill class of the gicen spawn ==== Syntax ==== SetTradeskillClass(param1, param2) ==== Parameters ==== ; Required - ''pa...") |
|||
| Line 1: | Line 1: | ||
= LUA Functions: SetTradeskillClass() = | = LUA Functions: SetTradeskillClass() = | ||
| − | Sets the tradeskill class of the | + | Sets the tradeskill class of the given spawn |
==== Syntax ==== | ==== Syntax ==== | ||
Revision as of 16:02, 9 January 2013
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