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.

 

 Items description

Go down 
AuthorMessage
Santana
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
Santana

Posts : 28
Since : 2014-03-10

Items description Empty
PostSubject: Items description   Items description 999105/19/2016, 3:12 pm

Esto es todo en src Client :

Primero Buscar en GetItemName
Code:
strcpy(cName, pItem->m_cName);
for (i = 0; i < DEF_MAXITEMNAMES; i++)
if ((m_pItemNameList[i] != NULL) && (strcmp(m_pItemNameList[i]->m_cOriginName, pItem->m_cName) == 0))
{ strcpy(cName, m_pItemNameList[i]->m_cName);
 break;
}

y abajo de eso agregar :

Code:
if (strcmp(pItem->m_cName, "Nombre del Item") == 0) wsprintf(cStr5, "Descripcion para el Item");
else if (strcmp(pItem->m_cName, "Nombre del Item") == 0) wsprintf(cStr5, "Descripcion para el Item");
else if (strcmp(pItem->m_cName, "Nombre del Item") == 0) wsprintf(cStr5, "Descripcion para el Item");
else wsprintf(cStr5, "");

Luego en UpdateScreen_OnGame :

buscan (no todos los src lo tienen igual ):


Code:
if (m_pItemList[m_stMCursor.sSelectedObjectID]->m_cEquipPos != DEF_EQUIPPOS_NONE || !strcmp(m_pItemList[m_stMCursor.sSelectedObjectID]->m_cName,"ZemstoneofSacrifice")) {
wsprintf(G_cTxt, UPDATE_SCREEN_ONGAME10, m_pItemList[m_stMCursor.sSelectedObjectID]->m_wCurLifeSpan);
PutString(msX, msY +25 +iLoc, G_cTxt, RGB(200,200,200), FALSE, 1);
iLoc += 15;
}

y abajo agregar (para cambiar color solo cambias el parentesis del RGB:

Code:
if (strlen(cStr5) != 0)
{    PutString(msX, msY+25 +iLoc, cStr5, RGB(250,50,50), FALSE, 1);
     iLoc += 15;
}

Ahora en Game.h agregar:

Code:
char cStr5[256];

y listo , sensillo el code pero sirve

[img]Items description E6xi14[/img]


Items description Thump_916152217724256038512731101
Back to top Go down
 
Items description
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: