Jump to content

How to remove flag if exist vip


Recommended Posts

Hello i have a problem with 2 effect view this picture

FRIaV0J.png

 

I don't know how to remove a flag if the vip is active..

i have in instancebase.cpp this:

Spoiler

#ifdef __KOTOBA_VIP__
BOOL CInstanceBase::IsVIP()
{
    if (m_kAffectFlagContainer.IsSet(AFFECT_VIP))
        return true;
    return false;
}
#endif

BOOL CInstanceBase::IsSameEmpire(CInstanceBase& rkInstDst)
{
    if (0 == rkInstDst.m_dwEmpireID)
        return TRUE;

    if (IsGameMaster())
        return TRUE;
#ifdef __KOTOBA_VIP__
    if (IsVIP())
        return TRUE;
#endif
    if (rkInstDst.IsGameMaster())
        return TRUE;
    if (rkInstDst.m_dwEmpireID==m_dwEmpireID)
        return TRUE;
#ifdef __KOTOBA_VIP__
    if (rkInstDst.IsVIP())
        return TRUE;
#endif

 

in instancebaseeffect.cpp this

 

Spoiler

    if (pkInstMain->IsGameMaster())
    {
    }
#ifdef __KOTOBA_VIP__
    else if (pkInstMain->IsVIP())
    {
    }
#endif
    else
    {
            

 

and

    if (IsGameMaster())
        return;
#ifdef __KOTOBA_VIP__
    if (IsVIP())
        return;
#endif

 

and

 

#ifdef __KOTOBA_VIP__
        case AFFECT_VIP:
            if (IsAffect(AFFECT_INVISIBILITY))
                return;
            break;
#endif

 

AFF_VIP is 42.. how to resolve this?? help me please

 

Best regards,

Zorke.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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.