;Called whenever a player logs in - Called with a Timer from
;script 5

SetUserSkill(#PARAM1,33,1)

;BS - Blood Drench
If GetUserFlag(#PARAM1, 37) > 0
	SendMessageToUser(#PARAM1,"Skill reset: BS - Blood Drench",#MSG_SERVER)
	SetUserFlag(#PARAM1, 37, 0)
EndIf

;PS - Windform
If GetUserFlag(#PARAM1, 35) > 0
	SendMessageToUser(#PARAM1,"Skill reset: PS - Windform",#MSG_SERVER)
	Timer(581, 100, #PARAM1, 0, 0)
	;360000
EndIf

;SG - Strength of the Guardian
If GetUserSkill(#PARAM1,44) > 1
	SendMessageToUser(#PARAM1,"Skill reset: SG - Strength of the Guardian",#MSG_SERVER)
	Timer(583,100,#PARAM1,0,0)
EndIf

;SG - Guardian's Protection
If GetUserSkill(#PARAM1,45) > 1
	SendMessageToUser(#PARAM1,"Skill reset: SG - Guardian's Protection",#MSG_SERVER)
	Timer(585,100,#PARAM1,0,0)
EndIf

;War Cry
If GetUserSkill(#PARAM1,21) = 2
	SendMessageToUser(#PARAM1,"Skill reset: War Cry",#MSG_SERVER)
	Timer(156,60000,#PARAM1,0,0)
EndIf

;Aura
If GetUserSkill(#PARAM1,25) = 2
	SendMessageToUser(#PARAM1,"Skill reset: Aura",#MSG_SERVER)
	Timer(235,60000,#PARAM1,0,0)
EndIf

;NPC buff resets
NPC_BUFF = GetUserFlag(#PARAM1,34)
If NPC_BUFF <> 0
	;Grave Spectre buff
	If NPC_BUFF = 1
		SetUserStrengthBonus(#PARAM1,GetUserStrengthBonus(#PARAM1)-5)
		SetUserEnduranceBonus(#PARAM1,GetUserEnduranceBonus(#PARAM1)-5)
		SetUserWisdomBonus(#PARAM1,GetUserWisdomBonus(#PARAM1)-5)
		SetUserAgilityBonus(#PARAM1,GetUserAgilityBonus(#PARAM1)-5)
	EndIf
	
	SetUserFlag(#PARAM1,34,0)
EndIf

Continue = 1