API GetInspectSpecialization

From Wowpedia
Jump to: navigation, search

Returns a number representing the current active specialization of a given unit.

id = GetInspectSpecialization("unit")

Arguments

unit 
String - The unitid of the player to request the specialization of.

Returns

id 
Number - specialization ID.

Notes

This function may return 0 if the server hasn't sent the requested inspect information needed yet.
The specialization IDs are as follows:
Death Knight
250 = Blood
251 = Frost
252 = Unholy

Druid
102 = Balance
103 = Feral
104 = Guardian
105 = Restoration

Hunter
253 = Beast Mastery
254 = Marksmanship
255 = Survival

Mage
62 = Arcane
63 = Fire
64 = Frost

Monk
268 = Brewmaster
270 = Mistweaver
269 = Windwalker

Paladin
65 = Holy
66 = Protection
67 = Retribution

Priest
256 = Discipline
257 = Holy
258 = Shadow

Rogue
259 = Assassination
260 = Combat
261 = Subtlety

Shaman
262 = Elemental
263 = Enhancement
264 = Restoration

Warlock
265 = Affliction
266 = Demonology
267 = Destruction

Warrior
71 = Arms
72 = Fury
73 = Protection

Patch history

MoP Patch 5.0.4 (2012-08-28): Added.