KenZoB
Silver 1
Earned by having 48 posts & comments.
Civilian
Granted to members for high engagement.
Likes : 9
| #1Subject: [CODE] Agregar critical potion 11/14/2014, 3:03 am | |
| Todo esto es en el HGSources: Buscamos: - Code:
-
case DEF_ITEMEFFECTTYPE_HPSTOCK: iV1 = m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sItemEffectValue1; iV2 = m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sItemEffectValue2; iV3 = m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sItemEffectValue3; m_pClientList[iClientH]->m_iHPstock += iDice(iV1, iV2) + iV3; if (m_pClientList[iClientH]->m_iHPstock < 0) m_pClientList[iClientH]->m_iHPstock = 0; if (m_pClientList[iClientH]->m_iHPstock > 500) m_pClientList[iClientH]->m_iHPstock = 500;
// ¹è°íÇÄÀ» ÇØ°áÇÑ´Ù. m_pClientList[iClientH]->m_iHungerStatus += iDice(iV1, iV2) + iV3; if (m_pClientList[iClientH]->m_iHungerStatus > 100) m_pClientList[iClientH]->m_iHungerStatus = 100; if (m_pClientList[iClientH]->m_iHungerStatus < 0) m_pClientList[iClientH]->m_iHungerStatus = 0; break; Luego abajo agregamos: - Code:
-
case DEF_ITEMEFFECTTYPE_CRIT2: iMax = 10000; if (m_pClientList[iClientH]->m_iSuperAttackLeft < iMax) m_pClientList[iClientH]->m_iSuperAttackLeft += 200; iEffectResult = 17; break;
En Item.h agregamos: - Code:
-
#define DEF_ITEMEFFECTTYPE_CRIT2 34 Buscamos: - Code:
-
case 6: // EXP SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SLATE_EXP, NULL, NULL, NULL, NULL); break; y abajo agregamos: - Code:
-
case 17: SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_NOTICEMSG, NULL, NULL, NULL, "You have earned 200 Critical Points!"); SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SUPERATTACKLEFT, NULL, NULL, NULL, NULL); break; por ultimo agregamos en item3.cfg o donde gustes agregarlo: - Code:
-
Item = 294 CriticalPotion 7 0 34 2 12 10 0 0 0 1 0 6 130 -10 30 -1 0 0 0 0 0 -1 21 0 |
|