-
Notifications
You must be signed in to change notification settings - Fork 636
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
base: base
Are you sure you want to change the base?
[Quest] Convert Scattered into Shadow to IF #6376
Conversation
455e398
to
d04608c
Compare
scripts/globals/treasure.lua
Outdated
@@ -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) |
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.
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.
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.
@@ -7,14 +7,6 @@ | |||
local entity = {} | |||
|
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.
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
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.
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?
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.
Yeah that would be great to have as reference
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.
Well, apparently I do not have it uploaded to the hxicaptures youtube...
d04608c
to
0e8ae00
Compare
I affirm:
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
Beast Collar
is retrieved from a chest inCASTLE_OZTROJA
thus we need to retrieve the quest var,Prog
from outside the quest lua - there's a deprecated method inutils.lua
(utils.getQuestVar
) which effectively does the same as the code I've updated intreasure.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 aquest
so I've just left it implemented in place.