We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d339107 commit a4fa989Copy full SHA for a4fa989
scripts/zones/Castle_Oztroja/npcs/_47d.lua
@@ -7,12 +7,19 @@
7
local entity = {}
8
9
entity.onTrigger = function(player, npc)
10
- if not player:hasKeyItem(xi.ki.OLD_RING) then
11
- npcUtil.giveKeyItem(player, xi.ki.OLD_RING)
+ if
+ not player:hasCompletedQuest(xi.questLog.WINDURST, xi.quest.id.windurst.ONION_RINGS) and
12
+ not player:hasKeyItem(xi.ki.OLD_RING)
13
+ then
14
+ player:startCutscene(44, 0, xi.ki.OLD_RING)
15
+ elseif npc:getAnimation() == xi.anim.CLOSE_DOOR then
16
+ npc:openDoor()
17
end
18
+end
19
- if npc:getAnimation() == xi.anim.CLOSE_DOOR then
- npc:openDoor()
20
+entity.onEventFinish = function(player, csid, option, npc)
21
+ if csid == 44 then
22
+ npcUtil.giveKeyItem(player, xi.ki.OLD_RING)
23
24
25
0 commit comments