4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

41 lines
1.3 KiB

Scriptname _00E_CQJ02_GetJesparSC extends ObjectReference
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnTriggerEnter(ObjectReference akActionRef)
If akActionRef == PlayerREF && !bDone && CQJ02.GetStage() == 10
If (GameHour.GetValue() < 18) && (GameHour.GetValue() > 5)
_00E_CQJ02_sComeBackLater.Show()
ElseIf (MQ07a.IsRunning() && (MQ07a.GetStage() >= 30)) && !(MQ07a.IsCompleted())
_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