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


This is a website run by veteran Helbreath players with the aim of sharing discussions and content exclusively related to the development of a server and its gameplay.
 
HomeUseful information for Helbreath beginnersPlay, discover, and broadcast your Helbreath moments for free.Statistics overviewSearchMemberlistRulesRegisterLog in

We depend on Ads revenue to keep our site running. Please consider disabling your Ad Blocker so that we can continue to create the content you come to enjoy.
Thank you for your continued cooperation and understanding.

 

 [CODE] Agregar critical potion

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

Posts : 49
Since : 2014-11-05

[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
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: