Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Prevent Sacrificial Chamber and Sacrarium Doors from opening on click when they shouldnt #7078

Merged
merged 2 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions scripts/missions/cop/4_3_The_Secrets_of_Worship.lua
Original file line number Diff line number Diff line change
Expand Up @@ -170,20 +170,23 @@ mission.sections =

{
check = function(player, currentMission, missionStatus, vars)
return player:hasCompletedMission(mission.areaId, mission.missionId)
return currentMission ~= mission.missionId
end,

['_0s8'] =
[xi.zone.SACRARIUM] =
{
onTrigger = function(player, npc)
if player:getXPos() > 45 then
if player:hasKeyItem(xi.ki.RELIQUIARIUM_KEY) then
player:startEvent(110)
['_0s8'] =
{
onTrigger = function(player, npc)
if player:getXPos() > 45 then
if player:hasKeyItem(xi.ki.RELIQUIARIUM_KEY) then
player:startEvent(110)
end
else
return mission:messageSpecial(sacrariumID.text.CANNOT_OPEN_SIDE)
end
else
return mission:messageSpecial(sacrariumID.text.CANNOT_OPEN_SIDE)
end
end,
end,
},
},
},
}
Expand Down
9 changes: 9 additions & 0 deletions scripts/zones/Sacrificial_Chamber/DefaultActions.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- local ID = zones[xi.zone.SACRIFICIAL_CHAMBER]

return {
['_4j0'] = { messageSpecial = -1 }, -- Battlefield entrance.
['_4j1'] = { messageSpecial = -1 },
['_4j2'] = { messageSpecial = -1 },
['_4j3'] = { messageSpecial = -1 },
['_4j4'] = { messageSpecial = -1 },
}