Ropen 5 Posted February 7, 2021 Share Posted February 7, 2021 Hi guys , How can I hide the mount and pets on the minimap? Link to comment Share on other sites More sharing options...
Zoom 1 Posted February 7, 2021 Share Posted February 7, 2021 Try this: Open PythonMiniMap and search this: Spoiler float fDistanceFromCenter = sqrtf(fDistanceFromCenterX * fDistanceFromCenterX + fDistanceFromCenterY * fDistanceFromCenterY ); if ( fDistanceFromCenter >= m_fMiniMapRadius ) continue; TMarkPosition aMarkPosition; Then, after this add: Spoiler int blockID[] = {101, 102}; for (int i = 0; i < _countof(blockID); i++) { if (pkInstEach->GetRace() != blockID[i]) return; } Just insert your ID in array blockID. 1 1 Link to comment Share on other sites More sharing options...
Ropen 5 Posted February 8, 2021 Author Share Posted February 8, 2021 13 hours ago, Zoom said: Try this: Open PythonMiniMap and search this: Reveal hidden contents float fDistanceFromCenter = sqrtf(fDistanceFromCenterX * fDistanceFromCenterX + fDistanceFromCenterY * fDistanceFromCenterY ); if ( fDistanceFromCenter >= m_fMiniMapRadius ) continue; TMarkPosition aMarkPosition; Then, after this add: Hide contents int blockID[] = {101, 102}; for (int i = 0; i < _countof(blockID); i++) { if (pkInstEach->GetRace() != blockID[i]) return; } Just insert your ID in array blockID. Sorry , but do u mean that any pet or mount that I want to hide I will have to put his Vnum in the blockID[] ? Link to comment Share on other sites More sharing options...
Chookez 71 Posted February 8, 2021 Share Posted February 8, 2021 (edited) Open: PythonMinimap.cpp Search: else if (pkInstEach->IsNPC() && !pkInstEach->IsInvisibility()) Add this: if (pkInstEach->IsPet() || pkInstEach->IsMount()) continue; Like this: It hides them all. Edited February 8, 2021 by Chookez 1 Link to comment Share on other sites More sharing options...
Zoom 1 Posted February 8, 2021 Share Posted February 8, 2021 11 hours ago, Ropen said: Sorry , but do u mean that any pet or mount that I want to hide I will have to put his Vnum in the blockID[] ? Yes. Link to comment Share on other sites More sharing options...
Ropen 5 Posted February 9, 2021 Author Share Posted February 9, 2021 (edited) On 2/8/2021 at 9:20 AM, Chookez said: Open: PythonMinimap.cpp Search: else if (pkInstEach->IsNPC() && !pkInstEach->IsInvisibility()) Add this: if (pkInstEach->IsPet() || pkInstEach->IsMount()) continue; Like this: It hides them all. thnx bro but how can i solve that error ? Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Solution Chookez 71 Posted February 10, 2021 Solution Share Posted February 10, 2021 (edited) I was a little confused yesterday, it seems. PythonMinimap.cpp Search this: else if (pkInstEach->IsNPC() Change to: else if (pkInstEach->IsNPC() && !pkInstEach->IsInvisibility()) And then add this to this function: if (pkInstEach->IsPet() || pkInstEach->IsMount()) continue; Like this: Its done. Now open InstanceBase.cpp Search this function: void CInstanceBase::GetBoundBox(D3DXVECTOR3 * vtMin, D3DXVECTOR3 * vtMax) After this function add this: BOOL CInstanceBase::IsPet() { if (GetRace() >= 34001 && GetRace() <= 34021) return true; return false; } BOOL CInstanceBase::IsMount() { if (GetRace() >= 20101 && GetRace() <= 20109) return true; return false; } Here you can change how long they are hidden, by ID. Now open: InstanceBase.h Search this: void SetDuelMode(DWORD type); Add after: BOOL IsPet(); BOOL IsMount(); Edited February 10, 2021 by Chookez 1 Link to comment Share on other sites More sharing options...
Ropen 5 Posted February 10, 2021 Author Share Posted February 10, 2021 16 hours ago, Chookez said: I was a little confused yesterday, it seems. PythonMinimap.cpp Search this: else if (pkInstEach->IsNPC() Change to: else if (pkInstEach->IsNPC() && !pkInstEach->IsInvisibility()) And then add this to this function: if (pkInstEach->IsPet() || pkInstEach->IsMount()) continue; Like this: Its done. Now open InstanceBase.cpp Search this function: void CInstanceBase::GetBoundBox(D3DXVECTOR3 * vtMin, D3DXVECTOR3 * vtMax) After this function add this: BOOL CInstanceBase::IsPet() { if (GetRace() >= 34001 && GetRace() <= 34021) return true; return false; } BOOL CInstanceBase::IsMount() { if (GetRace() >= 20101 && GetRace() <= 20109) return true; return false; } Here you can change how long they are hidden, by ID. Now open: InstanceBase.h Search this: void SetDuelMode(DWORD type); Add after: BOOL IsPet(); BOOL IsMount(); thnx bro , done . 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