Scriptname _00E_CQJ04_Functions extends Quest Conditional


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

Function DisableJespar()

	_00E_MC_JesparREF.Disable()

EndFunction

Function SetUpSC01()

	_00E_MC_JesparREF.Enable()
	Self.SetObjectiveCompleted(10)
	Self.SetObjectiveCompleted(15)
	Utility.Wait(0.25)
	CQJ04_SC01_Leandra001.MoveTo(CQJ01_SC01_LeandraMarkerREF)
	CQJ04_SC01_Morey001.MoveTo(CQJ04_SC01_MoreyMarker001)
	_00E_MC_JesparREF.MoveTo(CQJ04_SC01_MoreyMarker001)
	CQj04_SC01_AshaREF001.MoveTo(CQJ04_SC01_AshaMarker001)
	CQJ04_SC01_Leandra001.SetOutfit(EmptyOutfit)
	_00E_MC_JesparREF.SetOutfit(_00E_CQJ04_JesparOutfit)

	CQJ04_SC01_JesparInRedLantern.ForceStart()

EndFunction

Function CompleteObjective()

	Self.SetObjectiveCompleted(20)

EndFunction

Function AddMusic()

	_00E_Music_Special_Character_Jespar_Long.Add()

EndFunction

Function TeleportJespar()

	CQJ04_SC01_Leandra001.SetOutfit(_00E_UCProstituteOutfit)

	If GetCurrentStageID() == 30
		_00E_PlayerFunctions.GetTeleportControl().TeleportNPC(_00E_MC_JesparREF, _00E_NPCDumpMarker)
	Else
		; Do Nothing
	EndIf
	
	_00E_EPHandler.GiveEP(__iRewardEXP)
	
	Self.SetCurrentStageID(35)
	
EndFunction

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

bool Property bCheckedFatLeor Auto Conditional Hidden
bool Property bCheckedFalseDog Auto Conditional Hidden

int Property __iRewardEXP = 500 Auto

Actor Property _00E_MC_JesparREF Auto
Actor Property CQJ04_SC01_Leandra001 Auto

Outfit Property _00E_CQJ04_JesparOutfit Auto
Outfit Property EmptyOutfit Auto
Outfit Property _00E_UCProstituteOutfit Auto

ObjectReference Property CQj04_SC01_AshaREF001 Auto
ObjectReference Property CQJ04_SC01_Morey001 Auto

ObjectReference Property CQJ01_SC01_LeandraMarkerREF Auto
ObjectReference Property CQJ04_SC01_MoreyMarker001 Auto
ObjectReference Property CQJ04_SC01_AshaMarker001 Auto
ObjectReference Property _00E_NPCDumpMarker Auto

MusicType Property _00E_Music_Special_Character_Jespar_Long Auto

Scene Property CQJ04_SC01_JesparInRedLantern Auto