Jump to content
×
×
  • Create New...
  • 0

VIP system


iFreakTime~.~

Question

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
  • Answers 21
  • Created
  • Last Reply

Top Posters For This Question

21 answers to this question

Recommended Posts

  • 0

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
  • 0

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


  • Read our Rules
  • Activity

    1. 3

      Quest Craft

    2. 3

      Quest Craft

    3. 414

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    4. 11

      Metin2 Patcher with Electron

    5. 17

      I Want Find freebsd 11.4 with remove unnecessary codes

    6. 17

      I Want Find freebsd 11.4 with remove unnecessary codes

    7. 3

      Quest Craft

  • Recently Browsing

    • No registered users viewing this page.

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.