SixSense 46 Posted March 28, 2016 Share Posted March 28, 2016 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 3 Link to comment Share on other sites More sharing options...
gummyantifi 2 Posted March 28, 2016 Share Posted March 28, 2016 Hello i have small problem.. I go in-game and kick my character Link to comment Share on other sites More sharing options...
SixSense 46 Posted March 30, 2016 Author Share Posted March 30, 2016 Post a photo with the code. Link to comment Share on other sites More sharing options...
gummyantifi 2 Posted March 30, 2016 Share Posted March 30, 2016 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 1 Link to comment Share on other sites More sharing options...
SixSense 46 Posted March 31, 2016 Author Share Posted March 31, 2016 Di you have the npc: 20406 ? As I told: replace the "20406" Link to comment Share on other sites More sharing options...
gummyantifi 2 Posted March 31, 2016 Share Posted March 31, 2016 Compilation is fine and I login to game. I move with the character and kicks me Link to comment Share on other sites More sharing options...
Premium TAUMP 961 Posted April 1, 2016 Premium Share Posted April 1, 2016 Omg, block it Npc flags and easy Link to comment Share on other sites More sharing options...
SixSense 46 Posted April 8, 2016 Author Share Posted April 8, 2016 just change the 20406 to your npc vnum. Link to comment Share on other sites More sharing options...
Management Karbust 5530 Posted May 22, 2016 Management Share Posted May 22, 2016 How to remove from the the npcs? Can be used like this? if (IsNPC()) return; Link to comment Share on other sites More sharing options...
BekirAKDMR 5 Posted September 1, 2016 Share Posted September 1, 2016 or you can change flags Link to comment Share on other sites More sharing options...
Premium TAUMP 961 Posted April 1, 2024 Premium Share Posted April 1, 2024 If you dont like flags if you are GM Just search it and edit like that, dont be lazy pig, ooooooooo! if (pkInstMain->IsGameMaster()) { if (IsNPC()) return; } 1 Link to comment Share on other sites More sharing options...
Recommended Posts