Onforum.net - Web and gaming resource community

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members .

Metin2 Hide flag on NPC

Michs

New member
Credits
1
Hi guys, with these small edit you will be able to hide the FLAG on the NPC

Client Source => UserInterface/InstanceBaseEffect.cpp

Search:
C++:
void CInstanceBase::__AttachEmpireEffect(DWORD eEmpire)

Search into this function that:
C++:
if (IsResource())

Add under:
C++:
if (IsNPC())
return;

Happy code!
 
You also can do this individually, for let say...mount system, placing bellow code under
C++:
if (IsResource())
    return;
as follows:
C++:
DWORD nVnum = your_npc_vnum; //where your_npc_vnum is an integer
    if (GetRace() == nVnum)
        return;
But anyways for general purposes, your code are fitting better.
 
With this code you can hide all npc (and you can extend it to Pet, Mount) etc
Yes of course, but I ment, to hide only few NPC flags, if you want to(for that reason I mentioned "for mount"), not all of them.
And again, like I said "for general purposes, your code are fitting better ", and here by general, I mean all mobs.
 

Similar threads


Top

Dear User!

We found that you are blocking the display of ads on our site.

Please add it to the exception list or disable AdBlock.

The advertises that you'll see aren't intrusive they just help us to keep the community alive

If you don't want to see those ads just buy an upgrade.

Thank you for understanding!

Rogue

Rogue Purchase

User upgrade! at

🔥 Upgrade Now
Baba2

Baba2 Purchase

User upgrade! at

🔥 Upgrade Now

Escanor25 Purchase

User upgrade! at

🔥 Upgrade Now