2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_CQJ02_GetJesparSC extends ObjectReference
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; EVENTS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
|
2024-01-10 14:08:24 +00:00
|
|
|
If akActionRef == PlayerREF && !bDone && CQJ02.GetCurrentStageID() == 10
|
2021-10-05 22:15:58 +00:00
|
|
|
If (GameHour.GetValue() < 18) && (GameHour.GetValue() > 5)
|
|
|
|
_00E_CQJ02_sComeBackLater.Show()
|
2024-01-10 14:08:24 +00:00
|
|
|
ElseIf (MQ07a.IsRunning() && (MQ07a.GetCurrentStageID() >= 30)) && !(MQ07a.IsCompleted())
|
2021-10-05 22:15:58 +00:00
|
|
|
_00E_CQJ02_sPlayerHasToFinishMQ07a.Show()
|
|
|
|
Else
|
|
|
|
CQJ02.EnableJesparAndStartSC02()
|
|
|
|
bDone = True
|
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
|
|
|
|
|
|
|
if akActionRef == PlayerREF && bDone && !CQJ02.IsCompleted()
|
|
|
|
bDone = False
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; PROPERTIES
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
bool bDone
|
|
|
|
|
|
|
|
Quest Property MQ07a Auto
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
GlobalVariable Property GameHour Auto
|
|
|
|
_00E_CQJ02_Functions Property CQJ02 Auto
|
|
|
|
Message Property _00E_CQJ02_sComeBackLater Auto
|
|
|
|
Message Property _00E_CQJ02_sPlayerHasToFinishMQ07a Auto
|