Jump to content
  • 0

item script that will be triggered when HP is critical


zHep

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   1
  • Joined:  04/11/14
  • Last Seen:  

hello guys!

i am hoping that someone can help me on this.

i'm trying to create a custom item that will give a bonus effect if character's HP is below 20%( or his HP bar turns red ). Then if he regains HP and made his HP above the required HP rate, the bonus effect will disappear too.

ex. A custom dagger that when HP is below 20%, it will give you ATK+100.

i tried experimenting on item bonus script, but im afraid that it would make my server crash.

 thanks in advance!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


..........................,{ if( Hp <= ( MaxHp / 5 ) ) { BONUS } },{},{}

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