Jump to content

Hide NPC's kingdom flag


Recommended Posts

Let's say you have a NPC in your city1 (a smaller npc or a tall one) and the kingdom flag is not fits.. so you must want to hide'it.

Open from client source:

InstanceBaseEffect.cpp

Search for: 
void CInstanceBase::__AttachEmpireEffect(DWORD eEmpire)

Add under "if (IsResource()) return;"

    DWORD vnum_my_npc = 20406;        
    if (GetRace() == vnum_my_npc)
        return;

Just replace the "20406" for your npc vnum and compile.

Enjoy :)

  • Love 2
Link to comment
Share on other sites

Spoiler

void CInstanceBase::__AttachEmpireEffect(DWORD eEmpire)
{
    if (!__IsExistMainInstance())
        return;    
    
    CInstanceBase* pkInstMain=__GetMainInstancePtr();

    if (IsWarp())
        return;
    if (IsObject())
        return;
    if (IsFlag())
        return;
    if (IsResource())
        return;
    DWORD vnum_my_npc = 20406;        
    if (GetRace() == vnum_my_npc)
        return;

    if (pkInstMain->IsGameMaster())
    {
    }
    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;

    __EffectContainer_AttachEffect(EFFECT_EMPIRE+eEmpire);
}
 

 

here function

 

  • Love 1
Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...
  • 7 years later...

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.