Jump to content
  • 0

Request New Item Bonus


Yomigaeru

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   5
  • Joined:  12/25/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

care to try this one?

sc_start SC_HPVIEW,600000,0;

SC_HPVIEW.patch

Edited by clydelion
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   5
  • Joined:  12/25/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

Yeah. That's a normal behavior. Unless you want to refresh the client as soon as you unequip/equip it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   5
  • Joined:  12/25/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

it works! but

why when i sc_end

that sc_hpview it doesn't remove?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

thank you clydelion it perfectly works now using the @refresh when unequiped ^_^ thank you

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   5
  • Joined:  12/25/11
  • Last Seen:  

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

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...