Level in fata numelui [CLIENT] !
Salutare comunitate, mi-a dat ceva batai sa incerc sa adaug level in fata numelui, am reusit sa-l bag in server, acum vreau sa-l bag pe propriu meu client, si nu stiu cum. Ma poate ajuta cineva? Din cate am inteles e nevoie de niste fisiere. Nu vreau sa folosesc alte client`uri, vreau sa-l folosesc pe cel facut de mine. Multumesc anticipat. 
Nimeni, nimic ?
- ManiacRobert
-

- Mesaje: 1526
- Membru din: 09 Dec 2013, 09:51
- Server: Canary-World
- Regat: Shinsoo
- Aprecieri: 310
- Mulţumiri: 687
- Discord: Copiază ID
- Contact:
Urcă pe pastebin, instancebaseeffect.cpp din binary.
- Pentru acest mesaj, ManiacRobert for the post:
- Leonidas13
useinterface - instancebaseeffect.cpp
cam asa :
linia: 731 la mine..
cam asa :
linia: 731 la mine..- Pentru acest mesaj, iancuadrian for the post:
- Leonidas13
- ManiacRobert
-

- Mesaje: 1526
- Membru din: 09 Dec 2013, 09:51
- Server: Canary-World
- Regat: Shinsoo
- Aprecieri: 310
- Mulţumiri: 687
- Discord: Copiază ID
- Contact:
Inlocuieste functia
Cu asta
Cod: Selectaţi tot
void CInstanceBase::UpdateTextTailLevel(DWORD level)Cod: Selectaţi tot
void CInstanceBase::UpdateTextTailLevel(DWORD level)
{
if (IsGameMaster())
{
//static D3DXCOLOR s_kLevelColor = D3DXCOLOR(119.0f/255.0f, 246.0f/255.0f, 168.0f/255.0f, 1.0f);
static D3DXCOLOR s_kLevelColor = D3DXCOLOR(152.0f / 255.0f, 255.0f / 255.0f, 51.0f / 255.0f, 1.0f);
char szText[256];
sprintf(szText, "[STAFF]", level);
CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
else if (IsPC())
{
//static D3DXCOLOR s_kLevelColor = D3DXCOLOR(119.0f/255.0f, 246.0f/255.0f, 168.0f/255.0f, 1.0f);
static D3DXCOLOR s_kLevelColor = D3DXCOLOR(152.0f / 255.0f, 255.0f / 255.0f, 51.0f / 255.0f, 1.0f);
char szText[256];
sprintf(szText, "[Lv.]%d", level);
CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
else if (IsStone())
{
//static D3DXCOLOR s_kLevelColor = D3DXCOLOR(119.0f/255.0f, 246.0f/255.0f, 168.0f/255.0f, 1.0f);
static D3DXCOLOR s_kLevelColor = D3DXCOLOR(152.0f / 255.0f, 255.0f / 255.0f, 51.0f / 255.0f, 1.0f);
char szText[256];
sprintf(szText, "[STONE]&d", level);
CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
}-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: cosminusi93ksm și 51 vizitatori







