View Single Post
  #21  
Old 09-28-2010, 04:24 AM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

In the current emulator code, GetDamageTable(BACKSTAB) returns 305 for a level 70 rogue. The function is in attack.cpp.

The relevant part is here:

Code:
int16 dmg_table[] = { 
    275, 275, 275, 275, 275,
    280, 280, 280, 280, 285,
    285, 285, 290, 290, 295,
    295, 300, 300, 300, 305, 
    305, 305, 310, 310, 315,
    315, 320, 320, 320, 325,
    325, 325, 330, 330, 335, 
    335, 340, 340, 340,
};

if(GetClass() == MONK)
    return (dmg_table[GetLevel()-51] * (100+RuleI(Combat,MonkDamageTableBonus))/100);
else
    return dmg_table[GetLevel()-51];
The actual formula for the max hit is:

Code:
max_hit = (((2*backstab_dmg) * GetDamageTable(BACKSTAB) / 100) * 10 * GetSkill(BACKSTAB) / 355)  + ((level-25)/3) + 1;
backstab_dmg is the number from the backstab damage field on the weapon. If you substitute your actual weapon damage and skill values into the formula it should help to see if the max is matching up.
Reply With Quote