Jump to content
Metin2 Network
Create New...
  • Download unlimited resources when you are a Premium Member, Buy now!

Does not push back monsters - BOSS_BLOCK


xpro

Recommended Posts

  • Administrator

Hi, I'll show you what to do so that you do not repel specific monsters ( from a horse or from a shoe ).

GameLib/ActorInstanceBattle.cpp

Find:

bool IS_HUGE_RACE(unsigned int vnum))
{
...
}

Add after:

bool IS_BLOCK_ANTIKNOCK(unsigned int vnum)
{
	const CPythonNonPlayer::TMobTable * pMobTable = CPythonNonPlayer::Instance().GetTable(vnum);
    int iMobRank = 0;

    if (pMobTable)
      	iMobRank = pMobTable->bRank;

    if (iMobRank == 5)
    	return true;

	return false;
}

Find:

extern bool IS_HUGE_RACE(unsigned int vnum);
if (IS_HUGE_RACE(rkActorDst.GetRace()))
	return false;

Add after:

if (IS_BLOCK_ANTIKNOCK(rkActorDst.GetRace()))
	return false;
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Service

Write what you are looking for and press enter or click the search icon to begin your search