Discord: https://discord.gg/z4rndWJzwq
 
HomeUseful information for Helbreath beginnersStatistics overviewSearchMemberlistGalleryRulesRegisterLog in

 

 [CODE] Agregar critical potion

Go down 
AuthorMessage
KenZoB


KenZoB

Silver 1
Earned by having 48 posts & comments.
Civilian
Granted to members for high engagement.

Likes : 9

[CODE] Agregar critical potion Empty
#1PostSubject: [CODE] Agregar critical potion   [CODE] Agregar critical potion 9991011/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
Back to top Go down
 
[CODE] Agregar critical potion
Back to top 
Page 1 of 1
 Similar topics
-
» [CODE] Client-based Potion Use Delay
» [CODE] ShorCut para el comando de Critical
» HOLA, volviendo al critical
» Levantar 3.82 --Critical error server does not response--
» Get IP code

Permissions in this forum:You cannot reply to topics in this forum
JoinHelbreath.net :: Development :: Code Posting-
Jump to: