Jump to content

VIP in front of name


Recommended Posts

Hello. I install this VIP sistem and i want to show [VIP] in front of name.

I make in InstanceBaseEffect.cpp with  if (IsVIP()) and don't work, but with  if (IsGameMaster()) / if (isPc()) show [VIP] in front of name (gm/player).

How i can to make for vip to show?

Ty. Good Night

 

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

I solve this with Quest change name (adding * in front of name) , and adding this in InstanceBaseEffect.cpp

    if (IsPC())
    {
        char szText[256];
        std::string szName = GetNameString();
        static D3DXCOLOR s_kLevelColor = D3DXCOLOR(152.0f / 255.0f, 255.0f / 255.0f, 51.0f / 255.0f, 1.0f);
        if (IsGameMaster())
        {
            char* szName[1] = { "[GM]" }; /* Name of grade */
            char* szColor[1] = { "49ff00" }; /* Color of grade: http://www.color-hex.com/color/ccffff */

            sprintf(szText, "|cFF%s%s|r Lv. %d", szColor[0], szName[0], level);

            CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
        }
        else if (szName.find("*") != std::string::npos)
        {
            char* szName[1] = { "[VIP]" }; /* Name of grade */
            char* szColor[1] = { "f0ff00" }; /* Color of grade: http://www.color-hex.com/color/ccffff */

            sprintf(szText, "|cFF%s%s|r Lv. %d", szColor[0], szName[0], level);
            CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
        }
        else
            return;
        CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
    }

3chCSet.jpg

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.