Jump to content
  • 0

MvP monster not miss?


Energy

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   3
  • Joined:  12/26/11
  • Last Seen:  

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

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  57
  • Reputation:   16
  • Joined:  09/26/16
  • Last Seen:  

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

×
×
  • Create New...