Jump to content
metin2dev
Legend

[FIX] Invisibility and Skill Affect Eunhyeong

Recommended Posts

Hey,

Today i will show you how you can fix easy the invisibility effect bug and the AFFECT_EUNHYEONG = sealth ninja skill from 17.5 Official update.

InstanceBase.cpp (Is hiding the ninja from the minimap)

Spoiler

Search for:

Spoiler

BOOL CInstanceBase::IsInvisibility()

{

    if (IsAffect(AFFECT_INVISIBILITY))
        return true;

    return false;

}

 

Replace with:

Spoiler

BOOL CInstanceBase::IsInvisibility()
{
    if (IsAffect(AFFECT_INVISIBILITY) || IsAffect(AFFECT_EUNHYEONG))
        return true;

    return false;
}

 

Search for:

Spoiler

void CInstanceBase::Render()
{

Inside the function search for:

 m_GraphicThingInstance.Render();

Add bellow:

  1.     CPythonCharacterManager & rkChrMgr = CPythonCharacterManager::Instance();
  2.  
  3.     for (auto ptr = rkChrMgr.CharacterInstanceBegin(); ptr != rkChrMgr.CharacterInstanceEnd(); ++ptr)
  4.     {
  5.         CInstanceBase * pkInstEach = *ptr;
  6.  
  7.         if (pkInstEach)
  8.         {
  9.             if (pkInstEach->IsAffect(AFFECT_EUNHYEONG) || pkInstEach->IsAffect(AFFECT_INVISIBILITY))
  10.             {
  11.                 if (CPythonPlayer::Instance().IsMainCharacterIndex(pkInstEach->GetVirtualID()))
  12.                     continue;
  13.  
  14.                 pkInstEach->m_GraphicThingInstance.HideAllAttachingEffect();
  15.             }
  16.         }
  17.     }

 

InstanceBaseEffect.cpp

Search for:

Spoiler

void CInstanceBase::__SetAffect(UINT eAffect, bool isVisible)
{

Inside the function search:

        case AFFECT_INVISIBILITY:
            if (isVisible)
            {
                m_GraphicThingInstance.ClearAttachingEffect();
                __EffectContainer_Destroy();
                DetachTextTail();
            }
            else
            {
                m_GraphicThingInstance.BlendAlphaValue(1.0f, 1.0f);
                AttachTextTail();
                RefreshTextTail();
            }
            return;
            break;

}

Replace with:

Spoiler

        case AFFECT_INVISIBILITY:
            if (isVisible)
            {
                // m_GraphicThingInstance.ClearAttachingEffect();
                // __EffectContainer_Destroy();
                // DetachTextTail();
                m_GraphicThingInstance.HideAllAttachingEffect();
            }
            else
            {
                m_GraphicThingInstance.BlendAlphaValue(1.0f, 1.0f);
                m_GraphicThingInstance.ShowAllAttachingEffect();

                // AttachTextTail();
                // RefreshTextTail();
            }
            return;
            break;

 

  • Like 7
  • Thanks 6

Share this post


Link to post
Share on other sites
vor 13 Minuten schrieb Shang:

What is the bug?

if you use stealth skill, you can be seen on minimap, but not anymore

  • Thanks 1

Share this post


Link to post
Share on other sites

Thank you for this release, but it has a small bug. Make your GM character invisible, then zoom in your chatracter. You will se your character all it effects like GM logo, and skill effects. Then use Ninja hiding skill, and make this camera movement again with another character next to the ninja char. You will see the armor effects on the ninja :)

 

  • Like 1

Share this post


Link to post
Share on other sites

One problem in the instancebase.cpp file. Other players do not see the visualization of skills. Is anyone able to fix it?

giphy.webp

  • Like 2

Share this post


Link to post
Share on other sites
On 11/21/2018 at 5:59 PM, Tatsumaru said:

One problem in the instancebase.cpp file. Other players do not see the visualization of skills. Is anyone able to fix it?

giphy.webp

That problem is exist in official too, when i got some more time i will check more to find a solution, but atm idk.

  • Like 4
  • Thanks 1

Share this post


Link to post
Share on other sites

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×