Jump to content

Bug InstanceBaseEffect


Recommended Posts

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: 0617_220815.jpg

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.