diff --git a/responses/catalog.json b/responses/catalog.json index c6cb419..38c5c76 100644 --- a/responses/catalog.json +++ b/responses/catalog.json @@ -661,12 +661,13 @@ "offerType": "StaticPrice", "prices": [ { - "currencyType": "GameItem", + "currencyType": "MtxCurrency", "currencySubType": "AccountResource:voucher_basicpack", - "regularPrice": 1, - "finalPrice": 1, + "regularPrice": 0, + "dynamicRegularPrice": 0, + "finalPrice": 0, "saleExpiration": "9999-12-31T23:59:59.999Z", - "basePrice": 1 + "basePrice": 0 } ], "categories": [], diff --git a/structure/mcp.js b/structure/mcp.js index 4879ce7..1b8f5dd 100644 --- a/structure/mcp.js +++ b/structure/mcp.js @@ -4461,17 +4461,7 @@ express.post("/fortnite/api/game/v2/profile/*/client/PurchaseCatalogEntry", asyn } }) - if (req.body.currencySubType.toLowerCase() == "accountresource:voucher_basicpack") { - Notifications[0].lootResult.items.push({ - "itemType": value.templateId, - "itemGuid": ID, - "itemProfile": "campaign", - "attributes": { - "pack_source": "Store" - }, - "quantity": 1 - }) - } else { + if (req.body.currencySubType.toLowerCase() != "accountresource:voucher_basicpack") { for (var x = 0; x < Quantity; x++) { for (var key in campaign.items) { if (campaign.items[key].templateId.toLowerCase() == "prerolldata:preroll_basic") { @@ -4518,14 +4508,16 @@ express.post("/fortnite/api/game/v2/profile/*/client/PurchaseCatalogEntry", asyn } try { - for (var i in LlamaItemIDS) { - var id = LlamaItemIDS[i]; + if (req.body.currencySubType.toLowerCase() != "accountresource:voucher_basicpack") { + for (var i in LlamaItemIDS) { + var id = LlamaItemIDS[i]; - delete campaign.items[id]; - MultiUpdate[0].profileChanges.push({ - "changeType": "itemRemoved", - "itemId": id - }) + delete campaign.items[id]; + MultiUpdate[0].profileChanges.push({ + "changeType": "itemRemoved", + "itemId": id + }) + } } } catch (err) {}