From 1a02ad0f696d796ae7ea7cd772ad5a1cae005221 Mon Sep 17 00:00:00 2001 From: Burlone <108557545+burlone0@users.noreply.github.com> Date: Tue, 29 Oct 2024 23:19:11 +0100 Subject: [PATCH] Fixed matchmaker error + added s14 bp --- Config/config.json | 2 +- README.md | 4 +- package-lock.json | 4 +- package.json | 2 +- responses/Athena/BattlePass/Season14.json | 459 +++++++++++++++ responses/catalog.json | 676 +++++++++++++--------- xmpp/xmpp.js | 1 + 7 files changed, 874 insertions(+), 274 deletions(-) create mode 100644 responses/Athena/BattlePass/Season14.json diff --git a/Config/config.json b/Config/config.json index c8217b4..20ae89d 100644 --- a/Config/config.json +++ b/Config/config.json @@ -32,7 +32,7 @@ "matchmakerIP": "127.0.0.1:80", "gameServerIP": ["127.0.0.1:7777:playlist_defaultsolo"], - "//": "For 'BattlePassSeason' enter only the number of your season (from 2 to 16) / (We are working on season 15 while season 14 is currently not possible :C)", + "//": "For 'BattlePassSeason' enter only the number of your season (from 2 to 16) / (We are working on season 15)", "bEnableBattlepass": false, "bBattlePassSeason": 2, diff --git a/README.md b/README.md index 482db6f..043a787 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Created by [Burlone](https://github.com/burlone0), This is a modded backend, all * Discord Bot: * [x] Being able to activate/deactivate the Discord bot. * [x] Commands with very useful functions. -* BattlePass (s2-s16) / (We are working on season 15 while season 14 is currently not possible :C): +* BattlePass (s2-s16) / (We are working on season 15): * [x] Possibility to buy the battle pass. * [x] Possibility to purchase battle pass levels. * [x] Possibility to gift the battle pass (BETA). @@ -125,7 +125,7 @@ This **project/backend** is licensed under the **BSD 3-Clause License.** * [VoxyB89](https://github.com/VoxyB89) - For adding https/ssl support * [xLoigi](https://github.com/xLoigi) - For helping with some files and support a creator stuff * [PRO100KatYT](https://github.com/PRO100KatYT) - For helping with some .json files -* [Marvelco](https://github.com/MarvelcoOGFN) - For helping with Battle passes (s11 - s16) / (We are working on season 15 while season 14 is currently not possible :C) +* [Marvelco](https://github.com/MarvelcoOGFN) - For helping with Battle passes (s11 - s16) / (We are working on season 15) * [nade](https://github.com/gn1e) - For creating the base of the Auto Item Shop (Even if [Burlone](https://github.com/burlone0) solved many problems heheheh) --- diff --git a/package-lock.json b/package-lock.json index 2bd7225..422da47 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "reloadbackend", - "version": "1.0.6", + "version": "1.0.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "reloadbackend", - "version": "1.0.6", + "version": "1.0.7", "license": "GPL-3.0", "dependencies": { "axios": "^1.7.7", diff --git a/package.json b/package.json index 8c0b959..a3b3028 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "reloadbackend", - "version": "1.0.6", + "version": "1.0.7", "description": "Created by Burlone, This is a modded backend, all main backend credits to lawin", "main": "index.js", "dependencies": { diff --git a/responses/Athena/BattlePass/Season14.json b/responses/Athena/BattlePass/Season14.json new file mode 100644 index 0000000..c70aa0f --- /dev/null +++ b/responses/Athena/BattlePass/Season14.json @@ -0,0 +1,459 @@ +{ + "battleBundleOfferId": "CFD41EF842ABF9D3D84A84B0F717D900", + "battlePassOfferId": "6EFAD8A54BBFAF4F24FA17BFCA8A879E", + "tierOfferId": "461F34C046269604EAC31481F34BC405", + "paidRewards": [ + { + "Token:athenaseasonxpboost": 50, + "Token:athenaseasonfriendxpboost": 60, + "AthenaCharacter:CID_845_Athena_Commando_M_HightowerTapas": 1, + "ChallengeBundleSchedule:Season14_Wasabi_Schedule_01": 1, + "ChallengeBundleSchedule:Season14_Wasabi_Schedule_02": 1, + "ChallengeBundleSchedule:Season14_Wasabi_Schedule_03": 1, + "ChallengeBundleSchedule:Season14_Wasabi_Schedule_04": 1, + "ChallengeBundleSchedule:Season14_Wasabi_Schedule_05": 1, + "ChallengeBundleSchedule:Season14_Wasabi_Schedule_06": 1, + "ChallengeBundleSchedule:Season14_Wasabi_Schedule_07": 1, + "ChallengeBundleSchedule:Season14_Wasabi_Schedule_08": 1, + "ChallengeBundleSchedule:Season14_Wasabi_Schedule_09": 1, + "ChallengeBundleSchedule:Season14_AlternateStyles_Schedule_01": 1, + "ChallengeBundleSchedule:Season14_AlternateStyles_Schedule_02": 1, + "ChallengeBundleSchedule:Season14_AlternateStyles_Schedule_03": 1, + "ChallengeBundleSchedule:Season14_AlternateStyles_Schedule_04": 1, + "ChallengeBundleSchedule:Season14_AlternateStyles_Schedule_05": 1, + "ChallengeBundleSchedule:Season14_AlternateStyles_Schedule_06": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_S_Tapas_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_S_HoneyDew_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_S_Grape_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_S_Squash_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_S_Date_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_S_Mango_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_S_Tomato_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_S_Wasabi_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_G_Tapas_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_G_HoneyDew_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_G_Grape_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_G_Squash_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_G_Date_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_G_Mango_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_G_Tomato_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_G_Wasabi_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_H_Tapas_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_H_HoneyDew_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_H_Grape_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_H_Squash_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_H_Date_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_H_Mango_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_H_Tomato_Schedule": 1, + "ChallengeBundleSchedule:Season14_SuperLevel_H_Wasabi_Schedule": 1 + }, + {}, + { "AthenaDance:SPID_224_S14_HighTowerTapas": 1 }, + {}, + { + "AthenaBackpack:BID_600_HightowerTapas": 1 + }, + {}, + { + "BannerToken:BannerToken_062_S14_HighTowerTapas": 1 + }, + { + "ChallengeBundleSchedule:Season14_Awakenings_HightowerTapas1H_Schedule": 1, + "AthenaPickaxe:Pickaxe_ID_458_HightowerTapas1H": 1 + }, + {}, + { + "AthenaItemWrap:Wrap_272_HightowerTapas": 1 + }, + { + "CosmeticVariantToken:VTID_743_HighTowerGlider_Tapas": 1 + }, + { + "Currency:mtxgiveaway": 100 + }, + {}, + { + "AthenaGlider:Glider_ID_236_HightowerTapasMale": 1 + }, + { + "ChallengeBundleSchedule:Season14_Awakenings_HightowerTapas_Schedule": 1, + "AthenaDance:EID_HightowerTapas": 1 + }, + { + "AthenaItemWrap:Wrap_269_HightowerHoneydew": 1 + }, + { + "AthenaDance:SPID_220_S14_HighTowerHoneyDew": 1 + }, + {}, + { + "Currency:mtxgiveaway": 100 + }, + { + "AthenaLoadingScreen:LSID_254_S14SeasonalA": 1 + }, + { + "CosmeticVariantToken:VTID_740_HighTowerGlider_Honeydew": 1 + }, + { + "AthenaCharacter:CID_842_Athena_Commando_F_HightowerHoneydew": 1 + }, + {}, + { + "BannerToken:BannerToken_058_S14_HighTowerHoneyDew": 1 + }, + { + "AthenaPickaxe:Pickaxe_ID_455_HightowerHoneydew1H": 1 + }, + { + "Currency:mtxgiveaway": 100 + }, + { + "AthenaLoadingScreen:LSID_248_HighTowerHoneyDew": 1 + }, + {}, + { + "ChallengeBundleSchedule:Season14_Awakenings_HightowerHoneyDew_Schedule": 1, + "AthenaDance:EID_HightowerHoneydew": 1 + }, + { + "AthenaSkyDiveContrail:Trails_ID_096_HightowerGrape": 1 + }, + { + "Currency:mtxgiveaway": 100 + }, + { + "ChallengeBundleSchedule:Season14_Awakenings_HightowerGrapeB_Schedule": 1, + "AthenaBackpack:BID_598_HightowerGrape": 1 + }, + {}, + { + "AthenaDance:SPID_219_S14_HighTowerGrape": 1 + }, + { + "AthenaMusicPack:MusicPack_057_S14_Hero": 1 + }, + { + "BannerToken:BannerToken_057_S14_HighTowerGrape": 1 + }, + {}, + { + "AthenaCharacter:CID_840_Athena_Commando_M_HightowerGrape": 1 + }, + { + "CosmeticVariantToken:VTID_739_HighTowerGlider_Grape": 1 + }, + { + "AthenaDance:Emoji_S14_HighTowerGrape": 1 + }, + { + "Currency:mtxgiveaway": 100 + }, + { + "AthenaGlider:Glider_ID_234_HightowerGrape": 1 + }, + {}, + { + "AthenaLoadingScreen:LSID_247_HighTowerGrape": 1 + }, + { + "BannerToken:BannerToken_060_S14_HighTowerRadish": 1 + }, + { + "ChallengeBundleSchedule:Season14_Awakenings_HightowerGrape_Schedule": 1, + "AthenaDance:EID_HightowerGrape": 1 + }, + { + "Currency:mtxgiveaway": 100 + }, + {}, + { + "AthenaDance:Emoji_S14_HighTowerSquash": 1 + }, + { + "AthenaSkyDiveContrail:Trails_ID_098_HightowerSquash": 1 + }, + { + "BannerToken:BannerToken_061_S14_HighTowerSquash": 1 + }, + {}, + { + "AthenaCharacter:CID_839_Athena_Commando_F_HightowerSquash": 1 + }, + { + "CosmeticVariantToken:VTID_742_HighTowerGlider_Squash": 1 + }, + { + "AthenaPickaxe:Pickaxe_ID_457_HightowerSquash1H": 1 + }, + { + "AthenaLoadingScreen:LSID_250_HighTowerSquash": 1 + }, + { + "AthenaGlider:Glider_ID_235_HightowerSquashFemale": 1 + }, + {}, + { + "Currency:mtxgiveaway": 100 + }, + { + "ChallengeBundleSchedule:Season14_Awakenings_HightowerSquash_Schedule": 1, + "AthenaDance:EID_HightowerSquash": 1 + }, + { + "AthenaMusicPack:MusicPack_058_S14_Villain": 1 + }, + { + "AthenaDance:Emoji_S14_HighTowerDate": 1 + }, + {}, + { + "AthenaPickaxe:Pickaxe_ID_453_HightowerDate": 1 + }, + { + "Currency:mtxgiveaway": 100 + }, + { + "AthenaItemWrap:Wrap_267_HightowerDate": 1 + }, + { + "AthenaCharacter:CID_846_Athena_Commando_M_HightowerDate": 1, + "AthenaBackpack:BID_605_HightowerDate_Cape": 1 + }, + {}, + { + "CosmeticVariantToken:VTID_738_HighTowerGlider_Date": 1 + }, + { + "Currency:mtxgiveaway": 100 + }, + { + "AthenaGlider:Glider_ID_232_HightowerDate": 1 + }, + {}, + { + "AthenaSkyDiveContrail:Trails_ID_095_HightowerDate": 1 + }, + { + "ChallengeBundleSchedule:Season14_Awakenings_HightowerDate_Schedule": 1, + "AthenaDance:EID_HightowerDate": 1 + }, + { + "CosmeticVariantToken:VTID_741_HighTowerGlider_Mango": 1 + }, + { + "AthenaDance:Emoji_S14_HighTowerMango": 1 + }, + {}, + { + "Currency:mtxgiveaway": 100 + }, + { + "AthenaLoadingScreen:LSID_249_HighTowerMango": 1 + }, + { + "AthenaCharacter:CID_844_Athena_Commando_F_HightowerMango": 1 + }, + { + "AthenaBackpack:BID_595_HightowerMango": 1 + }, + { + "AthenaDance:SPID_221_S14_HighTowerMango": 1 + }, + { + "AthenaPickaxe:Pickaxe_ID_456_HightowerMango1H": 1 + }, + {}, + { + "AthenaItemWrap:Wrap_270_HightowerMango": 1 + }, + { + "ChallengeBundleSchedule:Season14_Awakenings_HightowerMango_Schedule": 1, + "AthenaDance:EID_HightowerMango": 1 + }, + { + "AthenaLoadingScreen:LSID_252_HighTowerTomato": 1 + }, + { + "Currency:mtxgiveaway": 100 + }, + { + "AthenaBackpack:BID_596_HightowerTomato": 1 + }, + { + "BannerToken:BannerToken_063_S14_HighTowerTomato": 1 + }, + {}, + { + "Currency:mtxgiveaway": 100 + }, + { + "AthenaCharacter:CID_843_Athena_Commando_M_HightowerTomato_Casual": 1 + }, + { + "CosmeticVariantToken:VTID_744_HighTowerGlider_Tomato": 1 + }, + { + "AthenaDance:SPID_225_S14_HighTowerTomato": 1 + }, + { + "AthenaPickaxe:Pickaxe_ID_459_HightowerTomato1H": 1 + }, + { + "AthenaDance:Emoji_S14_HighTowerTomato": 1 + }, + { + "AthenaGlider:Glider_ID_237_HightowerTomato": 1 + }, + {}, + { + "ChallengeBundleSchedule:Season14_Awakenings_HightowerTomato_Schedule": 1, + "AthenaDance:EID_HightowerTomato": 1 + } + ], + "freeRewards": [ + {}, + { + "AthenaSkyDiveContrail:Trails_ID_099_HightowerTapas": 1 + }, + {}, + { + "Currency:mtxgiveaway": 100 + }, + {}, + { + "AthenaGlider:Glider_ID_233_HightowerDefault": 1 + }, + {}, + {}, + { + "AthenaLoadingScreen:LSID_251_HighTowerTapas": 1 + }, + {}, + {}, + {}, + { + "AthenaDance:Emoji_S14_HighTowerTapas": 1 + }, + {}, + {}, + {}, + {}, + { + "AthenaMusicPack:MusicPack_056_S14_Cine": 1 + }, + {}, + {}, + {}, + {}, + { + "AthenaBackpack:BID_594_HightowerHoneydew": 1 + }, + {}, + {}, + {}, + {}, + { + "AthenaDance:Emoji_S14_HighTowerHoneyDew": 1 + }, + {}, + {}, + {}, + {}, + { + "AthenaItemWrap:Wrap_268_HightowerGrape": 1 + }, + {}, + {}, + {}, + { + "AthenaPickaxe:Pickaxe_ID_454_HightowerGrapeMale1H": 1 + }, + {}, + {}, + {}, + {}, + {}, + { + "AthenaDance:SPID_222_S14_HighTowerRadish": 1 + }, + {}, + {}, + {}, + {}, + { + "AthenaItemWrap:Wrap_271_HightowerSquash": 1 + }, + {}, + {}, + {}, + { + "Currency:mtxgiveaway": 100 + }, + {}, + {}, + {}, + {}, + {}, + { + "AthenaDance:SPID_223_S14_HighTowerSquash": 1 + }, + {}, + {}, + {}, + {}, + { + "BannerToken:BannerToken_056_S14_HighTowerDate": 1 + }, + {}, + {}, + {}, + {}, + { + "AthenaBackpack:BID_599_HightowerDate": 1 + }, + {}, + {}, + {}, + { + "AthenaLoadingScreen:LSID_246_HighTowerDate": 1 + }, + {}, + {}, + {}, + {}, + { + "BannerToken:BannerToken_059_S14_HighTowerMango": 1 + }, + {}, + {}, + {}, + {}, + {}, + {}, + { + "AthenaSkyDiveContrail:Trails_ID_097_HightowerSpeedlines": 1 + }, + {}, + {}, + {}, + {}, + {}, + {}, + { + "AthenaItemWrap:Wrap_273_HightowerTomato": 1 + }, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + { + "Currency:mtxgiveaway": 100 + }, + {} + ] + } + \ No newline at end of file diff --git a/responses/catalog.json b/responses/catalog.json index 9a6ef8b..715a8f1 100644 --- a/responses/catalog.json +++ b/responses/catalog.json @@ -3802,273 +3802,413 @@ } ] }, - { - "name": "BRSeason16", - "catalogEntries": [ - { - "offerId": "7A973F444663B3A522172FAE32751346", - "devName": "BR.Season16.BattlePass.01", - "offerType": "StaticPrice", - "prices": [ - { - "currencyType": "MtxCurrency", - "currencySubType": "", - "regularPrice": 950, - "dynamicRegularPrice": -1, - "finalPrice": 950, - "saleExpiration": "9999-12-31T23:59:59.999Z", - "basePrice": 950 - } - ], - "categories": [], - "dailyLimit": -1, - "weeklyLimit": -1, - "monthlyLimit": -1, - "refundable": false, - "appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""], - "requirements": [ - { - "requirementType": "DenyOnFulfillment", - "requiredId": "7A973F444663B3A522172FAE32751346", - "minQuantity": 1 - } - ], - "metaInfo": [ - { - "key": "Preroll", - "value": "False" - } - ], - "catalogGroup": "", - "catalogGroupPriority": 0, - "sortPriority": 1, - "title": "Battle Pass", - "shortDescription": "Chapter 2 - Season 6", - "description": "gasp", - "displayAssetPath": "/Game/Catalog/DisplayAssets/DA_BR_Season16_BattlePass.DA_BR_Season16_BattlePass", - "itemGrants": [] - }, - { - "offerId": "50558EA040438C481ACC59897D1B7AE4", - "devName": "BR.Season16.SingleTier.01", - "offerType": "StaticPrice", - "prices": [ - { - "currencyType": "MtxCurrency", - "currencySubType": "", - "regularPrice": 150, - "dynamicRegularPrice": -1, - "finalPrice": 150, - "saleExpiration": "9999-12-31T23:59:59.999Z", - "basePrice": 150 - } - ], - "categories": [], - "dailyLimit": -1, - "weeklyLimit": -1, - "monthlyLimit": -1, - "refundable": false, - "appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""], - "requirements": [], - "metaInfo": [ - { - "key": "Preroll", - "value": "False" - } - ], - "catalogGroup": "", - "catalogGroupPriority": 0, - "sortPriority": 0, - "title": "Battle Pass Level", - "shortDescription": "", - "description": "Get great rewards now!", - "displayAssetPath": "", - "itemGrants": [] - }, - { - "offerId": "87C3990F72DB42C2A6116D2F5C8CAC57", - "devName": "BR.Season16.BattleBundle.01", - "offerType": "StaticPrice", - "prices": [ - { - "currencyType": "MtxCurrency", - "currencySubType": "", - "regularPrice": 4700, - "dynamicRegularPrice": -1, - "finalPrice": 2800, - "saleType": "PercentOff", - "saleExpiration": "9999-12-31T23:59:59.999Z", - "basePrice": 2800 - } - ], - "categories": [], - "dailyLimit": -1, - "weeklyLimit": -1, - "monthlyLimit": -1, - "refundable": false, - "appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""], - "requirements": [ - { - "requirementType": "DenyOnFulfillment", - "requiredId": "87C3990F72DB42C2A6116D2F5C8CAC57", - "minQuantity": 1 - }, - { - "requirementType": "DenyOnItemOwnership", - "requiredId": "Token:athena_s16_nobattlebundleoption_token", - "minQuantity": 1 - } - ], - "metaInfo": [ - { - "key": "Preroll", - "value": "False" - } - ], - "catalogGroup": "", - "catalogGroupPriority": 0, - "sortPriority": 0, - "title": "Battle Bundle", - "shortDescription": "Battle Pass + 25 levels!", - "description": "", - "displayAssetPath": "/Game/Catalog/DisplayAssets/DA_BR_Season16_BattlePassWithLevels.DA_BR_Season16_BattlePassWithLevels", - "itemGrants": [] - } - ] - }, - { - "name": "BRSeason16", - "catalogEntries": [ - { - "offerId": "7A973F444663B3A522172FAE32751346", - "devName": "BR.Season16.BattlePass.01", - "offerType": "StaticPrice", - "prices": [ - { - "currencyType": "MtxCurrency", - "currencySubType": "", - "regularPrice": 950, - "dynamicRegularPrice": -1, - "finalPrice": 950, - "saleExpiration": "9999-12-31T23:59:59.999Z", - "basePrice": 950 - } - ], - "categories": [], - "dailyLimit": -1, - "weeklyLimit": -1, - "monthlyLimit": -1, - "refundable": false, - "appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""], - "requirements": [ - { - "requirementType": "DenyOnFulfillment", - "requiredId": "7A973F444663B3A522172FAE32751346", - "minQuantity": 1 - } - ], - "metaInfo": [ - { - "key": "Preroll", - "value": "False" - } - ], - "catalogGroup": "", - "catalogGroupPriority": 0, - "sortPriority": 1, - "title": "Battle Pass", - "shortDescription": "Chapter 2 - Season 6", - "description": "gasp", - "displayAssetPath": "/Game/Catalog/DisplayAssets/DA_BR_Season16_BattlePass.DA_BR_Season16_BattlePass", - "itemGrants": [] - }, - { - "offerId": "50558EA040438C481ACC59897D1B7AE4", - "devName": "BR.Season16.SingleTier.01", - "offerType": "StaticPrice", - "prices": [ - { - "currencyType": "MtxCurrency", - "currencySubType": "", - "regularPrice": 150, - "dynamicRegularPrice": -1, - "finalPrice": 150, - "saleExpiration": "9999-12-31T23:59:59.999Z", - "basePrice": 150 - } - ], - "categories": [], - "dailyLimit": -1, - "weeklyLimit": -1, - "monthlyLimit": -1, - "refundable": false, - "appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""], - "requirements": [], - "metaInfo": [ - { - "key": "Preroll", - "value": "False" - } - ], - "catalogGroup": "", - "catalogGroupPriority": 0, - "sortPriority": 0, - "title": "Battle Pass Level", - "shortDescription": "", - "description": "Get great rewards now!", - "displayAssetPath": "", - "itemGrants": [] - }, - { - "offerId": "87C3990F72DB42C2A6116D2F5C8CAC57", - "devName": "BR.Season16.BattleBundle.01", - "offerType": "StaticPrice", - "prices": [ - { - "currencyType": "MtxCurrency", - "currencySubType": "", - "regularPrice": 4700, - "dynamicRegularPrice": -1, - "finalPrice": 2800, - "saleType": "PercentOff", - "saleExpiration": "9999-12-31T23:59:59.999Z", - "basePrice": 2800 - } - ], - "categories": [], - "dailyLimit": -1, - "weeklyLimit": -1, - "monthlyLimit": -1, - "refundable": false, - "appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""], - "requirements": [ - { - "requirementType": "DenyOnFulfillment", - "requiredId": "87C3990F72DB42C2A6116D2F5C8CAC57", - "minQuantity": 1 - }, - { - "requirementType": "DenyOnItemOwnership", - "requiredId": "Token:athena_s16_nobattlebundleoption_token", - "minQuantity": 1 - } - ], - "metaInfo": [ - { - "key": "Preroll", - "value": "False" - } - ], - "catalogGroup": "", - "catalogGroupPriority": 0, - "sortPriority": 0, - "title": "Battle Bundle", - "shortDescription": "Battle Pass + 25 levels!", - "description": "", - "displayAssetPath": "/Game/Catalog/DisplayAssets/DA_BR_Season16_BattlePassWithLevels.DA_BR_Season16_BattlePassWithLevels", - "itemGrants": [] - } - ] - } + { + "name": "BRSeason14", + "catalogEntries": [ + { + "offerId": "6EFAD8A54BBFAF4F24FA17BFCA8A879E", + "devName": "BR.Season14.BattlePass.01", + "offerType": "StaticPrice", + "prices": [ + { + "currencyType": "MtxCurrency", + "currencySubType": "", + "regularPrice": 950, + "dynamicRegularPrice": -1, + "finalPrice": 950, + "saleExpiration": "9999-12-31T23:59:59.999Z", + "basePrice": 950 + } + ], + "categories": [], + "dailyLimit": -1, + "weeklyLimit": -1, + "monthlyLimit": -1, + "refundable": false, + "appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""], + "requirements": [], + "metaInfo": [ + { + "Key" : "SectionId", + "Value" : "BattlePass" + }, + { + "Key" : "TileSize", + "Value" : "DoubleWide" + }, + { + "Key" : "DisplayAssetPath", + "Value" : "/Game/Catalog/DisplayAssets/DA_BR_Season14_BattlePass.DA_BR_Season14_BattlePass" + }, + { + "Key" : "NewDisplayAssetPath", + "Value" : "/Game/Catalog/NewDisplayAssets/DAv2_BR_Season14_BattlePass.DAv2_BR_Season14_BattlePass" + } + ], + "catalogGroup": "", + "catalogGroupPriority": 0, + "sortPriority": 1, + "title": "Battle Pass", + "shortDescription": "Chapter 2 - Season 3", + "description": "gasp", + "displayAssetPath": "/Game/Catalog/DisplayAssets/DA_BR_Season14_BattlePass.DA_BR_Season14_BattlePass", + "itemGrants": [] + }, + { + "offerId": "461F34C046269604EAC31481F34BC405", + "devName": "BR.Season14.SingleTier.01", + "offerType": "StaticPrice", + "prices": [ + { + "currencyType": "MtxCurrency", + "currencySubType": "", + "regularPrice": 150, + "dynamicRegularPrice": -1, + "finalPrice": 150, + "saleExpiration": "9999-12-31T23:59:59.999Z", + "basePrice": 150 + } + ], + "categories": [], + "dailyLimit": -1, + "weeklyLimit": -1, + "monthlyLimit": -1, + "refundable": false, + "appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""], + "requirements": [], + "metaInfo": [ + { + "key": "Preroll", + "value": "False" + } + ], + "catalogGroup": "", + "catalogGroupPriority": 0, + "sortPriority": 0, + "title": "Battle Pass Level", + "shortDescription": "", + "description": "Get great rewards now!", + "displayAssetPath": "", + "itemGrants": [] + }, + { + "offerId": "CFD41EF842ABF9D3D84A84B0F717D900", + "devName": "BR.Season14.BattleBundle.01", + "offerType": "StaticPrice", + "prices": [ + { + "currencyType": "MtxCurrency", + "currencySubType": "", + "regularPrice": 2800, + "dynamicRegularPrice": -1, + "finalPrice": 950, + "saleType": "PercentOff", + "saleExpiration": "9999-12-31T23:59:59.999Z", + "basePrice": 950 + } + ], + "categories": [], + "dailyLimit": -1, + "weeklyLimit": -1, + "monthlyLimit": -1, + "refundable": false, + "appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""], + "requirements": [ + { + "requirementType": "DenyOnFulfillment", + "requiredId": "6EFAD8A54BBFAF4F24FA17BFCA8A879E", + "minQuantity": 1 + }, + { + "requirementType": "DenyOnItemOwnership", + "requiredId": "Token:athena_s14_nobattlebundleoption_token", + "minQuantity": 1 + } + ], + "metaInfo": [ + { + "key": "Preroll", + "value": "False" + } + ], + "catalogGroup": "", + "catalogGroupPriority": 0, + "sortPriority": 0, + "title": "Battle Bundle", + "shortDescription": "Battle Pass + 25 levels!", + "description": "bigger gasp", + "displayAssetPath": "/Game/Catalog/DisplayAssets/DA_BR_Season14_BattlePassWithLevels.DA_BR_Season14_BattlePassWithLevels", + "itemGrants": [] + } + ] + }, + { + "name": "BRSeason16", + "catalogEntries": [ + { + "offerId": "7A973F444663B3A522172FAE32751346", + "devName": "BR.Season16.BattlePass.01", + "offerType": "StaticPrice", + "prices": [ + { + "currencyType": "MtxCurrency", + "currencySubType": "", + "regularPrice": 950, + "dynamicRegularPrice": -1, + "finalPrice": 950, + "saleExpiration": "9999-12-31T23:59:59.999Z", + "basePrice": 950 + } + ], + "categories": [], + "dailyLimit": -1, + "weeklyLimit": -1, + "monthlyLimit": -1, + "refundable": false, + "appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""], + "requirements": [ + { + "requirementType": "DenyOnFulfillment", + "requiredId": "7A973F444663B3A522172FAE32751346", + "minQuantity": 1 + } + ], + "metaInfo": [ + { + "key": "Preroll", + "value": "False" + } + ], + "catalogGroup": "", + "catalogGroupPriority": 0, + "sortPriority": 1, + "title": "Battle Pass", + "shortDescription": "Chapter 2 - Season 6", + "description": "gasp", + "displayAssetPath": "/Game/Catalog/DisplayAssets/DA_BR_Season16_BattlePass.DA_BR_Season16_BattlePass", + "itemGrants": [] + }, + { + "offerId": "50558EA040438C481ACC59897D1B7AE4", + "devName": "BR.Season16.SingleTier.01", + "offerType": "StaticPrice", + "prices": [ + { + "currencyType": "MtxCurrency", + "currencySubType": "", + "regularPrice": 150, + "dynamicRegularPrice": -1, + "finalPrice": 150, + "saleExpiration": "9999-12-31T23:59:59.999Z", + "basePrice": 150 + } + ], + "categories": [], + "dailyLimit": -1, + "weeklyLimit": -1, + "monthlyLimit": -1, + "refundable": false, + "appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""], + "requirements": [], + "metaInfo": [ + { + "key": "Preroll", + "value": "False" + } + ], + "catalogGroup": "", + "catalogGroupPriority": 0, + "sortPriority": 0, + "title": "Battle Pass Level", + "shortDescription": "", + "description": "Get great rewards now!", + "displayAssetPath": "", + "itemGrants": [] + }, + { + "offerId": "87C3990F72DB42C2A6116D2F5C8CAC57", + "devName": "BR.Season16.BattleBundle.01", + "offerType": "StaticPrice", + "prices": [ + { + "currencyType": "MtxCurrency", + "currencySubType": "", + "regularPrice": 4700, + "dynamicRegularPrice": -1, + "finalPrice": 2800, + "saleType": "PercentOff", + "saleExpiration": "9999-12-31T23:59:59.999Z", + "basePrice": 2800 + } + ], + "categories": [], + "dailyLimit": -1, + "weeklyLimit": -1, + "monthlyLimit": -1, + "refundable": false, + "appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""], + "requirements": [ + { + "requirementType": "DenyOnFulfillment", + "requiredId": "87C3990F72DB42C2A6116D2F5C8CAC57", + "minQuantity": 1 + }, + { + "requirementType": "DenyOnItemOwnership", + "requiredId": "Token:athena_s16_nobattlebundleoption_token", + "minQuantity": 1 + } + ], + "metaInfo": [ + { + "key": "Preroll", + "value": "False" + } + ], + "catalogGroup": "", + "catalogGroupPriority": 0, + "sortPriority": 0, + "title": "Battle Bundle", + "shortDescription": "Battle Pass + 25 levels!", + "description": "", + "displayAssetPath": "/Game/Catalog/DisplayAssets/DA_BR_Season16_BattlePassWithLevels.DA_BR_Season16_BattlePassWithLevels", + "itemGrants": [] + } + ] + }, + { + "name": "BRSeason16", + "catalogEntries": [ + { + "offerId": "7A973F444663B3A522172FAE32751346", + "devName": "BR.Season16.BattlePass.01", + "offerType": "StaticPrice", + "prices": [ + { + "currencyType": "MtxCurrency", + "currencySubType": "", + "regularPrice": 950, + "dynamicRegularPrice": -1, + "finalPrice": 950, + "saleExpiration": "9999-12-31T23:59:59.999Z", + "basePrice": 950 + } + ], + "categories": [], + "dailyLimit": -1, + "weeklyLimit": -1, + "monthlyLimit": -1, + "refundable": false, + "appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""], + "requirements": [ + { + "requirementType": "DenyOnFulfillment", + "requiredId": "7A973F444663B3A522172FAE32751346", + "minQuantity": 1 + } + ], + "metaInfo": [ + { + "key": "Preroll", + "value": "False" + } + ], + "catalogGroup": "", + "catalogGroupPriority": 0, + "sortPriority": 1, + "title": "Battle Pass", + "shortDescription": "Chapter 2 - Season 6", + "description": "gasp", + "displayAssetPath": "/Game/Catalog/DisplayAssets/DA_BR_Season16_BattlePass.DA_BR_Season16_BattlePass", + "itemGrants": [] + }, + { + "offerId": "50558EA040438C481ACC59897D1B7AE4", + "devName": "BR.Season16.SingleTier.01", + "offerType": "StaticPrice", + "prices": [ + { + "currencyType": "MtxCurrency", + "currencySubType": "", + "regularPrice": 150, + "dynamicRegularPrice": -1, + "finalPrice": 150, + "saleExpiration": "9999-12-31T23:59:59.999Z", + "basePrice": 150 + } + ], + "categories": [], + "dailyLimit": -1, + "weeklyLimit": -1, + "monthlyLimit": -1, + "refundable": false, + "appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""], + "requirements": [], + "metaInfo": [ + { + "key": "Preroll", + "value": "False" + } + ], + "catalogGroup": "", + "catalogGroupPriority": 0, + "sortPriority": 0, + "title": "Battle Pass Level", + "shortDescription": "", + "description": "Get great rewards now!", + "displayAssetPath": "", + "itemGrants": [] + }, + { + "offerId": "87C3990F72DB42C2A6116D2F5C8CAC57", + "devName": "BR.Season16.BattleBundle.01", + "offerType": "StaticPrice", + "prices": [ + { + "currencyType": "MtxCurrency", + "currencySubType": "", + "regularPrice": 4700, + "dynamicRegularPrice": -1, + "finalPrice": 2800, + "saleType": "PercentOff", + "saleExpiration": "9999-12-31T23:59:59.999Z", + "basePrice": 2800 + } + ], + "categories": [], + "dailyLimit": -1, + "weeklyLimit": -1, + "monthlyLimit": -1, + "refundable": false, + "appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""], + "requirements": [ + { + "requirementType": "DenyOnFulfillment", + "requiredId": "87C3990F72DB42C2A6116D2F5C8CAC57", + "minQuantity": 1 + }, + { + "requirementType": "DenyOnItemOwnership", + "requiredId": "Token:athena_s16_nobattlebundleoption_token", + "minQuantity": 1 + } + ], + "metaInfo": [ + { + "key": "Preroll", + "value": "False" + } + ], + "catalogGroup": "", + "catalogGroupPriority": 0, + "sortPriority": 0, + "title": "Battle Bundle", + "shortDescription": "Battle Pass + 25 levels!", + "description": "", + "displayAssetPath": "/Game/Catalog/DisplayAssets/DA_BR_Season16_BattlePassWithLevels.DA_BR_Season16_BattlePassWithLevels", + "itemGrants": [] + } + ] + } ] } \ No newline at end of file diff --git a/xmpp/xmpp.js b/xmpp/xmpp.js index f471717..34062a8 100644 --- a/xmpp/xmpp.js +++ b/xmpp/xmpp.js @@ -11,6 +11,7 @@ const log = require("../structs/log.js"); const functions = require("../structs/functions.js"); const User = require("../model/user.js"); const Friends = require("../model/friends.js"); +const matchmaker = require("../matchmaker/matchmaker.js") const port = config.bEnableHTTPS ? 443 : 80; let wss;