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...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= LUA Functions: SetTradeskillClass() =
 
= LUA Functions: SetTradeskillClass() =
Sets the tradeskill class of the gicen spawn
+
Sets the tradeskill class of the given spawn
  
 
==== Syntax ====
 
==== Syntax ====
Line 23: Line 23:
 
==== Reference ====
 
==== Reference ====
 
Tradeskill class id's
 
Tradeskill class id's
Artisan 1
+
 
Craftsman 2
+
1  - Artisan
Provisioner 3
+
 
Woodworker 4
+
2  - Craftsman
Carpenter 5
+
 
Outfitter 6
+
3  - Provisioner
Armorer 7
+
 
Weaponsmith 8
+
4  - Woodworker
Tailor 9
+
 
Scholar 10
+
5  - Carpenter
Jeweler 11
+
 
Sage 12
+
6  - Outfitter
Alchemist 13
+
 
 +
7  - Armorer
 +
 
 +
8  - Weaponsmith
 +
 
 +
9  - Tailor
 +
 
 +
10 - Scholar
 +
 
 +
11 - Jeweler
 +
 
 +
12 - Sage
 +
 
 +
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