Metin2 Hide flag on NPC

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Michs

New member
Joined
Jun 28, 2019
Messages
15
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++:
Expand Collapse Copy
void CInstanceBase::__AttachEmpireEffect(DWORD eEmpire)

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

Add under:
C++:
Expand Collapse Copy
if (IsNPC())
return;

Happy code!
 
You also can do this individually, for let say...mount system, placing bellow code under
C++:
Expand Collapse Copy
if (IsResource())
    return;
as follows:
C++:
Expand Collapse Copy
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
 
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.
 
Back
Top