Difference between revisions of "LUA:SetTradeskillClass"

Line 23: Line 23:
 
==== Reference ====
 
==== Reference ====
 
Tradeskill class id's
 
Tradeskill class id's
 +
 
Artisan 1
 
Artisan 1
 +
 
Craftsman 2
 
Craftsman 2
 +
 
Provisioner 3
 
Provisioner 3
 +
 
Woodworker 4
 
Woodworker 4
 +
 
Carpenter 5
 
Carpenter 5
 +
 
Outfitter 6
 
Outfitter 6
 +
 
Armorer 7
 
Armorer 7
 +
 
Weaponsmith 8
 
Weaponsmith 8
 +
 
Tailor 9
 
Tailor 9
 +
 
Scholar 10
 
Scholar 10
 +
 
Jeweler 11
 
Jeweler 11
 +
 
Sage 12
 
Sage 12
 +
 
Alchemist 13
 
Alchemist 13

Revision as of 16:03, 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