Jump to content

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Active Member
7 minutes ago, bumxd said:

i need what can see empire flag on VIP too, now i have this bug: https://metin2.download/picture/4BDVzzIuFLXS3y2qgBS3SAMT7El4lI85/.png i see myself empire flag, when i change costume, effect empire flag is off, and all good will, but after teleport again will empire flag myself.. and other player can empire flag remove(if change costume in costume slot)

my instancebase.cpp function:

  Hide contents

BOOL CInstanceBase::IsSameEmpire(CInstanceBase& rkInstDst)

{

if (0 == rkInstDst.m_dwEmpireID)

return TRUE;

if (IsGameMaster())

return TRUE;

 

// #ifdef __ONEX_VIP__

// if (IsVIP())

// return TRUE;

// #endif

if (rkInstDst.IsGameMaster())

return TRUE;

 

// #ifdef __ONEX_VIP__

// if (rkInstDst.IsVIP())

// return TRUE;

// #endif

if (rkInstDst.m_dwEmpireID==m_dwEmpireID)

return TRUE;

return FALSE;

}

instancebaseeffect.cpp function:

  Hide contents

void CInstanceBase::__AttachEmpireEffect(DWORD eEmpire)

{

if (!__IsExistMainInstance())

return;

 

CInstanceBase* pkInstMain=__GetMainInstancePtr();

if (IsWarp())

return;

if (IsObject())

return;

if (IsFlag())

return;

if (IsResource())

return;

if (pkInstMain->IsGameMaster())

{

}

#ifdef __ONEX_VIP__

else if (pkInstMain->IsVIP())

{

}

#endif

else

{

if (pkInstMain->IsSameEmpire(*this))

return;

// HIDE_OTHER_EMPIRE_EUNHYEONG_ASSASSIN

if (IsAffect(AFFECT_EUNHYEONG))

return;

// END_OF_HIDE_OTHER_EMPIRE_EUNHYEONG_ASSASSIN

}

if (IsGameMaster())

return;

 

// #ifdef __ONEX_VIP__

// if (IsVIP())

// return;

// #endif

__EffectContainer_AttachEffect(EFFECT_EMPIRE+eEmpire);

}

 

You dont need to show the flag when player is vip?
instancebaseeffect.cpp
replace this:
 

else if (pkInstMain->IsVIP())
{

}

with:
 

if (pkInstMain->IsVIP())
	return;

 

Edited by Metin2 Dev
Core X - External 2 Internal

Untitled.png

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.