Yomigaeru Posted May 22, 2012 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 89 Reputation: 5 Joined: 12/25/11 Last Seen: January 3, 2019 Share Posted May 22, 2012 Can anyone do a source code for a new item bonus bHPview or something like that Allows a player to see other players HP bar regardless of party, battleground, and GM Quote Link to comment Share on other sites More sharing options...
clydelion Posted May 23, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted May 23, 2012 (edited) care to try this one? sc_start SC_HPVIEW,600000,0; SC_HPVIEW.patch Edited May 23, 2012 by clydelion Quote Link to comment Share on other sites More sharing options...
Yomigaeru Posted May 23, 2012 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 89 Reputation: 5 Joined: 12/25/11 Last Seen: January 3, 2019 Author Share Posted May 23, 2012 (edited) care to try this one? sc_start SC_HPVIEW,600000,0; SC_HPVIEW.patch Uhm, works fine, thanks. Although after unequipping the item, it takes time for the veiw to disappear Edited May 23, 2012 by Yomigaeru Quote Link to comment Share on other sites More sharing options...
clydelion Posted May 23, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted May 23, 2012 Yeah. That's a normal behavior. Unless you want to refresh the client as soon as you unequip/equip it. Quote Link to comment Share on other sites More sharing options...
Yomigaeru Posted May 23, 2012 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 89 Reputation: 5 Joined: 12/25/11 Last Seen: January 3, 2019 Author Share Posted May 23, 2012 Yeah. That's a normal behavior. Unless you want to refresh the client as soon as you unequip/equip it. Oh, ok Thanks a lot, Quote Link to comment Share on other sites More sharing options...
hakuren Posted May 30, 2012 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 12/02/11 Last Seen: November 6, 2023 Share Posted May 30, 2012 only works on rathena? im using svn 650 and i dont know how to add the - pc_has_permission(sd, PC_PERM_VIEW_HPMETER) + pc_has_permission(sd, PC_PERM_VIEW_HPMETER) || + sd->sc.data[sC_HPVIEW] to my: if( (sd->status.party_id && dstsd->status.party_id == sd->status.party_id) || //Party-mate, or hpdisp setting. (sd->state.bg_id && sd->state.bg_id == dstsd->state.bg_id) || //BattleGround (battle_config.disp_hpmeter && (gmlvl = pc_isGM(sd)) >= battle_config.disp_hpmeter && gmlvl >= pc_isGM(dstsd)) ) clif_hpmeter_single(sd->fd, dstsd->bl.id, dstsd->battle_status.hp, dstsd->battle_status.max_hp); Quote Link to comment Share on other sites More sharing options...
clydelion Posted May 30, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted May 30, 2012 (edited) if( (sd->status.party_id && dstsd->status.party_id == sd->status.party_id) || //Party-mate, or hpdisp setting. (sd->state.bg_id && sd->state.bg_id == dstsd->state.bg_id) || //BattleGround -(battle_config.disp_hpmeter && (gmlvl = pc_isGM(sd)) >= battle_config.disp_hpmeter && gmlvl >= pc_isGM(dstsd)) ) +(battle_config.disp_hpmeter && (gmlvl = pc_isGM(sd)) >= battle_config.disp_hpmeter && gmlvl >= pc_isGM(dstsd)) || + sd->sc.data[sC_HPVIEW] ) try that one Edited May 30, 2012 by clydelion Quote Link to comment Share on other sites More sharing options...
hakuren Posted May 30, 2012 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 12/02/11 Last Seen: November 6, 2023 Share Posted May 30, 2012 it works! but why when i sc_end that sc_hpview it doesn't remove? Quote Link to comment Share on other sites More sharing options...
clydelion Posted May 31, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted May 31, 2012 Yes that is true, but all the players who comes into view after removing it won't have hp bars anymore. If you want to instantly remove the hp bars, you can add @refresh on your unequip script. Quote Link to comment Share on other sites More sharing options...
hakuren Posted May 31, 2012 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 12/02/11 Last Seen: November 6, 2023 Share Posted May 31, 2012 thank you clydelion it perfectly works now using the @refresh when unequiped thank you Quote Link to comment Share on other sites More sharing options...
Yomigaeru Posted June 16, 2012 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 89 Reputation: 5 Joined: 12/25/11 Last Seen: January 3, 2019 Author Share Posted June 16, 2012 hi @clydelion i was wondering if i can use the SC_HPVIEW in conjunction with the Source Snippet found Here: http://rathena.org/board/topic/58216-monster-hp-bar/ so that players with the SC_HPVIEW can also see the monster's HP Bar Quote Link to comment Share on other sites More sharing options...
Question
Yomigaeru
Can anyone do a source code for a new item bonus
bHPview or something like that
Allows a player to see other players HP bar regardless of party, battleground, and GM
Link to comment
Share on other sites
10 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.