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

deviruzy

New member
Messages
67
Points
0
 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.

 
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.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
Code:
#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

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

}

 
Last edited by a moderator:
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
default_smile.png


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

 
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) 
 
Last edited by a moderator:
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.
default_sad.png


 
Last edited by a moderator:
then you may want to report it at bugtracker so devs can take a look, since it should work
default_smile.png


 
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.

 
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.

 
Back
Top