Skip to content
Open
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
18 changes: 16 additions & 2 deletions scripts/globals/assault/container.lua
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,14 @@ xi.assault.onInstanceFailure = function(instance)
entity:messageSpecial(zones[zoneID].text.MISSION_FAILED, 10, 10)
entity:setCharVar('assaultEntered', 0)
entity:setCharVar('AssaultFailed', 1)
entity:startEvent(102)
if entity:isInEvent() then
entity:release()
entity:timer(1, function(entityArg)
entityArg:startEvent(102)
end)
else
entity:startEvent(102)
end
end
end

Expand Down Expand Up @@ -457,7 +464,14 @@ local function awardCompletionPoints(player, instance)

member:setCharVar('assaultEntered', 0)
member:setCharVar('Assault_Armband', 0)
member:startEvent(102)
if member:getID() ~= player:getID() and member:isInEvent() then -- Player is finishing Rune of Release event: do not interrupt.
member:release()
member:timer(1, function(memberArg)
memberArg:startEvent(102)
end)
else
member:startEvent(102)
end
end
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/zones/Ilrusi_Atoll/npcs/Rune_of_Release.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ entity.onTrigger = function(player, npc)
local instance = npc:getInstance()

if instance and instance:completed() then
player:startEvent(100, 4)
player:startOptionalCutscene(100, { [0] = 4, cs_option = 0, canSkip = true })
end
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/zones/Lebros_Cavern/npcs/Rune_of_Release.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ entity.onTrigger = function(player, npc)
local instance = npc:getInstance()

if instance and instance:completed() then
player:startEvent(100, 2)
player:startOptionalCutscene(100, { [0] = 2, cs_option = 0, canSkip = true })
end
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/zones/Leujaoam_Sanctum/npcs/Rune_of_Release.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ entity.onTrigger = function(player, npc)
local instance = npc:getInstance()

if instance and instance:completed() then
player:startEvent(100, 0)
player:startOptionalCutscene(100, { [0] = 0, cs_option = 0, canSkip = true })
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ entity.onTrigger = function(player, npc)
local instance = npc:getInstance()

if instance and instance:completed() then
player:startEvent(100, 1)
player:startOptionalCutscene(100, { [0] = 1, cs_option = 0, canSkip = true })
end
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/zones/Periqia/npcs/Rune_of_Release.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ entity.onTrigger = function(player, npc)
local instance = npc:getInstance()

if instance and instance:completed() then
player:startEvent(100, 3)
player:startOptionalCutscene(100, { [0] = 3, cs_option = 0, canSkip = true })
end
end

Expand Down
Loading