Jump to content
  • 0

Question

Posted (edited)

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

4 answers to this question

Recommended Posts

Posted

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:

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