Jump to content
  • 0
Yomigaeru

Request New Item Bonus

Question

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

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 by Yomigaeru
Link to comment
Share on other sites

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, :D

Link to comment
Share on other sites

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);

Link to comment
Share on other sites

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 by clydelion
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.