Nigga |
Wysłany: Wto 14:31, 25 Mar 2008 Temat postu: [FIX] Physical Absorption |
|
Sources HG, Game.cpp, buscar:
Código:
Kod: |
case 4:
[code] if (m_pClientList[sTargetH]->m_iDamageAbsorption_Armor[DEF_EQUIPPOS_HEAD] > 0) {
if (m_pClientList[sTargetH]->m_iDamageAbsorption_Armor[DEF_EQUIPPOS_HEAD] >= 80)
dTmp1 = 80.0f;
else dTmp1 = (double)m_pClientList[sTargetH]->m_iDamageAbsorption_Armor[DEF_EQUIPPOS_HEAD];
dTmp2 = (double)iAP_SM;
dTmp3 = (dTmp1 / 100.0f) * dTmp2;
iAP_Abs_Armor = (int)dTmp3;
}
break;
}
[/code] |
Agregar abajo:
Código:
Kod: |
if (m_pClientList[sTargetH]->m_iAddAbsPD != 0) {
dTmp1 = (double)iAP_SM;
dTmp2 = (double)m_pClientList[sTargetH]->m_iAddAbsPD;
dTmp3 = (dTmp2/100.0f)*dTmp1;
iAP_SM = iAP_SM - (int)dTmp3;
dTmp1 = (double)iAP_L;
dTmp2 = (double)m_pClientList[sTargetH]->m_iAddAbsPD;
dTmp3 = (dTmp2/100.0f)*dTmp1;
iAP_L = iAP_L - (int)dTmp3;
}
|
Buscar: (2 veces)
Código:
Kod: |
case 7: m_pClientList[iClientH]->m_iAddMR += (int)dwSWEValue*7; break;
Reemplazar del case 8 al case 12 por estos:
Código:
case 8: m_pClientList[iClientH]->m_iAddAbsPD += (int)dwSWEValue*3; break;
case 9: m_pClientList[iClientH]->m_iAddAbsMD += (int)dwSWEValue*3; break;
case 10: m_pClientList[iClientH]->m_iAddCD += (int)dwSWEValue; break;
case 11: m_pClientList[iClientH]->m_iAddExp += (int)dwSWEValue*10; break;
case 12: m_pClientList[iClientH]->m_iAddGold += (int)dwSWEValue*10; break;
|
Buscar: (2 veces)
Código:
Kod: |
case 9: if (m_pClientList[iClientH]->m_iAddAbsMD > 80) m_pClientList[iClientH]->m_iAddAbsMD = 80; break;
|
Agregar arriba:
Código:
Kod: |
[code]case 8: if (m_pClientList[iClientH]->m_iAddAbsPD > 80) m_pClientList[iClientH]->m_iAddAbsPD = 80; break;
[/code]
|
|
|