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
https://metin2.dev/topic/12645-hide-npc/
Share on other sites

  • Premium

but that way, people will atack my Chest(npc) and that cant happen. 

And cant be to cuz if i do that people can find it with Bússola de Pedras Metin.png

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
https://metin2.dev/topic/12645-hide-npc/#findComment-72574
Share on other sites

  • Premium

how can i make that quest to place NPC 9013 in map every time i turn on my server?

6 minutes ago, galet said:

Instead of using regen just use a quest, I won't appear on the large map c:

 

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

 

Link to comment
https://metin2.dev/topic/12645-hide-npc/#findComment-72577
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
https://metin2.dev/topic/12645-hide-npc/#findComment-72581
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
https://metin2.dev/topic/12645-hide-npc/#findComment-72582
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
https://metin2.dev/topic/12645-hide-npc/#findComment-72584
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
https://metin2.dev/topic/12645-hide-npc/#findComment-72719
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
https://metin2.dev/topic/12645-hide-npc/#findComment-72729
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.