miczster Posted May 13, 2014 Posted May 13, 2014 (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 May 13, 2014 by miczster Quote
sandbox Posted May 13, 2014 Posted May 13, 2014 while(@x < 5) { percentheal 20,20; sleep2 1000; @x++; } Quote
miczster Posted May 13, 2014 Author Posted May 13, 2014 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??? Quote
nanakiwurtz Posted June 4, 2014 Posted June 4, 2014 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 1 Quote
Question
miczster
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 miczster3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.