Jump to content

Recommended Posts

Anyone know How can i HIDE NPC (9013) for example,from normal map(KEY M)?Thank you. :)

That function not working..

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

    TAtlasMarkInfo aAtlasMarkInfo;

 

  • Love 1
Link to comment
Share on other sites

  • Active+ Member

For minimap:

		else if (pkInstEach->IsNPC())
		{
			if (pkInstEach->GetRace() == 20135) // if (pkInstEach->IsStructure())
				continue;
			
			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);
		}

For atlas:

// regen.cpp
				else if (p->m_table.bType == CHAR_TYPE_NPC || p->m_table.bType == CHAR_TYPE_WARP || p->m_table.bType == CHAR_TYPE_GOTO)
				{
					if(p->m_table.dwVnum == 20135)
						continue;
					
					SECTREE_MANAGER::instance().InsertNPCPosition(lMapIndex,
							p->m_table.bType,
							p->m_table.szLocaleName,
							(regen->sx+regen->ex) / 2 - base_x,
							(regen->sy+regen->ey) / 2 - base_y);
				}

 

  • Love 1
Link to comment
Share on other sites

Acum 47 minute, Abel(Tiger) a spus:

		else if (pkInstEach->IsNPC())
		{
			if (pkInstEach->GetRace() == 20135) // if (pkInstEach->IsStructure())
				continue;
			
			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);
		}

 

I use that function for mini map and it;s working 

else if (pkInstEach->IsNPC() && pkInstEach->GetRace() != 30009 && pkInstEach->GetRace() != 30043 && pkInstEach->GetRace() != 30045)

But you'r code not working,i searching for big map,not for mini map,thx anyway :)

Link to comment
Share on other sites

Acum 7 ore, Abel(Tiger) a spus:

For minimap:


		else if (pkInstEach->IsNPC())
		{
			if (pkInstEach->GetRace() == 20135) // if (pkInstEach->IsStructure())
				continue;
			
			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);
		}

For atlas:


// regen.cpp
				else if (p->m_table.bType == CHAR_TYPE_NPC || p->m_table.bType == CHAR_TYPE_WARP || p->m_table.bType == CHAR_TYPE_GOTO)
				{
					if(p->m_table.dwVnum == 20135)
						continue;
					
					SECTREE_MANAGER::instance().InsertNPCPosition(lMapIndex,
							p->m_table.bType,
							p->m_table.szLocaleName,
							(regen->sx+regen->ex) / 2 - base_x,
							(regen->sy+regen->ey) / 2 - base_y);
				}

 

Thank you,i will try!

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.