Jump to content
  • 0

Remove HP bar on Emperiums only.


Currently

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

Remove HP bar on Emperiums only.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  161
  • Reputation:   31
  • Joined:  12/06/11
  • Last Seen:  

That's actually source mod.

Anyway change:

Mob.c

#if PACKETVER >= 20120404
if( !(md->status.mode&MDBOSS) ){
	int i;
	for(i = 0; i < DAMAGELOG_SIZE; i++){ // must show hp bar to all char who already hit the mob.
		struct map_session_data *sd = map_charid2sd(md->dmglog[i].id);
		if( sd && check_distance_bl(&md->bl, &sd->bl, AREA_SIZE) ) // check if in range
			clif_monster_hp_bar(md, sd->fd);
	}
}
#endif

to

#if PACKETVER >= 20120404
if( !(md->class_ == MOBID_EMPERIUM) ){
	int i;
	for(i = 0; i < DAMAGELOG_SIZE; i++){ // must show hp bar to all char who already hit the mob.
		struct map_session_data *sd = map_charid2sd(md->dmglog[i].id);
		if( sd && check_distance_bl(&md->bl, &sd->bl, AREA_SIZE) ) // check if in range
			clif_monster_hp_bar(md, sd->fd);
	}
}
#endif

Edited by Jeroen
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   2
  • Joined:  03/30/16
  • Last Seen:  

This is not working.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

if above trick is working....then you should do like this...

if( !(md->status.mode&MDBOSS) && !(md->class_ == MOBID_EMPERIUM) ){

otherwise the boss monster will show an HP bar too..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  161
  • Reputation:   31
  • Joined:  12/06/11
  • Last Seen:  

Emistry

"

Remove HP bar on Emperiums only

"

The way I get it, is that he wants to have the HP bare removed soly on Emperiums

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