WoW:API GetCombatRating: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(-Category:Boilerplates)
m (changed hitBonus to hitRating)
Line 50: Line 50:
<big>'''Result'''</big>
<big>'''Result'''</big>
<!-- If it helps, include example results here, though they are not required. You're allowed to cheat liberally since WoW isn't a command line language. -->
<!-- If it helps, include example results here, though they are not required. You're allowed to cheat liberally since WoW isn't a command line language. -->
  hitBonus = 63
  hitRating = 63

Revision as of 04:43, 15 December 2006

WoW API < GetCombatRating


Returns a combat rating for a particular combat rating. Template:Code/Begin rating = GetCombatRating(combatRatingIdentifier) Template:Code/End


Parameters

Arguments

(combatRatingIdentifier)
combatRatingIdentifier
Integer - A combat rating identifier, one of:
  • CR_WEAPON_SKILL = 1;
  • CR_DEFENSE_SKILL = 2;
  • CR_DODGE = 3;
  • CR_PARRY = 4;
  • CR_BLOCK = 5;
  • CR_HIT_MELEE = 6;
  • CR_HIT_RANGED = 7;
  • CR_HIT_SPELL = 8;
  • CR_CRIT_MELEE = 9;
  • CR_CRIT_RANGED = 10;
  • CR_CRIT_SPELL = 11;
  • CR_HIT_TAKEN_MELEE = 12;
  • CR_HIT_TAKEN_RANGED = 13;
  • CR_HIT_TAKEN_SPELL = 14;
  • CR_CRIT_TAKEN_MELEE = 15;
  • CR_CRIT_TAKEN_RANGED = 16;
  • CR_CRIT_TAKEN_SPELL = 17;
  • CR_HASTE_MELEE = 18;
  • CR_HASTE_RANGED = 19;
  • CR_HASTE_SPELL = 20;

Returns

rating
Float - the actual rating for the combat rating; e.g. 63

Example

hitRating = GetCombatRating(6)

Result

hitRating = 63