Scriptname _00E_NQ09_Functions extends Quest  

;=====================================================================================
;              							 FUNCTIONS                    					 
;=====================================================================================

Function GiveNote()

	If PlayerREF.GetItemCount(_00E_NQ09_OldNote) == 0
		PlayerREF.AddItem(_00E_NQ09_OldNote, 1)
	EndIf
		
EndFunction

Function EnableSecondTreasure()

	NQ09Treasure.Enable()

EndFunction

Function StartCasketScene()
	_00E_NQ09_Casket01Ref.Enable()
	NQ09_SC0_SillasWalksToCasket.ForceStart()
	
EndFunction

Function GiveGoldToSillas(int iAmount, int iRewardEXP = 300)

	PlayerREF.RemoveItem(Gold001, iAmount)
	Levelsystem.GiveEP(iRewardEXP)
	
EndFunction


;=====================================================================================
;              							 PROPERTIES                    					 
;=====================================================================================

_00E_QuestFunctions Property Levelsystem Auto

MiscObject Property Gold001 Auto

ObjectReference Property NQ09Treasure Auto
ObjectReference Property _00E_NQ09_Casket01Ref Auto

Actor Property PlayerREF Auto

Scene Property NQ09_SC0_SillasWalksToCasket Auto

Book Property _00E_NQ09_OldNote auto