Jump to content
  • 0

R>Ygg effect modification


Question

Posted (edited)

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

3 answers to this question

Recommended Posts

Posted
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???

Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...