Code: Select all
if( memcmp( cp, "/checkdefence", 9 ) == 0 )
{
int dr = m_pClientList[ iClientH ]->m_iDefenseRatio + m_pClientList[ iClientH ]->m_iAddDR;
int pahead = m_pClientList[ iClientH ]->m_iDamageAbsorption_Armor[ DEF_EQUIPPOS_HEAD ];
int pabody = m_pClientList[ iClientH ]->m_iDamageAbsorption_Armor[ DEF_EQUIPPOS_BODY ];
int papants = m_pClientList[ iClientH ]->m_iDamageAbsorption_Armor[ DEF_EQUIPPOS_PANTS ];
int paarms = m_pClientList[ iClientH ]->m_iDamageAbsorption_Armor[ DEF_EQUIPPOS_ARMS ];
int mr = m_pClientList[ iClientH ]->m_iAddResistMagic[ ABS_MAGIC ] + m_pClientList[ iClientH ]->m_cSkillMastery[ 3 ];
int ma = m_pClientList[ iClientH ]->m_iAddAbsMD[ ABS_MAGIC ];
wsprintf( G_cTxt, "DR=%d, PA[HEAD]=%d, PA[BODY]=%d, PA[PANTS]=%d, PA[ARMS]=%d, MR=%d, MA=%d", dr, pahead, pabody, papants, paarms, mr, ma );
SendNotifyMsg( NULL, iClientH, DEF_NOTIFY_NOTICEMSG, 0, 0, 0, G_cTxt );
return;
}