2021-10-05 22:15:58 +00:00
|
|
|
ScriptName _00E_NQ_G_07_LetterPickUp extends ObjectReference
|
|
|
|
|
|
|
|
Quest Property NQ_G_07Dijaam Auto
|
|
|
|
Bool bDone
|
|
|
|
|
|
|
|
Bool bReadingDone
|
|
|
|
|
|
|
|
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
|
|
|
|
|
2024-01-10 14:08:24 +00:00
|
|
|
If !bDone && akNewContainer == Game.GetPlayer() && NQ_G_07Dijaam.GetCurrentStageID() == 60
|
2021-10-05 22:15:58 +00:00
|
|
|
bDone = true
|
|
|
|
(NQ_G_07Dijaam as _00E_NQ_G_07_Functions).CheckForBagLooted()
|
|
|
|
NQ_G_07Dijaam.SetObjectiveDisplayed(64)
|
|
|
|
(NQ_G_07Dijaam as _00E_NQ_G_07_Functions).CheckIfNoteIsRead() ; need to make a check again, because the objective might not have been displayed yet!
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnRead()
|
|
|
|
|
|
|
|
If bReadingDone == false
|
|
|
|
bReadingDone = true
|
|
|
|
NQ_G_07Dijaam.SetObjectiveCompleted(64)
|
|
|
|
(NQ_G_07Dijaam as _00E_NQ_G_07_Functions).CheckForBagLooted()
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|