23 lines
894 B
Plaintext
23 lines
894 B
Plaintext
|
Scriptname _00E_FS_NQ07_DinnerActivatorScript extends ObjectReference
|
||
|
|
||
|
Event OnActivate(ObjectReference akActionRef)
|
||
|
|
||
|
if(FS_NQ07.GetStage() == 370 && akActionRef == PlayerREF && PlayerREF.GetItemCount(DalSarkerHoneywine) >= 2 && PlayerREF.GetItemCount(FoodChickenCooked) >= 2 && PlayerREF.GetItemCount(FoodCabbagePotatoSoup) >= 2 && FS_NQ07.IsObjectiveCompleted(140) == 1 && FS_NQ07.IsObjectiveCompleted(150) == 1)
|
||
|
FS_NQ07.SetStage(380)
|
||
|
PlayerREF.RemoveItem(DalSarkerHoneywine, 2)
|
||
|
PlayerREF.RemoveItem(FoodChickenCooked, 2)
|
||
|
PlayerREF.RemoveItem(FoodCabbagePotatoSoup, 2)
|
||
|
self.disable()
|
||
|
else
|
||
|
_00E_FS_NQ07_DinnerMessagebox.Show()
|
||
|
Endif
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
Actor Property PlayerREF Auto
|
||
|
Message Property _00E_FS_NQ07_DinnerMessagebox Auto
|
||
|
Potion Property DalSarkerHoneywine Auto
|
||
|
Potion Property FoodChickenCooked Auto
|
||
|
Potion Property FoodCabbagePotatoSoup Auto
|
||
|
Quest Property FS_NQ07 Auto
|