Over 10 years active!
 
HomeUseful information for Helbreath beginnersStatistics overviewSearchMemberlistGalleryRulesRegisterLog in

 

 Items description

Go down 
AuthorMessage
Zmoky


Zmoky

Civilian
Granted to members for high engagement.
10th Anniversary
Earned for being a member of the community for 10 years.
Silver 2
Earned by having 36 posts & comments.

Likes : 22

Items description Empty
#1PostSubject: Items description   Items description 999105/19/2016, 6: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]
Back to top Go down
 
Items description
Back to top 
Page 1 of 1
 Similar topics
-
» Item Description
» Upgrade Items 100%
» Items grandes
» Items stats calculator
» Show the name of the items on the ground CODE

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