Premium EnKor 42 Posted July 14, 2016 Premium Share Posted July 14, 2016 (edited) 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? server files in 40k with both source Edited September 11, 2022 by Metin2 Dev Core X - External 2 Internal 1 if pc.get_sex() == true and npc.get_sex() == false then npc.purge() end Link to comment Share on other sites More sharing options...
Thorer 19 Posted July 14, 2016 Share Posted July 14, 2016 Spawn it as metins. 1 Link to comment Share on other sites More sharing options...
Premium EnKor 42 Posted July 14, 2016 Author Premium Share Posted July 14, 2016 (edited) 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 Edited September 18, 2022 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 More sharing options...
Premium Galet 509 Posted July 14, 2016 Premium Share Posted July 14, 2016 Instead of using regen just use a quest, I won't appear on the large map c: 2 Link to comment Share on other sites More sharing options...
Premium EnKor 42 Posted July 14, 2016 Author Premium Share Posted July 14, 2016 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 Share on other sites More sharing options...
Premium Galet 509 Posted July 14, 2016 Premium Share Posted July 14, 2016 I think you can load a regen file on a map but I'm not sure (You can do that on a dungeon but I'm not sure if you can do it outside) 1 Link to comment Share on other sites More sharing options...
CZEboy 29 Posted July 14, 2016 Share Posted July 14, 2016 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. 1 Link to comment Share on other sites More sharing options...
Premium EnKor 42 Posted July 14, 2016 Author Premium Share Posted July 14, 2016 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 More sharing options...
CZEboy 29 Posted July 14, 2016 Share Posted July 14, 2016 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 1 Link to comment Share on other sites More sharing options...
Premium EnKor 42 Posted July 14, 2016 Author Premium Share Posted July 14, 2016 (edited) 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 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 August 26, 2022 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 More sharing options...
Premium EnKor 42 Posted July 15, 2016 Author Premium Share Posted July 15, 2016 Up! How can i HIDE NPC (9013) From normal map(KEY M) too? please! if pc.get_sex() == true and npc.get_sex() == false then npc.purge() end Link to comment Share on other sites More sharing options...
CZEboy 29 Posted July 16, 2016 Share Posted July 16, 2016 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 More sharing options...
Premium EnKor 42 Posted July 16, 2016 Author Premium Share Posted July 16, 2016 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now