Difference between revisions of "LUA:SetTradeskillClass"

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

Latest revision as of 16:13, 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

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