Jump to content

How to disable mob's aggressivity on a certain map?


Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Contributor

Try this:

char_state.cpp
void CHARACTER::SetNotAggressive()
{
	REMOVE_BIT(m_pointsInstant.dwAIFlag, AIFLAG_AGGRESSIVE);
}

char.h:
void				SetNotAggressive();

Then in char_manager: CHARACTER_MANAGER::SpawnMob look for ch->SetProto(pkMob); and add

if (lMapIndex == 155) // or check for it's dungeon mapindex...
	ch->SetNotAggressive();

Untested but should work..

Edited by TMP4
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.