Join Helbreath
Would you like to react to this message? Create an account in a few clicks or log in to continue.


An essential info site for anyone learning the game. Great community and often very insightful posts.
 
HomeUseful information for Helbreath beginnersPlay, discover, and broadcast your Helbreath moments for free.Statistics overviewSearchMemberlistRulesRegisterLog in
 

 [CODE] Agregar critical potion

Go down 
AuthorMessage
KenZoB
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
KenZoB

Posts : 48

[CODE] Agregar critical potion Empty
PostSubject: [CODE] Agregar critical potion   [CODE] Agregar critical potion 9991011/14/2014, 12: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


[CODE] Agregar critical potion QADsl
Back to top Go down
 
[CODE] Agregar critical potion
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Join Helbreath :: Open Source / Development Corner :: C++-
Jump to: