;'PS - Windform' - timed skill script

UserID = #PARAM1

FLAG = GetUserFlag(UserID, 35)
If FLAG = 3
	SetUserFlag(UserID, 35, 0)
	GoTo END
ElseIf FLAG = 2
	SetUserFlag(UserID, 35, 3)
	;180000
	Timer(581,5000,UserID,0,0)
ElseIf FLAG = 1
	SetUserFlag(UserID, 35, 0)
Else
	GoTo END
EndIf

;Set sprite to normal
Sprite = GetClassSprite(GetUserClass(UserID))
Guild = GetUserGuild(UserID)
If Guild > 0
	GuildSprite = GetGuildSprite(Guild) 
	If GuildSprite > 0
		Sprite = GuildSprite
	EndIf 
EndIf

SetUserSprite(UserID,Sprite)
SetUserDisplayName(UserID,GetUserName(UserID))

;Set bonus stats to normal
SetUserAgilityBonus(UserID, GetUserAgilityBonus(UserID)-5)
SetUserWisdomBonus(UserID, GetUserWisdomBonus(UserID)-5)

Label END

Continue = 1