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,