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

[Quest] Convert Scattered into Shadow to IF #6376

Open
wants to merge 1 commit into
base: base
Choose a base branch
from

Conversation

jamesbradleym
Copy link
Contributor

@jamesbradleym jamesbradleym commented Oct 21, 2024

I affirm:

  • I understand that if I do not agree to the following points by completing the checkboxes my PR will be ignored.
  • I understand I should leave resolving conversations to the LandSandBoat team so that reviewers won't miss what was said.
  • I have read and understood the Contributing Guide and the Code of Conduct.
  • I have tested my code and the things my code has changed since the last commit in the PR and will test after any later commits.

What does this pull request do?

Converts Beast AF2 Quest (Scattered into Shadow) to IF/Cleans up npc luas
Implements Tehbi hiding TODO

Capture

Steps to test these changes

Complete Beast AF2 Quest

Notes

  • There are 2 dialogs given by Brutus depending on whether or not you had previously declined the quest. So, first time -> long dialog, second time post decline -> short dialog.
  • The CS/event for each of the flora removals delivers the removal message
  • Tehbi disappears for 15 mins on successful beast collar trade
  • The Beast Collar is retrieved from a chest in CASTLE_OZTROJA thus we need to retrieve the quest var, Prog from outside the quest lua - there's a deprecated method in utils.lua (utils.getQuestVar) which effectively does the same as the code I've updated in treasure.lua for this quest. The deprecation comment says to use xi.quest methods but from my understanding you wouldn't be able to reach these methods without a quest so I've just left it implemented in place.
  • Previous PR: [Quest] Convert (Beastmaster AF2) Scattered into Shadow to IF #6102

@jamesbradleym jamesbradleym changed the title Convert Scattered into Shadow to IF [Quest] Convert Scattered into Shadow to IF Oct 21, 2024
@@ -255,7 +255,7 @@ xi.treasure.treasureInfo =
{
test = function(player)
return player:getQuestStatus(xi.questLog.JEUNO, xi.quest.id.jeuno.SCATTERED_INTO_SHADOW) == xi.questStatus.QUEST_ACCEPTED and
player:getCharVar('scatIntoShadowCS') == 1 and not player:hasItem(xi.item.BEAST_COLLAR)
player:getCharVar(Quest.getVarPrefix(3, 61) .. 'Prog') == 4 and not player:hasItem(xi.item.BEAST_COLLAR)
Copy link
Contributor

@hookstar hookstar Oct 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting - I had not seen this used except for rycharde in a discussion and in the commands folder... can we enum that? player:getCharVar(Quest.getVarPrefix(JEUNO, SCATTERED_INTO_SHADOW ) .. 'Prog') == 4
for readability? Would be cool if it did the db would be something like
Quest[Jeuno][Scattered_Into_Wind]Prog 4 -- would make finding the quests in the db a lot easier!
below is a case already here to hit the db for CharVar. Hope that helps.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -7,14 +7,6 @@
local entity = {}

Copy link
Contributor

@hookstar hookstar Oct 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

local pathNodes =
{
    { x = -136.0000, y = 24.2500, z = -21.0000 },
    { x = -140.0788, y = 24.2500, z = -25.9524 },
    { x = -140.1171, y = 24.2500, z = -37.6438 },
    { x = -140.1195, y = 24.2500, z = -45.9640 },
    { x = -140.1225, y = 24.2500, z = -55.6002 },
}

entity.onSpawn = function(npc)
    npc:initNpcAi()
    npc:setPos(xi.path.first(pathNodes))
    npc:pathThrough(pathNodes, xi.path.flag.PATROL)
end

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those were the captures I took for his pathing - he just runs back and forth -- I have the video somewhere if you'd like it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that would be great to have as reference

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, apparently I do not have it uploaded to the hxicaptures youtube...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants