Jump to content
  • 0

Monster HP Bar


kohakusan

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  09/22/12
  • Last Seen:  

Is it possible to make all monsters HP bar show up without the need to hit it first? If yes, how to do it for all mobs and for bosses only? Thanks!

Client 2012-04-10

I'm checking this out, I enable it to show for bosses but it still only works if we hit it first, I think it has something to do with the damagelog_size but I don't know much about programming so I have no idea what to do...

mob.c

#if PACKETVER >= 20120404
if( src->type == BL_PC ){
	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 kohakusan
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


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


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  09/22/12
  • Last Seen:  

Isn't it possible with the official bar?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Not sure if it works if you remove the damage mob check.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

try this @ clif.c

#if PACKETVER >= 20120404
		if( !(md->status.mode&MD_BOSS) ){
			//int i;
			//for(i = 0; i < DAMAGELOG_SIZE; i++)// must show hp bar to all char who already hit the mob.
				//if( md->dmglog[i].id == sd->status.char_id )
					clif_monster_hp_bar(md, sd->fd);
		}
#endif

:meow:

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