NecklaceOfFury 100%

#1
Bueno me encontré con este lindo código que si anda, pero resulta ser que al usar el neck en un determinado tiempo me crashea el hg, alguno tendrá idea de porque puede ser??



sItemIndex2 = m_pClientList[iClientH]->m_sItemEquipmentStatus[EQUIPPOS_NECK];
if ((sItemIndex != -1) && (m_pClientList[iClientH]->m_pItemList[sItemIndex] != NULL) )
{
if ((sItemIndex2 != -1) && (m_pClientList[iClientH]->m_pItemList[sItemIndex2] != NULL) )
{ // 1
// No effect on Dark Elf Bow & Giant Battle Hammer & Direction Bow & Storm Bringer & Special Hammers
if ((m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sIDnum == 762)
|| (m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sIDnum == 874)
|| (m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sIDnum == 618)
|| (m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sIDnum == 845)
|| (m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sIDnum == 1502)
|| (m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sIDnum == 1503)
|| (m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sIDnum == 1504)
|| (m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sIDnum == 3622))
{
}
else if (m_pClientList[iClientH]->m_pItemList[sItemIndex2]->m_sIDnum == 1412)//NeckOfFury
{
// Normal Damage
if (((abs(tdX - dX) >= 1) && (abs(tdY - dY) >= 1)) || ((abs(tdX - dX) <= 1) && (abs(tdY - dY) <= 1))) // Coords
{ //2
m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->GetOwner(&sOwner, &cOwnerType, dX, dY);
iExp += iCalculateAttackEffect(sOwner, cOwnerType, iClientH, OWNERTYPE_PLAYER, dX, dY, wType, bNearAttack, bIsDash, FALSE); // 0
SendEventToNearClient_TypeB(MSGID_EVENT_COMMON, COMMONTYPE_MAGIC, m_pClientList[iClientH]->m_cMapIndex, sX, sY, sX, sY, (173), m_pClientList[iClientH]->m_sType);
} //2
// Attack 8 hit effect
m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->GetOwner(&sOwner, &cOwnerType, sX+1, sY);
iExp += iCalculateAttackEffect(sOwner, cOwnerType, iClientH, OWNERTYPE_PLAYER, sX+1, sY , wType, bNearAttack, bIsDash, FALSE);
m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->GetOwner(&sOwner, &cOwnerType, sX+1, sY+1);
iExp += iCalculateAttackEffect(sOwner, cOwnerType, iClientH, OWNERTYPE_PLAYER, sX+1, sY+1, wType, bNearAttack, bIsDash, FALSE);
m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->GetOwner(&sOwner, &cOwnerType, sX, sY+1);
iExp += iCalculateAttackEffect(sOwner, cOwnerType, iClientH, OWNERTYPE_PLAYER, sX , sY+1, wType, bNearAttack, bIsDash, FALSE);
m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->GetOwner(&sOwner, &cOwnerType, sX-1, sY+1);
iExp += iCalculateAttackEffect(sOwner, cOwnerType, iClientH, OWNERTYPE_PLAYER, sX-1, sY+1, wType, bNearAttack, bIsDash, FALSE);
m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->GetOwner(&sOwner, &cOwnerType, sX-1, sY);
iExp += iCalculateAttackEffect(sOwner, cOwnerType, iClientH, OWNERTYPE_PLAYER, sX-1, sY , wType, bNearAttack, bIsDash, FALSE);
m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->GetOwner(&sOwner, &cOwnerType, sX-1, sY-1);
iExp += iCalculateAttackEffect(sOwner, cOwnerType, iClientH, OWNERTYPE_PLAYER, sX-1, sY-1, wType, bNearAttack, bIsDash, FALSE);
m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->GetOwner(&sOwner, &cOwnerType, sX, sY-1);
iExp += iCalculateAttackEffect(sOwner, cOwnerType, iClientH, OWNERTYPE_PLAYER, sX , sY-1, wType, bNearAttack, bIsDash, FALSE);
m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->GetOwner(&sOwner, &cOwnerType, sX+1, sY-1);
iExp += iCalculateAttackEffect(sOwner, cOwnerType, iClientH, OWNERTYPE_PLAYER, sX+1, sY-1, wType, bNearAttack, bIsDash, FALSE);
} // 1
}
}

Who is online

Users browsing this forum: No registered users and 1 guest

cron