Yum Posted September 15, 2012 Posted September 15, 2012 How do I change the color of the bar hp? You know that greenish color, I wanted a different color there ... void faction_show_hp(struct map_session_data *sd) { unsigned char buf[34]; const int cmd = 0x2e0; nullpo_retv(sd); WBUFW(buf,0) = cmd; WBUFL(buf,2) = sd->status.account_id; memcpy(WBUFP(buf,6), sd->status.name, NAME_LENGTH); if( sd->battle_status.max_hp > INT16_MAX ) { WBUFW(buf,30) = sd->battle_status.hp/(sd->battle_status.max_hp/100); WBUFW(buf,32) = 100; } else { WBUFW(buf,30) = sd->battle_status.hp; WBUFW(buf,32) = sd->battle_status.max_hp; } clif_send(buf, packet_len(cmd), &sd->bl, THIRDY_FACTION); } Where changes? Quote
Yum Posted September 15, 2012 Author Posted September 15, 2012 Strange, a friend assured me have done it in src. Quote
nanakiwurtz Posted September 15, 2012 Posted September 15, 2012 Server only provide the value for HP/SP bar. Quote
Question
Yum
How do I change the color of the bar hp? You know that greenish color, I wanted a different color there ...
Where changes?
3 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.