Jump to content

[C++]Show Metins On Minimap (Like Moobs)


steffan95

Recommended Posts

find in file : UserInterface > InstanceBase.h

 

NAMECOLOR_WAYPOINT,

 

add after:

 

NAMECOLOR_METIN,

 

search in file : PythonCharacterManagerModule.cpp

 

 

PyModule_AddIntConstant(poModule, "NAMECOLOR_MOB", CInstanceBase::NAMECOLOR_NORMAL_MOB);

 

add after

 

PyModule_AddIntConstant(poModule, "NAMECOLOR_METIN", CInstanceBase::NAMECOLOR_METIN);

 

search in file InstanceBaseEffect.cpp

 

 

else if (IsPoly())
   {
       return NAMECOLOR_MOB;
   }

 

add after

 

else if (IsStone())
   {
       return NAMECOLOR_METIN;
   }

 

search in file : PythonMiniMap.cpp

 

 

m_NPCPositionVector.clear();

 

add after

 

m_MetinPositionVector.clear();

 

search:

 

else if (pkInstEach->IsNPC())
       {
           aMarkPosition.m_fX = ( m_fWidth - (float)m_WhiteMark.GetWidth() ) / 2.0f + fDistanceFromCenterX + m_fScreenX;
           aMarkPosition.m_fY = ( m_fHeight - (float)m_WhiteMark.GetHeight() ) / 2.0f + fDistanceFromCenterY + m_fScreenY;

           m_NPCPositionVector.push_back(aMarkPosition);
       }

 

add after

 

else if (pkInstEach->IsStone())
       {
           aMarkPosition.m_fX = ( m_fWidth - (float)m_WhiteMark.GetWidth() ) / 2.0f + fDistanceFromCenterX + m_fScreenX;
           aMarkPosition.m_fY = ( m_fHeight - (float)m_WhiteMark.GetHeight() ) / 2.0f + fDistanceFromCenterY + m_fScreenY;

           m_MetinPositionVector.push_back(aMarkPosition);
       }

 

search:

 

// NPC
   STATEMANAGER.SetRenderState(D3DRS_TEXTUREFACTOR, CInstanceBase::GetIndexedNameColor(CInstanceBase::NAMECOLOR_NPC));
   aIterator = m_NPCPositionVector.begin();
   while (aIterator != m_NPCPositionVector.end())
   {
       TMarkPosition & rPosition = *aIterator;
       m_WhiteMark.SetPosition(rPosition.m_fX, rPosition.m_fY);
       m_WhiteMark.Render();
       ++aIterator;
   }

 

add after

 

// Metin
   STATEMANAGER.SetRenderState(D3DRS_TEXTUREFACTOR, CInstanceBase::GetIndexedNameColor(CInstanceBase::NAMECOLOR_METIN));
   aIterator = m_MetinPositionVector.begin();
   while (aIterator != m_MetinPositionVector.end())
   {
       TMarkPosition & rPosition = *aIterator;
       m_WhiteMark.SetPosition(rPosition.m_fX, rPosition.m_fY);
       m_WhiteMark.Render();
       ++aIterator;
   }

 

search in file : PythonMiniMap.h

 

 

TInstanceMarkPositionVector m_NPCPositionVector;

 

add after

 

TInstanceMarkPositionVector m_MetinPositionVector;

 

recompile binary

 

search in file root>colorinfo.py

 

 

CHR_NAME_RGB_WARP = (136, 218, 241)

 

add after

 

CHR_NAME_RGB_METIN = (240, 255, 255)

 

open and search in file: root>introloading.py

 

 

chrmgr.NAMECOLOR_WAYPOINT : colorInfo.CHR_NAME_RGB_WAYPOINT,

 

add after

 

chrmgr.NAMECOLOR_METIN : colorInfo.CHR_NAME_RGB_METIN,

 

 

pack root and test it. good luck

Source: Just4metin

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

  • 3 months later...
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...