anjasoleil0
New member
- Messages
- 77
- Points
- 0
So, as the title suggests, is it possible to enable HP bars but only for mvps?
Thanks in advance for the reply.
Thanks in advance for the reply.
Where will i put 'md->state.boss'? I don't wanna mess things up. ThanksTry navigating to the function clif_monster_hp_bar in clif.c and add a condition for the mob to be a mvp. Something like md->state.boss
void clif_monster_hp_bar( struct mob_data* md, struct map_session_data *sd ) {
struct packet_monster_hp p;
nullpo_retv(md);
nullpo_retv(sd);
if(md->state.boss){
p.PacketType = monsterhpType;
p.GID = md->bl.id;
p.HP = md->status.hp;
p.MaxHP = md->status.max_hp;
clif->send(&p, sizeof(p), &sd->bl, SELF);
}
}
PD: Don't forget to recompile.
Try navigating to the function clif_monster_hp_bar in clif.c and add a condition for the mob to be a mvp. Something like md->state.boss
void clif_monster_hp_bar( struct mob_data* md, struct map_session_data *sd ) {
struct packet_monster_hp p;
nullpo_retv(md);
nullpo_retv(sd);
if(md->state.boss){
p.PacketType = monsterhpType;
p.GID = md->bl.id;
p.HP = md->status.hp;
p.MaxHP = md->status.max_hp;
clif->send(&p, sizeof(p), &sd->bl, SELF);
}
}
PD: Don't forget to recompile.
I tried it, it still shows normal mob's HPvoid clif_monster_hp_bar( struct mob_data* md, struct map_session_data *sd ) {
if( md->state.boss ){
struct packet_monster_hp p;
nullpo_retv(md);
nullpo_retv(sd);
p.PacketType = monsterhpType;
p.GID = md->bl.id;
p.HP = md->status.hp;
p.MaxHP = md->status.max_hp;
clif->send(&p, sizeof(p), &sd->bl,
We use essential cookies to make this site work, and optional cookies to enhance your experience.