Jump to content
  • 0

Monster Hp Bar always showing


Question

7 answers to this question

Recommended Posts

  • 1
Posted
//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
show_mob_info: 0 // Change This to 2

 

  • Like 1
  • 0
Posted

Have the Client version 2017-01-25.

Well,... I can see the Monster Hp Bar, but only if a monster was attacked.

I want to changed it to always. 

 

Thanks Nitrous.

I'll will test it and report the result.   :P

 

Works perfect. Thanks sir ~

  • 0
Posted (edited)
Quote

#if PACKETVER >= 20120404
    if (battle_config.monster_hp_bars_info && !map[md->bl.m].flag.hidemobhpbar) {
        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.id);
            if( sd && check_distance_bl(&md->bl, &sd->bl, AREA_SIZE) ) // check if in range
                clif_monster_hp_bar(md, sd->fd);
        }
    }
#endif

 


        for(i = 1; i < DAMAGELOG_SIZE; i++){ // change this line make 0 to 1 under src/map/mob.cpp then recompile
      
      

#if PACKETVER >= 20120404
    if (battle_config.monster_hp_bars_info && !map[md->bl.m].flag.hidemobhpbar) {
        int i;
        for(i = 1; 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 kayko11

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