No categories assigned

LUA:SetTradeskillClass

Revision as of 16:02, 9 January 2013 by Jabantiz (talk | contribs)

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