# Method Player:GetRatingValue [-] [+]

Returns the Players combat rating value

    enum CombatRating
    {
        CR_WEAPON_SKILL             = 0,        // 0x1
        CR_DEFENSE_SKILL            = 1,        // 0x2
        CR_DODGE                    = 2,        // 0x4
        CR_PARRY                    = 3,        // 0x8
        CR_BLOCK                    = 4,        // 0x16
        CR_HIT_MELEE                = 5,        // 0x32
        CR_HIT_RANGED               = 6,        // 0x64
        CR_HIT_SPELL                = 7,        // 0x128
        CR_CRIT_MELEE               = 8,        // 0x256
        CR_CRIT_RANGED              = 9,        // 0x512
        CR_CRIT_SPELL               = 10,       // 0x1024
        CR_HIT_TAKEN_MELEE          = 11,       // 0x2048
        CR_HIT_TAKEN_RANGED         = 12,       // 0x4096
        CR_HIT_TAKEN_SPELL          = 13,       // 0x8192
        CR_CRIT_TAKEN_MELEE         = 14,       // 0x16384
        CR_CRIT_TAKEN_RANGED        = 15,       // 0x32768
        CR_CRIT_TAKEN_SPELL         = 16,       // 0x65536
        CR_HASTE_MELEE              = 17,       // 0x131072
        CR_HASTE_RANGED             = 18,       // 0x262144
        CR_HASTE_SPELL              = 19,       // 0x524288
        CR_WEAPON_SKILL_MAINHAND    = 20,       // 0x1048576
        CR_WEAPON_SKILL_OFFHAND     = 21,       // 0x2097152
        CR_WEAPON_SKILL_RANGED      = 22,       // 0x4194301
        CR_EXPERTISE                = 23,       // 0x8388608
        CR_ARMOR_PENETRATION        = 24        // 0x16777216
    };

## Synopsis

`value = Player:GetRatingValue( combatRating )`

## Arguments

`CombatRating combatRating`
  See method description.

## Returns

`number value`

  Valid numbers: integers from 0 to 4,294,967,295.

# Keyboard shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

# Search tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct` (or `str`), `enum`, `trait`, `typedef` (or `tdef`).

Generated on
© 2010 - 2024 Eluna Lua Engine