-
Notifications
You must be signed in to change notification settings - Fork 629
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 Distant Loyalties to IF #6507
base: base
Are you sure you want to change the base?
Conversation
else | ||
player:startEvent(661) | ||
return |
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.
Unsure if the return lines in the npc luas is needed. I was unsure but these should eventually get removed once wildcat gets converted to IF. Same with the Rouva.lua file on line 22.
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.
Shouldn't be.
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.
You can remove the else return
as it will go to the DefaultActions if none of the requirements are met.
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.
For both -
2890969
to
ab2afc8
Compare
fame = 30, | ||
fameArea = xi.fameArea.SANDORIA, | ||
item = xi.item.WHITE_CAPE, |
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.
Align on the = (nit pick)
['Femitte'] = | ||
{ | ||
onTrigger = function(player, npc) | ||
local questProgress = quest:getVar(player, 'Prog') |
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.
If it is just for the 1 instance of calling it, I think its safe to not put it in the local
not player:needToZone() | ||
then | ||
return quest:progressEvent(318) | ||
else |
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.
Can this be moved to Bastok_Markets/DefaultActions.lua ?
else | ||
player:startEvent(661) | ||
return |
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.
Shouldn't be.
else | ||
player:startEvent(661) | ||
return |
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.
You can remove the else return
as it will go to the DefaultActions if none of the requirements are met.
else | ||
player:startEvent(661) | ||
return |
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.
For both -
@@ -19,7 +19,7 @@ entity.onTrigger = function(player, npc) | |||
then | |||
player:startEvent(808) | |||
else | |||
player:startEvent(664) | |||
return |
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.
See above.
ab2afc8
to
71e004a
Compare
{ | ||
check = function(player, status, vars) | ||
return status == xi.questStatus.QUEST_AVAILABLE and | ||
player:getFameLevel(xi.fameArea.SANDORIA) >= 4 |
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.
One more level of indent here for multiline returns
{ | ||
['Femitte'] = | ||
{ | ||
onTrigger = function(player, npc) |
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 = quest:progressEvent(663),
if option == 0 then | ||
quest:begin(player) | ||
npcUtil.giveKeyItem(player, xi.ki.GOLDSMITHING_ORDER) | ||
quest:setVar(player, 'Prog', 1) |
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.
You're switching states here from available to accepted, no need to set a Prog var
* Converted Distant Loyalties to IF * Added Default Action for Rouva * Added Default Action for Femitte * Removed Quest code from Rouva, Michea, and Femitte NPC lua Co-Authored-By: hooksta4 <[email protected]>
71e004a
to
43680e9
Compare
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.
looks fine to me, but as always contingent on clay's approval
@claywar Checking in to see if you have had some time to review. |
I affirm:
What does this pull request do?
Converts the quest Distant Loyalties to IF
Steps to test these changes
Zone: Southern San 'dOria !zone 230
-- Femitte/Rouva !pos -17.7129 2.1000 10.1636
Talk to Rouva to test the default action
Talk to Femitte to test the default action
Set your fame level to 4 or higher for San d'Oria
!setfamelevel 0 4
Talk to Femitte and select the first option to start the quest.
Talk to Femitte and you should receive the default action text.
Talk to Rouva and you should receive the quest default text.
Zone to Bastok Markets
-- Bastok Markets !zone 235
Talk to Michea: !pos -299.2114 -15.9717 -156.0629
Trade Michea a Mythril Ingot !giveitem 653
Talk to Michea to test the quest default text.
Rezone !goto
Talk to Michea to receive KI
Zone to Southern San d'Oria !zone 230
-- Femitte/Rouva !pos -17.7129 2.1000 10.1636
Talk to Rouva, her text should not have changed and should still tell you to go to Bastok
Talk to Femitte to end the quest
Talk to Rouva to test that she has reverted to her default action
Zone to Bastok Markets
-- Bastok Markets !zone 235
Talk to Michea: !pos -299.2114 -15.9717 -156.0629
Recieve one time flavor text for the quest. Afterward, she will revert to her default action from then on.
##Captures
Distant Loyalties Quest:
https://www.youtube.com/watch?v=Q4pDVbXe7iU
https://drive.google.com/drive/folders/1VRACiqRlw0vZEO6hp3DXr95rdJQlCi0N?usp=sharing
Default Actions:
https://www.youtube.com/watch?v=8WAJx6_sjGk
https://drive.google.com/drive/folders/1WY6GYNAZMP5J0iw1Pfdxzf4QQXADn8pK?usp=sharing