You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.
if (player:getQuestStatus(JEUNO, tpz.quest.id.jeuno.RUBBISH_DAY) ==QUEST_ACCEPTEDandplayer:getCharVar("RubbishDayVar") ==0) then
player:startEvent(11, 1) -- For the quest "Rubbish day"
elseif (player:getQuestStatus(WINDURST, tpz.quest.id.windurst.MAKING_AMENS) ==QUEST_ACCEPTED) then
if (player:hasKeyItem(tpz.ki.BROKEN_WAND) ==true) then
player:startEvent(11, 3)
elseplayer:startEvent(11, 0) -- Making Amens dialogue
end
else
player:startEvent(11, 3) -- Standard dialog and menu
end
end
I think that the following four patterns should be branched according to the state of the two quests.
function onTrigger(player, npc)
local rubbishDay = player:getQuestStatus(JEUNO, tpz.quest.id.jeuno.RUBBISH_DAY)
local makingAmens = player:getQuestStatus(WINDURST, tpz.quest.id.windurst.MAKING_AMENS)
if ((rubbishDay == QUEST_ACCEPTED and player:getCharVar("RubbishDayVar") == 0) and
(makingAmens ~= QUEST_ACCEPTED or player:hasKeyItem(tpz.ki.BROKEN_WAND) == true)) then
player:startEvent(11, 1) -- only For the quest "Rubbish day"
elseif ((rubbishDay ~= QUEST_ACCEPTED or player:getCharVar("RubbishDayVar") ~= 0) and
(makingAmens == QUEST_ACCEPTED and player:hasKeyItem(tpz.ki.BROKEN_WAND) == false)) then
player:startEvent(11, 2, 937) -- only For the quest "Making Amens"
elseif (rubbishDay == QUEST_ACCEPTED and player:getCharVar("RubbishDayVar") == 0 and
makingAmens == QUEST_ACCEPTED and player:hasKeyItem(tpz.ki.BROKEN_WAND) == false) then
player:startEvent(11) -- For the quest "Rubbish day" / "Making Amens"
else
player:startEvent(11, 3) -- Standard dialog and menu
end
end
The text was updated successfully, but these errors were encountered:
function onTrigger(player, npc)
local rubbishDay = player:getQuestStatus(JEUNO, tpz.quest.id.jeuno.RUBBISH_DAY)
local makingAmens = player:getQuestStatus(WINDURST, tpz.quest.id.windurst.MAKING_AMENS)
if (rubbishDay == QUEST_ACCEPTED and player:getCharVar("RubbishDayVar") == 0 and
makingAmens == QUEST_ACCEPTED and player:hasKeyItem(tpz.ki.BROKEN_WAND) == false) then
player:startEvent(11) -- For the quest "Rubbish day" / "Making Amens"
elseif (rubbishDay == QUEST_ACCEPTED and player:getCharVar("RubbishDayVar") == 0) then
player:startEvent(11, 1) -- only For the quest "Rubbish day"
elseif (makingAmens == QUEST_ACCEPTED and player:hasKeyItem(tpz.ki.BROKEN_WAND) == false) then
player:startEvent(11, 2, 937) -- only For the quest "Making Amens"
else
player:startEvent(11, 3) -- Standard dialog and menu
end
end
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have:
Additional Information (Steps to reproduce/Expected behavior) :
It occurs by the following procedure.
which is strange. For reason 1, I don't have the Key item "Magic trash".
It seems that "2" is correct, not "0", as the parameter that changes the options. (L22)
topaz/scripts/zones/Garlaige_Citadel/npcs/Mashira.lua
Lines 16 to 27 in e6001c7
I think that the following four patterns should be branched according to the state of the two quests.
The text was updated successfully, but these errors were encountered: