Is it possible to make all monsters HP bar show up without the need to hit it first? If yes, how to do it for all mobs and for bosses only? Thanks!
Client 2012-04-10
I'm checking this out, I enable it to show for bosses but it still only works if we hit it first, I think it has something to do with the damagelog_size but I don't know much about programming so I have no idea what to do...
mob.c
#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);
}
}
#endif
Question
kohakusan
Is it possible to make all monsters HP bar show up without the need to hit it first? If yes, how to do it for all mobs and for bosses only? Thanks!
Client 2012-04-10
I'm checking this out, I enable it to show for bosses but it still only works if we hit it first, I think it has something to do with the damagelog_size but I don't know much about programming so I have no idea what to do...
mob.c
Edited by kohakusanLink to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.