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
 

 No me funciona el INSERT - Tomar Pots HP

Go down 
AuthorMessage
Juansourse

Juansourse

Posts : 11

No me funciona el INSERT - Tomar Pots HP Empty
PostSubject: No me funciona el INSERT - Tomar Pots HP   No me funciona el INSERT - Tomar Pots HP 999107/3/2020, 3:03 pm

Estimado buenas tardes, logre levantar mi server local, ahora tengo el problema de que cuando quiero aumentar mi HP con pots.
hay 2 formas, con INSERT o haciendo doble click en la pots. Por ambos caminos consume la pots e informa que lo hizo por pantalla, pero no me aumenta el HP.


Les dejo el codigo que veo en el archivo Game.ccp



case VK_INSERT:

if (m_iHP <= 0) return;

if (m_bItemUsingStatus == TRUE)

{ AddEventList(USE_RED_POTION1, 10);

return;

}

if (m_bIsDialogEnabled[27] == TRUE)

{ AddEventList(USE_RED_POTION2, 10);

return;

}

for (i = 0; i < DEF_MAXITEMS; i++)

if ( (m_pItemList[i] != NULL) && (m_bIsItemDisabled[i] != TRUE) &&

(m_pItemList[i]->m_sSprite == 6) && (m_pItemList[i]->m_sSpriteFrame == 1))

{ bSendCommand(MSGID_COMMAND_COMMON, DEF_COMMONTYPE_REQ_USEITEM, NULL, i, NULL, NULL, NULL);

m_bIsItemDisabled[i] = TRUE;

m_bItemUsingStatus = TRUE;

return;

}



for (i = 0; i < DEF_MAXITEMS; i++)

if ( (m_pItemList[i] != NULL) && (m_bIsItemDisabled[i] != TRUE) &&

(m_pItemList[i]->m_sSprite == 6) && (m_pItemList[i]->m_sSpriteFrame == 2))

{ bSendCommand(MSGID_COMMAND_COMMON, DEF_COMMONTYPE_REQ_USEITEM, NULL, i, NULL, NULL, NULL);

m_bIsItemDisabled[i] = TRUE;

m_bItemUsingStatus = TRUE;

return;

}

break;




Espero que se entienda y me puedan ayudar.

Desde ya muchas gracias,
Back to top Go down
Juansourse

Juansourse

Posts : 11

No me funciona el INSERT - Tomar Pots HP Empty
PostSubject: Re: No me funciona el INSERT - Tomar Pots HP   No me funciona el INSERT - Tomar Pots HP 999107/3/2020, 6:30 pm

Tampoco encuentro en Game.ccp donde se indica los drops de cada NCP
Back to top Go down
LifeX
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
LifeX

Posts : 220

No me funciona el INSERT - Tomar Pots HP Empty
PostSubject: Re: No me funciona el INSERT - Tomar Pots HP   No me funciona el INSERT - Tomar Pots HP 999107/4/2020, 2:31 am

I have fix your problem for the INSERT.

[You must be registered and logged in to see this link.]

And also the function you need for drops is at 

void CGame::NpcDeadItemGenerator(int iNpcH, short sAttackerH, char cAttackerType)


LifeX
Back to top Go down
Juansourse

Juansourse

Posts : 11

No me funciona el INSERT - Tomar Pots HP Empty
PostSubject: Re: No me funciona el INSERT - Tomar Pots HP   No me funciona el INSERT - Tomar Pots HP 999107/4/2020, 10:09 pm

Nuevamente muchísimas gracias por la ayuda.
Back to top Go down
LifeX
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
LifeX

Posts : 220

No me funciona el INSERT - Tomar Pots HP Empty
PostSubject: Re: No me funciona el INSERT - Tomar Pots HP   No me funciona el INSERT - Tomar Pots HP 999107/6/2020, 8:21 am

Most welcome. Kindly post in that thread if u see any problems.

I will closed this topic.


LifeX
Back to top Go down
 
No me funciona el INSERT - Tomar Pots HP
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Join Helbreath :: Interaction :: Ask the Community-
Jump to: