Yum Posted September 15, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 27 Reputation: 3 Joined: 02/17/12 Last Seen: December 15, 2014 Share 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 Link to comment Share on other sites More sharing options...
nanakiwurtz Posted September 15, 2012 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted September 15, 2012 It's hardcoded in the client Quote Link to comment Share on other sites More sharing options...
Yum Posted September 15, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 27 Reputation: 3 Joined: 02/17/12 Last Seen: December 15, 2014 Author Share Posted September 15, 2012 Strange, a friend assured me have done it in src. Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted September 15, 2012 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted September 15, 2012 Server only provide the value for HP/SP bar. Quote Link to comment Share on other sites More sharing options...
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?
Link to comment
Share on other sites
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.