Determine character's crafting improvement skill
Greetings. I need a reliable and language/localization-independent way to determine the character's item improvement ability rank (Temper Expertise, etc.). I'm currently using GetSkillAbilityUpgradeInfo(skillType, skillIndex, abilityIndex). For my crafting add-on, the skillType is always the global constant SKILL_TYPE_TRADESKILL. The skillIndex refers to the order in which the different trade skills (Alchemy, Blacksmithing...) appear in the Skills dialog. Similarly, the abilityIndex refers to the order in which the selected trade skill's passive abilities (such as Temper Expertise) appear in the Skills dialog.
Refer to the following screenshot: http://imgur.com/Zpg38VZ The problem is that not all editions of the game display the trade skills in the same order. For EN/US players, the crafting skills appear in the following order:
Woodworking and Enchanting are swapped. Unfortunately this difference isn't just aesthetic - it prevents the GetSkillAbilityUpgradeInfo function from working properly for German (and possibly other) users. I've looked into various possible solutions, including:
|
skillType,skillIndex = GetCraftingSkillLineIndices(CRAFTING_TYPE_PROVISIONING) etc...
currentlvl, maxlevel = GetSkillAbilityUpgradeInfo(skillType,skillIndex ,abilityIndex) should do it if the abilityIndex keeps the order. |
How about:
* GetNonCombatBonus(*[NonCombatBonusType|#NonCombatBonusType]* _nonCombatBonus_) ** _Returns:_ *integer* _bonusValue_ * EVENT_NON_COMBAT_BONUS_CHANGED (*integer* _nonCombatBonus_, *integer* _oldValue_, *integer* _newValue_) |
Quote:
Thank you both for your help! |
All times are GMT -6. The time now is 12:22 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI