Yomigaeru Posted May 22, 2012 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
clydelion Posted May 23, 2012 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
Yomigaeru Posted May 23, 2012 Author 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
clydelion Posted May 23, 2012 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
Yomigaeru Posted May 23, 2012 Author 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
hakuren Posted May 30, 2012 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
clydelion Posted May 30, 2012 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
hakuren Posted May 30, 2012 Posted May 30, 2012 it works! but why when i sc_end that sc_hpview it doesn't remove? Quote
clydelion Posted May 31, 2012 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
hakuren Posted May 31, 2012 Posted May 31, 2012 thank you clydelion it perfectly works now using the @refresh when unequiped thank you Quote
Yomigaeru Posted June 16, 2012 Author 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
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
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.