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