Jump to content
  • 0
Sign in to follow this  
deviruzy

Monster HP, From red bar to numbers. (Client?)

Question

 Hello, Good day.

 I was trying to use monster.conf in battle folder to change the way that we see monster's hp in the game - From red bar to numbers. However even though I do this:


 

 

 // in monster.conf

 show_mob_info: 1

 

my monsters' hp was all bars not numbers. I kind of got a sense that this could be client matter but I was just giving a shot here. Please teach me if you know. Thank you.

Share this post


Link to post
Share on other sites

12 answers to this question

Recommended Posts

  • 0

mob.c

remove those codes:

 

#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 ) {				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);			}		}	}#endif
#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 ) {				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);			}		}	}#endif

 

and recompile

Share this post


Link to post
Share on other sites
  • 0
in my option , I would add an option to show mob's hp barbattle.c{ "show_mob_info",     &battle_config.show_mob_info,   0,    0,   1|2|4|8, }  

conf/battle/monster.conf

 

// Display some mob info next to their name? (add as needed)
// (does not works on guardian or Emperium)
// 1: Display mob HP (Hp/MaxHp format)
// 2: Display mob HP (Percent of full life format)
// 4: Display mob's level
// 8:Display mob's HP bar
show_mob_info: 1

 

 

in mob.c

 

if(battle_config.show_mob_info&8) {

 

  show pink hp bar.....

}

Edited by Angelmelody

Share this post


Link to post
Share on other sites
  • 0

 

in my option , I would add an option to show mob's hp barbattle.c{ "show_mob_info",     &battle_config.show_mob_info,   0,    0,   1|2|4|8, }  

conf/battle/monster.conf

 

// Display some mob info next to their name? (add as needed)
// (does not works on guardian or Emperium)
// 1: Display mob HP (Hp/MaxHp format)
// 2: Display mob HP (Percent of full life format)
// 4: Display mob's level
// 8:Display mob's HP bar
show_mob_info: 1

 

 

in mob.c

 

if(battle_config.show_mob_info&8) {

 

  show pink hp bar.....

}

 

great, what about doing a pull request with it? I will get accepted for sure :)

Share this post


Link to post
Share on other sites
  • 0

evilpucker, Thank you. This is what I did in mob.c.

 

 

//#if PACKETVER >= 20120404
// if( !(md->status.mode&MD_BOSS) ){
// int i;
// for(i = 0; i < DAMAGELOG_SIZE; i++){ // must show .....
// if( md->dmglog.id ) {
//   struct map_session_data *sd = map->charid2sd(md->dmglog.id);
//   if( sd && check_distance_bl(&md->bl, &sd->bl, AREA_SIZE) ) // check if in range
// clif->monster_hp_bar(md,sd);
//   }
// }
//   }
//#endif

 

 
and then recompiled it. It surely didn't show any bars from monsters. However I'm afraid monsters' hp wasn't showing in numbers even though monster.conf was set to 'show_mob_info: 1'. am I missing something?

Share this post


Link to post
Share on other sites
  • 0

 

evilpucker, Thank you. This is what I did in mob.c.

 

 

//#if PACKETVER >= 20120404

// if( !(md->status.mode&MD_BOSS) ){
// int i;
// for(i = 0; i < DAMAGELOG_SIZE; i++){ // must show .....
// if( md->dmglog.id ) {
//   struct map_session_data *sd = map->charid2sd(md->dmglog.id);
//   if( sd && check_distance_bl(&md->bl, &sd->bl, AREA_SIZE) ) // check if in range
// clif->monster_hp_bar(md,sd);
//   }
// }
//   }
//#endif

 

 
and then recompiled it. It surely didn't show any bars from monsters. However I'm afraid monsters' hp wasn't showing in numbers even though monster.conf was set to 'show_mob_info: 1'. am I missing something?

 

does it work with another number?

Share this post


Link to post
Share on other sites
  • 0

Thank you, Angelmelody. I was able to do below easily.

 

 

battle.c
{ "show_mob_info",     &battle_config.show_mob_info,   0,    0,   1|2|4|8, }
 
conf/battle/monster.conf
 
 
 
// Display some mob info next to their name? (add as needed)
 
// (does not works on guardian or Emperium)
 
// 1: Display mob HP (Hp/MaxHp format)
 
// 2: Display mob HP (Percent of full life format)
 
// 4: Display mob's level
 
// 8:Display mob's HP bar
 
show_mob_info: 1

 

 
 

but there are 3 place that starts with 'if (battle_config.show_mob_info&'all of them were actually this:

 

 

 

if (battle_config.show_mob_info&3)

clif->charnameack (0, &md->bl);

 

 

all 3 of them.

 

 Just to make sure, Do you want me to change all 3 if (battle_config.show_mob_info&3) to &8) and then recompile?

 

if (battle_config.show_mob_info&8) 

Edited by deviruzy

Share this post


Link to post
Share on other sites
  • 0

Angelmelody, I tried what I think you taught me.

 

 

I changed all of 'if (battle_config.show_mob_info&3)' to

if (battle_config.show_mob_info&8) 

 

but it did not work. :(

Edited by deviruzy

Share this post


Link to post
Share on other sites
  • 0

then you may want to report it at bugtracker so devs can take a look, since it should work :)

Share this post


Link to post
Share on other sites
  • 0

If all of them don't work, then maybe (just maybe), you're using showname format #1 in client? It looks like this on monster:

2md4a2p.jpg

 

On the other hand, that conf only works with showname style 2, it should look like this:

289buba.jpg

 

So if you're having bold font on character and monster names type /showname, and it should change to thin font where additional info is shown.

Share this post


Link to post
Share on other sites
  • 0

Thank you Garr. It seems after all it was a client matter. Thank you Garr, It worked instantly.
Still, I also thank evilpuncker and Angelmelody for their kindness.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.