Register for your free account! | Forgot your password?

You last visited: Today at 16:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C++] Hide NPC's kingdom flag

Discussion on [C++] Hide NPC's kingdom flag within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 110
Join Date: Oct 2009
Posts: 134
Received Thanks: 96
Post [C++] Hide NPC's kingdom flag

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
[TM]SixSense is offline  
Thanks
9 Users
Old 03/28/2016, 14:32   #2
 
Dexam™'s Avatar
 
elite*gold: 0
Join Date: Apr 2012
Posts: 165
Received Thanks: 206
nützlich, dank dir
Dexam™ is offline  
Thanks
1 User
Old 03/28/2016, 17:17   #3
 
stenlykkk's Avatar
 
elite*gold: 0
Join Date: Jan 2012
Posts: 42
Received Thanks: 7
Kicks a player from the game after logging in where I wrong?
stenlykkk is offline  
Old 03/29/2016, 00:03   #4
 
elite*gold: 110
Join Date: Oct 2009
Posts: 134
Received Thanks: 96
stenlykkk, this method is clean and easy. Show a picture with the code with all "void CInstanceBase::__AttachEmpireEffect(DWORD eEmpire)"
[TM]SixSense is offline  
Old 04/01/2016, 22:21   #5
 
dstyl's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 428
Received Thanks: 192
I guess it's easier 2 remove it from all NPC.
Therefor it goes like this:

Just add
Quote:
if (IsNPC())
return;
after
Quote:
if (IsResource())
return;
dstyl is offline  
Thanks
6 Users
Reply

Tags
flag, kingdom, npc


Similar Threads Similar Threads
Hide WSG Flag From Your Back! MAGE/WARLOCK!
01/07/2008 - WoW Exploits, Hacks, Tools & Macros - 2 Replies
Mage or Lock can grab the flag, stop for a second and use the food table/soul well skill. The flag will poof off your back but you still have it! this is server side, even your own team wont see the flag.
Easy "Hide the Flag" Trick in WSG
01/11/2006 - WoW Exploits, Hacks, Tools & Macros - 3 Replies
Ok this is a little tip that I have used to hide the flag may many times. I'm sure others have used it. Ok, this may take a little practice at first but once you figure out, you're positioning it smooth sailing. When holding the flag, get up again a wall type surface and type /sleep, you will fall asleep and not drop the flag. Now if done correctly, the flag will fall inside the wall or peice of land becoming invisable, if done even more correctly half your body will also be in that...



All times are GMT +1. The time now is 16:09.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.