;'Viper' timed death script

UserID = #PARAM1
Damage = #PARAM2
Loops = #PARAM3

DamageAmount = Damage + Random(0,2)

If GetUserHP(UserID) < DamageAmount+1
	Loops = 0
EndIf

DamageUser(UserID,DamageAmount)

If Loops > 0
	Timer(393,Random(800,1200), UserID, Damage, Loops-1)
EndIf

Continue = 1