Jump to content
  • 0

Remove HP bar on Emperiums only.


Question

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

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
Posted

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

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