rawn3cr0 1 Posted December 16, 2018 Share Posted December 16, 2018 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 More sharing options...
rawn3cr0 1 Posted December 19, 2018 Author Share Posted December 19, 2018 Up Link to comment Share on other sites More sharing options...
rawn3cr0 1 Posted December 21, 2018 Author Share Posted December 21, 2018 (edited) 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); } Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 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