Jump to content
  • 0

MvP monster not miss?


Question

Posted
Dear community, please tell me how you can implement a simple task?

If the monster MvP - he can not miss. Regardless Flee character.

I have edited the original formula of HIT, adding a check for a monster and adding to it 500 base hits. But I do not get the desired effect.

How i can set a rule: if monster MvP flag - he can not to miss on a character never, only hits. 

Please tell me where in the search for..

 

P.S: sorry if wrong section. But I think that this is realized with the help of the source code

1 answer to this question

Recommended Posts

  • 0
Posted

maybe you can try editing mob.c
around this part:

/*==========================================
 * processes one mobdb entry
 *------------------------------------------*/
static bool mob_parse_dbrow(char** str)
{

after around:

if (status_has_mode(status,MD_STATUS_IMMUNE|MD_KNOCKBACK_IMMUNE|MD_DETECTOR))
		status->class_ = CLASS_BOSS;
	else // Store as Normal and overwrite in mob_race2_db for special Class
		status->class_ = CLASS_NORMAL;

add this line:

if( status->class_ == CLASS_BOSS)
    status->hit = 9999; //not sure, maybe 2000?
  • Upvote 1

Join the conversation

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

Guest
Answer this question...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...