chore: use giveKeyChainMessage to send messages

This commit is contained in:
nrbdev 2025-02-20 12:18:32 -05:00
parent 4ccf8de801
commit 3375b9cb4b

View File

@ -47,11 +47,11 @@ import {
ExportWeapons,
TStandingLimitBin
} from "warframe-public-export-plus";
import { createMessage } from "./inboxService";
import { createShip } from "./shipService";
import { creditBundles, fusionBundles } from "@/src/services/missionInventoryUpdateService";
import { IKeyChainRequest } from "@/src/controllers/api/giveKeyChainTriggeredItemsController";
import { toOid } from "../helpers/inventoryHelpers";
import { giveKeyChainMessage } from "./questService";
export const createInventory = async (
accountOwnerId: Types.ObjectId,
@ -81,43 +81,15 @@ export const createInventory = async (
];
// Give Darvo items that would be given after completing vors prize
await createMessage(String(accountOwnerId), [
{
sub: "/Lotus/Language/G1Quests/Beginner_Growth_Inbox_Title",
sndr: "/Lotus/Language/Menu/Mailbox_WarframeSender",
msg: "/Lotus/Language/G1Quests/Beginner_Growth_Inbox_Desc",
icon: "/Lotus/Interface/Icons/Npcs/Lotus_d.png",
transmission: "/Lotus/Sounds/Dialog/VorsPrize/DLisetPostAssassinate110Lotus",
highPriority: true,
r: false
},
{
sub: "/Lotus/Language/Inbox/DarvoWeaponCraftingMessageBTitle",
sndr: "/Lotus/Language/Bosses/Darvo",
msg: "/Lotus/Language/Inbox/DarvoWeaponCraftingMessageBDesc",
icon: "/Lotus/Interface/Icons/Npcs/Darvo.png",
countedAtt: [
{
ItemCount: 1,
ItemType: "/Lotus/Types/Recipes/Weapons/BurstonRifleBlueprint"
},
{
ItemCount: 1,
ItemType: "/Lotus/Types/Items/MiscItems/Morphic"
},
{
ItemCount: 400,
ItemType: "/Lotus/Types/Items/MiscItems/PolymerBundle"
},
{
ItemCount: 150,
ItemType: "/Lotus/Types/Items/MiscItems/AlloyPlate"
}
],
highPriority: true,
r: false
}
]);
await giveKeyChainMessage(inventory, String(accountOwnerId), {
KeyChain: "/Lotus/Types/Keys/VorsPrize/VorsPrizeQuestKeyChain",
ChainStage: 7 /* a.k.a { "title": "/Lotus/Language/G1Quests/Beginner_Growth_Inbox_Title", "body": "/Lotus/Language/G1Quests/Beginner_Growth_Inbox_Desc" } */
});
await giveKeyChainMessage(inventory, String(accountOwnerId), {
KeyChain: "/Lotus/Types/Keys/VorsPrize/VorsPrizeQuestKeyChain",
ChainStage: 6 /* a.k.a { "title": "/Lotus/Language/Inbox/DarvoWeaponCraftingMessageBTitle", "body": "/Lotus/Language/Inbox/DarvoWeaponCraftingMessageBDesc" } */
});
// const vorsPrizeRewards = [
// // Vor's Prize rewards