miczster Posted May 13, 2014 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 275 Reputation: 7 Joined: 10/08/12 Last Seen: May 21, 2016 Share 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 Link to comment Share on other sites More sharing options...
sandbox Posted May 13, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Share Posted May 13, 2014 while(@x < 5) { percentheal 20,20; sleep2 1000; @x++; } Quote Link to comment Share on other sites More sharing options...
miczster Posted May 13, 2014 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 275 Reputation: 7 Joined: 10/08/12 Last Seen: May 21, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
nanakiwurtz Posted June 4, 2014 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share 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 Link to comment Share on other sites More sharing options...
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 miczsterLink to comment
Share on other sites
3 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.