FANDOM


GetPlayerCurrentSkillValue( SkillId )

Get the current rating of a skill.

Parameters Edit

Arguments Edit

SkillId
string - The skill name as defined in code, being one of (must be uppercase as shown):
Crafting Skills Weapon Skills
ALCHEMY AXE HAMMER
BLACKSMITH AXE2H POLEARM
CARPENTER BLADE STAFF
COOK BLUDGEON UNARMED
HERBLISM BOW WAND
LUMBERING CLAYMORE
MAKEARMOR COSSBOW
MINING DAGGER
PLANT DEFENCE
TAILOR GUN

Returns Edit

number
float - The current skill rating value.
The level of the skill (as displayed in the crafting interface) is the part before the decimal separator of this value.
The progress on learning the skill is the part after the decimal separator.

Example Edit

local _1 = GetPlayerCurrentSkillValue(1,1);
_1 = 0

Edit --Qaz1qaz1qa 05:35, 6 March 2010 (UTC)

GetPlayerCurrentSkillValue( "SKILLNAME" ) <must be UPPERCASE

Return the current skill level rounded to the 4th decimal.
Whole number = Skill level
Decimal      = percent
 example DEFAULT_CHAT_FRAME(GetPlayerCurrentSkillValue( "HERBLISM" ))
 Returns 32.206058502197
   Skillbook  > Gathering > Herbalism level:32  20.61%

Notes Edit


Related Functions Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.