Merge pull request #59 from PRO100KatYT/main

pull request.
This commit is contained in:
Lawin0129
2022-02-02 17:08:23 +00:00
committed by GitHub
2 changed files with 75 additions and 56 deletions

View File

@@ -5407,14 +5407,50 @@ express.post("/fortnite/api/game/v2/profile/*/client/PurchaseCatalogEntry", asyn
} }
}) })
for (var i = 0; i < 10; i++) { if (req.body.currencySubType.toLowerCase() == "accountresource:voucher_basicpack") {
const randomNumber = Math.floor(Math.random() * ItemIDS.length); Notifications[0].lootResult.items.push({
const id = makeid(); "itemType": value.templateId,
"itemGuid": ID,
MultiUpdate[0].profileChanges.push({ "itemProfile": "campaign",
"changeType": "itemAdded", "attributes": {
"itemId": id, "pack_source": "Store"
"item": { },
"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], "templateId": ItemIDS[randomNumber],
"attributes": { "attributes": {
"last_state_change_time": "2017-08-29T21:05:57.087Z", "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 "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) {
if (campaign.items[ID].quantity == 1) { delete campaign.items[ID]
delete campaign.items[ID]
MultiUpdate[0].profileChanges.push({
MultiUpdate[0].profileChanges.push({ "changeType": "itemRemoved",
"changeType": "itemRemoved", "itemId": ID
"itemId": ID })
}) }
} }
if (true) { if (true) {

View File

@@ -1221,25 +1221,10 @@
{ {
"hidden": false, "hidden": false,
"_type": "CommonUI Simple Message Base", "_type": "CommonUI Simple Message Base",
"subgame": "br",
"title": "LawinServer", "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 "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", "_title": "emergencynotice",
@@ -1249,6 +1234,27 @@
"lastModified": "2019-10-29T22:32:52.686Z", "lastModified": "2019-10-29T22:32:52.686Z",
"_locale": "en-US" "_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": { "koreancafe": {
"_title": "KoreanCafe", "_title": "KoreanCafe",
"cafe_info": { "cafe_info": {