-
Notifications
You must be signed in to change notification settings - Fork 650
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
[lua, quest] Converts BRD unlock and BRD AF1 to IF #6682
base: base
Are you sure you want to change the base?
Conversation
return quest:progressEvent(138) | ||
elseif quest:getVar(player, 'initialCS') == 1 then | ||
return quest:progressEvent(137) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onTrigger = function(player, npc)
local initialCS = quest:getVar(player, 'initialCS')
if initialCS == 0 then
return quest:progressEvent(138)
elseif initialCS == 1 then
return quest:progressEvent(137)
end
end,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adjusted to the example
return quest:noAction() | ||
elseif | ||
quest:getVar(player, 'nmKilled') == 1 | ||
then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Theres only 1 condition here. Also, as above, store the variable in a local var instead of fetching it.
65a66d8
to
a7019cb
Compare
player:hasKeyItem(xi.ki.MERTAIRES_BRACELET) and | ||
npcUtil.popFromQM(player, npc, ID.mob.TROS, { claim = true, hide = 0 }) and | ||
nmKilled == 0 | ||
then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As written, there is a bug with this part of the code. If the player delays checking the Waters of Oblivion until after Tros has fully despawned, Tros will then respawn and agro onto the player while they are in the final cutscene.
if
nmKilled == 0 and
player:hasKeyItem(xi.ki.MERTAIRES_BRACELET) and
npcUtil.popFromQM(player, npc, ID.mob.TROS, { claim = true, hide = 0 })
then
Swap the NM killed check to the top (or at least above the NM spawn) to prevent this from happening. Since you want to make sure all checks are passed before spawning the NM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I'll keep that in mind for future quests. Got it adjusted, along with the NPC commands below.
----------------------------------- | ||
-- Log ID: 3, Quest ID: 63 | ||
-- Mertaire: !gotoid 17780764 | ||
-- Waters_of_Oblivion: !gotoid 17457347 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Swap these !gotoid checks to !pos this way if ids ever shift this won't cause issues or need to be updated in the future.
-- -- Path of the Bard | ||
-- ----------------------------------- | ||
-- -- Log ID: 3, Quest ID: 20 | ||
-- -- Song Runes: !gotoid 17199695 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This !gotoid as well.
e62c79a
to
7034107
Compare
Co-authored-by: hooksta4 <[email protected]>
7034107
to
9a34126
Compare
I affirm:
What does this pull request do?
Path of the Bard: https://www.youtube.com/watch?v=ZAJAjoMJFdo
Painful Memory: https://www.youtube.com/watch?v=QXsns9eag10
Steps to test these changes