feat: send hex quest email when The Lotus Eaters and The Duviri Paradox are complete #1761
@ -254,6 +254,25 @@ const handleQuestCompletion = async (
 | 
			
		||||
        ]);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // The Hex (Quest) is unlocked once The Lotus Eaters + The Duviri Paradox are completed.
 | 
			
		||||
    if (
 | 
			
		||||
        doesQuestCompletionFinishSet(inventory, questKey, [
 | 
			
		||||
            "/Lotus/Types/Keys/1999PrologueQuest/1999PrologueQuestKeyChain",
 | 
			
		||||
            "/Lotus/Types/Keys/DuviriQuest/DuviriQuestKeyChain"
 | 
			
		||||
        ])
 | 
			
		||||
    ) {
 | 
			
		||||
        await createMessage(inventory.accountOwnerId, [
 | 
			
		||||
            {
 | 
			
		||||
                sndr: "/Lotus/Language/NewWar/P3M1ChooseMara",
 | 
			
		||||
                msg: "/Lotus/Language/1999Quest/1999QuestInboxBody",
 | 
			
		||||
                att: ["/Lotus/Types/Keys/1999Quest/1999QuestKeyChain"],
 | 
			
		||||
                sub: "/Lotus/Language/1999Quest/1999QuestInboxSubject",
 | 
			
		||||
                icon: "/Lotus/Interface/Icons/Npcs/Operator.png",
 | 
			
		||||
                highPriority: true
 | 
			
		||||
            }
 | 
			
		||||
        ]);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const questCompletionItems = getQuestCompletionItems(questKey);
 | 
			
		||||
    logger.debug(`quest completion items`, questCompletionItems);
 | 
			
		||||
    if (questCompletionItems) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user