elchetofede

Posts : 16 Since : 2014-04-24
 | Subject: Como modificar el Hp de los npc 1/12/2017, 2:17 am | |
| Hola comunidad WH queria sacarme la duda, estoy buscando como modificar el hp de los np por ej las Slime tiene 15 de hp busco en el npc.cfg y no lo encuentro a lo mejor sea desde src me podrian dar una manita por aqui...Muchas :gracias: : |
|
LifeX


Posts : 269 Since : 2014-11-16
 | Subject: Re: Como modificar el Hp de los npc 1/12/2017, 2:53 am | |
| Normally in all NPC.cfg, the 2nd configs is the HP. Npc = Slime 10 1 10 3010 = NPC Type No. ( When you do drop list and also pits placement in mapdata )1 = HP of the NPC ( Calculation is as per below )10 = Defense Ratio ( Dex for Slime ( Miss when players hit ) )30 = Hit ratio ( NPC Damage to Players )This is the default calculation for all default sources, you can change how it reads. - Code:
-
if(m_iHitDice <= 5) m_iHP = abs(iDice(m_iHitDice, 4) + m_iHitDice); else m_iHP = abs(m_iHitDice * 5 + iDice(1, m_iHitDice)); |
|
elchetofede

Posts : 16 Since : 2014-04-24
 | Subject: Re: Como modificar el Hp de los npc 1/12/2017, 11:27 am | |
| |
|
LifeX


Posts : 269 Since : 2014-11-16
 | Subject: Re: Como modificar el Hp de los npc 1/12/2017, 2:07 pm | |
| |
|
Sponsored content
 | Subject: Re: Como modificar el Hp de los npc  | |
| |
|