drgos001 20 Posted June 17, 2016 Share Posted June 17, 2016 (edited) Hi, I added system pet and when I added the player does not appear lvl, how can I fix? Function: Spoiler void CInstanceBase::UpdateTextTailLevel(DWORD level) { //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); static D3DXCOLOR Color_lv_1 = D3DXCOLOR(64.0f / 255.0f, 159.0f / 255.0f, 203.0f / 255.0f, 1.0f); static D3DXCOLOR Color_lv_2 = D3DXCOLOR(124.0f / 255.0f, 252.0f / 255.0f, 255.0f / 255.0f, 1.0f); static D3DXCOLOR Color_lv_3 = D3DXCOLOR(0.0f / 255.0f, 250.0f / 255.0f, 51.0f / 255.0f, 1.0f); static D3DXCOLOR Color_lv_4 = D3DXCOLOR(152.0f / 255.0f, 191.0f / 255.0f, 154.0f / 255.0f, 1.0f); static D3DXCOLOR Color_lv_5 = D3DXCOLOR(0.0f / 255.0f, 255.0f / 255.0f, 33.0f / 255.0f, 1.0f); char szText[256]; #ifdef NEW_PET_SYSTEM static D3DXCOLOR s_kPetLevelColor = D3DCOLOR_XRGB(255, 255, 0); if (IsNewPet()) { sprintf(szText, "Lv %d", level); CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kPetLevelColor); } else if (IsGameMaster()) { sprintf(szText, "[Staff]", level); static D3DXCOLOR Color_lv_5 = D3DXCOLOR(0.0f / 255.0f, 255.0f / 255.0f, 33.0f / 255.0f, 1.0f); } else if (IsEnemy()) {sprintf(szText, "[MOB][Lv] %d", level); static D3DXCOLOR Color_lv_4 = D3DXCOLOR(0.0f/255.0f, 255.0f/255.0f, 33.0f/255.0f, 1.0f);} else if (IsStone()) { sprintf(szText, "[Metin][Lv] %d", level); static D3DXCOLOR Color_lv_5 = D3DXCOLOR(0.0f / 255.0f, 255.0f / 255.0f, 33.0f / 255.0f, 1.0f); } else if (IsPC()) { printf(szText, "Lv %d", level); CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor); } #else sprintf(szText, "Lv %d", level); CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor); #endif } Image shown after compilation: Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
drgos001 20 Posted June 18, 2016 Author Share Posted June 18, 2016 Up! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now