Jump to content

Recommended Posts

  • Premium

Hi there,

 

in some maps i have many Chest(NPC). And i wanna players find it. The problems is: Players can see that Chest (NPC) in MAP or Minimap. How can i avoid this? 

I wanna Hide NPC Vnum 9013. I realy need to hide this... any help please?

 

npcs.png

 

server files in 40k with both source

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
if pc.get_sex() == true and npc.get_sex() == false then
	npc.purge()
end

 

Link to comment
Share on other sites

  • Premium

In my opinion, the best way is to do this in the client source, it shouldn't be so hard to disable showing a kind of npc in the minimap.

its the best option yes, cuz i only need to hide one vnum 9013... but how? :\ and i realy need to hide it.

 

if pc.get_sex() == true and npc.get_sex() == false then
	npc.purge()
end

 

Link to comment
Share on other sites

2 minutes ago, EnKor said:

its the best option yes, cuz i only need to hide one vnum 9013... but how? :\ and i realy need to hide it.

 

I can just guess, but - 

PythonMiniMap.cpp in UserInterface

from: else if (pkInstEach->IsNPC())

to: else if (pkInstEach->IsNPC() && pkInstEach->GetRace() != 9013)

 

it's in the CPythonMiniMap::Update method.

I didn't test it, just try and let us know

  • Love 1
Link to comment
Share on other sites

  • Premium

 

30 minutes ago, CZEboy said:

I can just guess, but - 

PythonMiniMap.cpp in UserInterface

from: else if (pkInstEach->IsNPC())

to: else if (pkInstEach->IsNPC() && pkInstEach->GetRace() != 9013)

 

it's in the CPythonMiniMap::Update method.

I didn't test it, just try and let us know

 

thumbtack_note_Love_you.png

Solved! xD

 

 

I miss to hide it in normal map too (M) key -.-

Where i can add this to hide it in normal map too?

Edited by Metin2 Dev
Core X - External 2 Internal
if pc.get_sex() == true and npc.get_sex() == false then
	npc.purge()
end

 

Link to comment
Share on other sites

22 hours ago, EnKor said:

Up!

 

How can i HIDE NPC (9013) From normal map(KEY M)  too? please! 

That's which i had been afraid of... I couldn't find methods for the big map, just for minimap

 

EDIT:

How about adding if statement at the start of the CPythonMiniMap::RegisterAtlasMark method in the PythonMiniMap.cpp in UserInterface:

from:

void CPythonMiniMap::RegisterAtlasMark(BYTE byType, const char * c_szName, long lx, long ly)
{
    TAtlasMarkInfo aAtlasMarkInfo;

 

to:

void CPythonMiniMap::RegisterAtlasMark(BYTE byType, const char * c_szName, long lx, long ly)
{
    if (c_szName == "Name of the NPC")
        return;

    TAtlasMarkInfo aAtlasMarkInfo;
 

 

Link to comment
Share on other sites

  • Premium
4 hours ago, CZEboy said:

That's which i had been afraid of... I couldn't find methods for the big map, just for minimap

 

EDIT:

How about adding if statement at the start of the CPythonMiniMap::RegisterAtlasMark method in the PythonMiniMap.cpp in UserInterface:

from:

void CPythonMiniMap::RegisterAtlasMark(BYTE byType, const char * c_szName, long lx, long ly)
{
    TAtlasMarkInfo aAtlasMarkInfo;

 

to:

void CPythonMiniMap::RegisterAtlasMark(BYTE byType, const char * c_szName, long lx, long ly)
{
    if (c_szName == "Name of the NPC")
        return;

    TAtlasMarkInfo aAtlasMarkInfo;
 

 

All solved! Ty.

if pc.get_sex() == true and npc.get_sex() == false then
	npc.purge()
end

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.