;Timed health script for basicly any regenerative skill

UserID=#PARAM1
Health=#PARAM2
Message=#PARAM3

If Message<>"0"
	SendMessageToUser(UserID,Message,#MSG_EMOTE)
	SendMessageToUser(UserID,"Health: "+Health,#MSG_EMOTE)
EndIf

NewHealth = GetUserHP(UserID) + Health

If GetUserHP(UserID) < GetUserMaxHP(UserID)
	If NewHealth < GetUserMaxHP(UserID)
		SetUserHP(UserID,NewHealth)
	ElseIf NewHealth > GetUserMaxHP(UserID)
		SetUserHP(UserID,GetUserMaxHP(UserID))
	EndIf
EndIf

Continue = 1