Jump to content
  • 0

R>Ygg effect modification


miczster

Question


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   7
  • Joined:  10/08/12
  • Last Seen:  

Hello....I just wanna ask if it's possible to change yggberry effect from 

 

Fully restores HP and SP.  " { percentheal 100,100; },{},{} "

to

Restores 20%HP and 20%SP per second for 5 secs....

 

THx...

Edited by miczster
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

while(@x < 5) { percentheal 20,20; sleep2 1000; @x++; }
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   7
  • Joined:  10/08/12
  • Last Seen:  

while(@x < 5) { percentheal 20,20; sleep2 1000; @x++; }

THX sandbox...ill try it later...may I ask if its possible to cancel the healing if the player gets damage during regen???

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

As far as I know, there nothing that could catch that kind of event.

set @hp,hp; set @x,0; while(@x < 5) { if (@hp>hp) break; percentheal 20,20; sleep2 1000; @x++; set @hp,hp; }
This code is untested since I'm online from my phone.

If the @x var doesn't cleared, the item's effect useable only once for every player login.

If the @x var placed after the while loop, the 5 seconds timer won't get reset when the player use the item repeatedly.

CMIIW

/ok

  • Upvote 1
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...