;Regen skills, timed function

Effect = 33
EffectOn = 5

UserID = #PARAM1
Health = #PARAM2

If GetUserHP(UserID) < GetUserMaxHP(UserID)
	SetUserHP(UserID, GetUserHP(UserID)+Health)
EndIf

If Floor(#PARAM3 % EffectOn) = 0
	CreateEffect(32,500,0,#DIR_RIGHT,GetUserMap(UserID),GetUserX(UserID),GetUserY(UserID),0,UserID,0)
	CreateEffect(9,400,0,#DIR_RIGHT,GetUserMap(UserID),GetUserX(UserID),GetUserY(UserID),0,UserID,0)
	CreateEffect(Effect,300,0,#DIR_RIGHT,GetUserMap(UserID),GetUserX(UserID),GetUserY(UserID),0,UserID,0)
EndIf

If #PARAM3 > 0
	Timer(469,3500,#PARAM1,#PARAM2,#PARAM3-1)
EndIf

Continue = 1