Difference between revisions of "LUA:GetTradeskillClass"

(Created page with "= LUA Functions: GetTradeskillClass() = Returns the tradeskill class id for the given spawn. ==== Syntax ==== var = GetTradeskillClass(param1) ==== Parameters ==== ; Required...")
 
 
Line 20: Line 20:
  
 
This makes the NPC respond to the player who hails it with the players tradeskill class id.
 
This makes the NPC respond to the player who hails it with the players tradeskill class id.
 +
 +
==== 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

Latest revision as of 16:25, 9 January 2013

LUA Functions: GetTradeskillClass()

Returns the tradeskill class id for the given spawn.


Syntax

var = GetTradeskillClass(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn whos tradeskill class id we are getting


Usage

function hailed(NPC, Spawn)
    Say(NPC, "Your tradeskill class id is " .. GetTradeskillClass(Spawn) .. "!")
end

This makes the NPC respond to the player who hails it with the players tradeskill class id.

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