iFreakTime~.~ 47 Posted November 4, 2016 Share Posted November 4, 2016 Hi all. I want to add a new 'fuction' by this system : https://metin2dev.org/board/index.php?/topic/11839-release-vip-system-from-src/ And I added In level function "void CInstanceBase::UpdateTextTailLevel(DWORD level)" a VIP function name like this : if (IsVIP()) sprintf(szText, "|cFF00CCFF[VIP]|r Lv. %d", level); But not working, binary is compiling with succes but show players title else if (IsPC()) sprintf(szText, "|cFF00CCFF[Player]|r Lv. %d", level); Please help me. PS: Sorry for my bad English. Link to comment Share on other sites More sharing options...
Itachi 44 Posted November 4, 2016 Share Posted November 4, 2016 Well some insurance will serve you Link to comment Share on other sites More sharing options...
iFreakTime~.~ 47 Posted November 4, 2016 Author Share Posted November 4, 2016 Please help me. Link to comment Share on other sites More sharing options...
Itachi 44 Posted November 4, 2016 Share Posted November 4, 2016 What error gives you? Link to comment Share on other sites More sharing options...
iFreakTime~.~ 47 Posted November 4, 2016 Author Share Posted November 4, 2016 No errors on compile binary. But , I enter the game , normally it need to show this : [VIP] Lv %d, this function: if (IsVIP()) sprintf(szText, "|cFF00CCFF[VIP]|r Lv. %d", level); But, it show this function : else if (IsPC()) sprintf(szText, "|cFF00CCFF[Player]|r Lv. %d", level); The server not identify the VIP from this, with "if (IsGameMaster())" works perfectly. Link to comment Share on other sites More sharing options...
Itachi 44 Posted November 5, 2016 Share Posted November 5, 2016 mmmmI will testify the system Link to comment Share on other sites More sharing options...
iFreakTime~.~ 47 Posted November 5, 2016 Author Share Posted November 5, 2016 You are tested the system ? Link to comment Share on other sites More sharing options...
iFreakTime~.~ 47 Posted November 5, 2016 Author Share Posted November 5, 2016 Someone help me, please? Link to comment Share on other sites More sharing options...
iFreakTime~.~ 47 Posted November 6, 2016 Author Share Posted November 6, 2016 Please, help me. Link to comment Share on other sites More sharing options...
iFreakTime~.~ 47 Posted November 9, 2016 Author Share Posted November 9, 2016 Please... ? Link to comment Share on other sites More sharing options...
iFreakTime~.~ 47 Posted November 10, 2016 Author Share Posted November 10, 2016 up please help me. Link to comment Share on other sites More sharing options...
iFreakTime~.~ 47 Posted November 13, 2016 Author Share Posted November 13, 2016 Up. Link to comment Share on other sites More sharing options...
Alucardo 7 Posted November 13, 2016 Share Posted November 13, 2016 Can you post your IsVip function? Link to comment Share on other sites More sharing options...
iFreakTime~.~ 47 Posted November 15, 2016 Author Share Posted November 15, 2016 In first post is the VIP system i have in my server. In think i need to add more functions to detect IsVip.. but i don't know where. Link to comment Share on other sites More sharing options...
iFreakTime~.~ 47 Posted November 15, 2016 Author Share Posted November 15, 2016 Up. Link to comment Share on other sites More sharing options...
iFreakTime~.~ 47 Posted November 16, 2016 Author Share Posted November 16, 2016 Up Link to comment Share on other sites More sharing options...
iFreakTime~.~ 47 Posted November 17, 2016 Author Share Posted November 17, 2016 Up. Link to comment Share on other sites More sharing options...
iFreakTime~.~ 47 Posted November 18, 2016 Author Share Posted November 18, 2016 Up. Link to comment Share on other sites More sharing options...
VegaS 1086 Posted November 18, 2016 Share Posted November 18, 2016 You can test with this. //@svn/Client/UserInterface/InstanceBaseEffect.cpp void CInstanceBase::UpdateTextTailLevel(DWORD level) { if (IsPC()) { static D3DXCOLOR s_kLevelColor = D3DXCOLOR(152.0f/255.0f, 255.0f/255.0f, 51.0f/255.0f, 1.0f); char szText[256]; char* szName[2] = {"[VIP]", "[Player]"}; /* Name of grade */ char* szColor[2] = {"d2d400", "09eeee"}; /* Color of grade: http://www.color-hex.com/color/ccffff */ if (IsVIP()) { sprintf(szText, "|cFF%s%s|r Lv. %d", szColor[0], szName[0], level); } else { sprintf(szText, "|cFF%s%s|r Lv. %d", szColor[1], szName[1], level); } CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor); } } Link to comment Share on other sites More sharing options...
iFreakTime~.~ 47 Posted November 19, 2016 Author Share Posted November 19, 2016 No working, for a VIP account , shows [Player] .. Link to comment Share on other sites More sharing options...
iFreakTime~.~ 47 Posted November 21, 2016 Author Share Posted November 21, 2016 Up. Link to comment Share on other sites More sharing options...
rawn3cr0 1 Posted January 5, 2019 Share Posted January 5, 2019 Same problem... 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