diff --git a/index.js b/index.js index fa2a300..6ea8d50 100644 --- a/index.js +++ b/index.js @@ -5407,14 +5407,50 @@ express.post("/fortnite/api/game/v2/profile/*/client/PurchaseCatalogEntry", asyn } }) - for (var i = 0; i < 10; i++) { - const randomNumber = Math.floor(Math.random() * ItemIDS.length); - const id = makeid(); - - MultiUpdate[0].profileChanges.push({ - "changeType": "itemAdded", - "itemId": id, - "item": { + 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 { + for (var i = 0; i < 10; i++) { + const randomNumber = Math.floor(Math.random() * ItemIDS.length); + const id = makeid(); + + MultiUpdate[0].profileChanges.push({ + "changeType": "itemAdded", + "itemId": id, + "item": { + "templateId": ItemIDS[randomNumber], + "attributes": { + "last_state_change_time": "2017-08-29T21:05:57.087Z", + "max_level_bonus": 0, + "level": 1, + "item_seen": false, + "alterations": [], + "xp": 0, + "sent_new_notification": true, + "favorite": false + }, + "quantity": 1 + } + }) + + Notifications[0].lootResult.items.push({ + "itemType": ItemIDS[randomNumber], + "itemGuid": id, + "itemProfile": "campaign", + "attributes": {}, + "quantity": 1 + }) + + campaign.items[id] = { "templateId": ItemIDS[randomNumber], "attributes": { "last_state_change_time": "2017-08-29T21:05:57.087Z", @@ -5428,39 +5464,16 @@ express.post("/fortnite/api/game/v2/profile/*/client/PurchaseCatalogEntry", asyn }, "quantity": 1 } - }) - - Notifications[0].lootResult.items.push({ - "itemType": ItemIDS[randomNumber], - "itemGuid": id, - "itemProfile": "campaign", - "attributes": {}, - "quantity": 1 - }) - - campaign.items[id] = { - "templateId": ItemIDS[randomNumber], - "attributes": { - "last_state_change_time": "2017-08-29T21:05:57.087Z", - "max_level_bonus": 0, - "level": 1, - "item_seen": false, - "alterations": [], - "xp": 0, - "sent_new_notification": true, - "favorite": false - }, - "quantity": 1 } - } - - if (campaign.items[ID].quantity == 1) { - delete campaign.items[ID] - - MultiUpdate[0].profileChanges.push({ - "changeType": "itemRemoved", - "itemId": ID - }) + + if (campaign.items[ID].quantity == 1) { + delete campaign.items[ID] + + MultiUpdate[0].profileChanges.push({ + "changeType": "itemRemoved", + "itemId": ID + }) + } } if (true) { diff --git a/responses/contentpages.json b/responses/contentpages.json index 56378a7..efe961f 100644 --- a/responses/contentpages.json +++ b/responses/contentpages.json @@ -1221,25 +1221,10 @@ { "hidden": false, "_type": "CommonUI Simple Message Base", - "subgame": "br", "title": "LawinServer", - "body": "Server created by Lawin (Twitter: @lawin_010) \nDiscord: https://discord.gg/KJ8UaHZ", + "body": "Server created by Lawin (Twitter: @lawin_010)\nDiscord: https://discord.gg/KJ8UaHZ", "spotlight": true } - ], - "region_messages": [ - { - "_type": "CommonUI Simple Message Region", - "region": "NA", - "message": { - "hidden": false, - "_type": "CommonUI Simple Message Base", - "subgame": "br", - "title": "LawinServer", - "body": "Server created by Lawin (Twitter: @lawin_010) \nDiscord: https://discord.gg/KJ8UaHZ", - "spotlight": true - } - } ] }, "_title": "emergencynotice", @@ -1249,6 +1234,27 @@ "lastModified": "2019-10-29T22:32:52.686Z", "_locale": "en-US" }, + "emergencynoticev2": { + "jcr:isCheckedOut": true, + "_title": "emergencynoticev2", + "_noIndex": false, + "jcr:baseVersion": "a7ca237317f1e771e921e2-7f15-4485-b2e2-553b809fa363", + "emergencynotices": { + "_type": "Emergency Notices", + "emergencynotices": [ + { + "gamemodes": [], + "hidden": false, + "_type": "CommonUI Emergency Notice Base", + "title": "LawinServer", + "body": "Server created by Lawin (Twitter: @lawin_010)\nDiscord: https://discord.gg/KJ8UaHZ" + } + ] + }, + "_activeDate": "2018-08-06T19:00:26.217Z", + "lastModified": "2021-12-01T15:55:56.012Z", + "_locale": "en-US" + }, "koreancafe": { "_title": "KoreanCafe", "cafe_info": {