Skip to content

Commit a4fa989

Browse files
committed
Rework logic for obtaining the old ring in Castle Oztroja
1 parent d339107 commit a4fa989

File tree

1 file changed

+11
-4
lines changed
  • scripts/zones/Castle_Oztroja/npcs

1 file changed

+11
-4
lines changed

scripts/zones/Castle_Oztroja/npcs/_47d.lua

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,19 @@
77
local entity = {}
88

99
entity.onTrigger = function(player, npc)
10-
if not player:hasKeyItem(xi.ki.OLD_RING) then
11-
npcUtil.giveKeyItem(player, xi.ki.OLD_RING)
10+
if
11+
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()
1217
end
18+
end
1319

14-
if npc:getAnimation() == xi.anim.CLOSE_DOOR then
15-
npc:openDoor()
20+
entity.onEventFinish = function(player, csid, option, npc)
21+
if csid == 44 then
22+
npcUtil.giveKeyItem(player, xi.ki.OLD_RING)
1623
end
1724
end
1825

0 commit comments

Comments
 (0)