;'Aura Scroll' item script

CanUse = 1

If GetUserSkill(#USERID,25) > 1
	CanUse = 0
ElseIf GetUserSkill(#USERID,25) < 0
	CanUse = 0
EndIf


If CanUse = 1
	If GetUserSkill(#USERID,25) = 1
		SetUserSkill(#USERID, 25, 2)
	EndIf
	If GetUserSkill(#USERID,25) = 0
		SetUserSkill(#USERID, 25, -1)
	EndIf
	
	TakeItem(#USERID, 143)
	
	SetUserWisdomBonus(#USERID, GetUserWisdomBonus(#USERID) + 5)
	SetUserAgilityBonus(#USERID, GetUserAgilityBonus(#USERID) + 5)
	SetUserMana(#USERID,GetUserMana(#USERID)+50)
	
	SendMessageToUser(#USERID,"A aura of spiritual wisdom surrounds you...",#MSG_EMOTE)

	Timer(235, 60000, #USERID, GetUserMana(#USERID)-50, 0)
Else
	SendMessageToUser(#USERID,"You can't use this scroll at this time.",#MSG_CRITICAL)
EndIf

Continue = 1