[C++] Hide NPC's kingdom flag

03/28/2016 03:13 [TM]SixSense#1
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:
Code:
InstancebaseEffect.cpp
Search for:
Code:
void CInstanceBase::__AttachEmpireEffect(DWORD eEmpire)
Add under "if (IsResource()) return;"

PHP Code:
    DWORD vnum_my_npc 20406;        
    if (
GetRace() == vnum_my_npc)
        return; 
Just replace the "20406" for your npc vnum and compile.

Enjoy :)
03/28/2016 14:32 Dexam™#2
nützlich, dank dir :)
03/28/2016 17:17 stenlykkk#3
Kicks a player from the game after logging in :) where I wrong?
03/29/2016 00:03 [TM]SixSense#4
stenlykkk, this method is clean and easy. Show a picture with the code with all "void CInstanceBase::__AttachEmpireEffect(DWORD eEmpire)"
04/01/2016 22:21 dstyl#5
I guess it's easier 2 remove it from all NPC.
Therefor it goes like this:
[Only registered and activated users can see links. Click Here To Register...]
Just add
Quote:
if (IsNPC())
return;
after
Quote:
if (IsResource())
return;