Zmoky
Civilian
Granted to members for high engagement.
10th Anniversary
Earned after being a member for 10 years.
Silver 2
Earned by having 36 posts & comments.
Likes : 23
| #1Subject: Items description 5/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] [/img] |
|