Jump to content
  • 0

R> MVP HP bar source code


Question

11 answers to this question

Recommended Posts

Posted

Have you checked your 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

Posted

try this...

trunk/src/map/mob.c

#if PACKETVER >= 20120404
     if( src->type == BL_PC && !(md->status.mode&MD_BOSS) )
		    clif_monster_hp_bar(md, ((TBL_PC*)src)->fd);
#endif

change this

if( src->type == BL_PC && !(md->status.mode&MD_BOSS) )

to this

if( src->type == BL_PC )

  • Upvote 1
Posted

thanks for this. I've tracked where I should edit the line.

try this...

trunk/src/map/mob.c

#if PACKETVER >= 20120404
  if( src->type == BL_PC && !(md->status.mode&MD_BOSS) )
			clif_monster_hp_bar(md, ((TBL_PC*)src)->fd);
#endif

change this

if( src->type == BL_PC && !(md->status.mode&MD_BOSS) )

to this

if( src->type == BL_PC )

great help!

Thanks all!

Posted

My mob.c doesnt' have line like that. Instead:

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

Posted

My mob.c doesnt' have line like that. Instead:

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

are you using the latest revision?

Posted

try this...

#if PACKETVER >= 20120404
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);
}

just remove the boss monster checking only...

Posted

My mob.c doesnt' have line like that. Instead:

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

change to this..

My mob.c doesnt' have line like that. Instead:

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

  • Upvote 1

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