API:GetPlayerClassInfo

__NOTOC__
GetPlayerClassInfo
GetPlayerClassInfo
Returns class info if you have the class specified by index, otherwise it won't return anything.
GetPlayerClassInfo(index)
== Parameters ==
=== Arguments ===
:;param
::index - Index of class to query in rangefrom 1 to GetNumClasses(). Possible (known) values are:
:::2 - Warrior
:::3 - Scout
:::4 - Rogue
:::5 - Mage
:::6 - Priest
:::7 - Knight
:::8 - Warden
:::9 - Druid
:::There may be other values that can be used as parameters (e.g. GM class).
=== Returns ===
Returns nil if player does not have specified class or following list of data:
:;returnparam
::class - class name (same as returned by UnitClass("player"))
::token - class token
::level - current class level
::currExp - current number of experience gained for this class
::maxExp - maximum experience on this level
::xpDebt - current experience debt
== Example ==
class, token, level, currExp, maxExp, xpDebt = GetPlayerClassInfo(1);
== Notes ==
== Related Functions ==