Jump to content

Recommended Posts

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

  • Replies 21
  • Created
  • Last Reply

Top Posters In This Topic

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

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

  • 2 years later...

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.