Fixed Mini Reward Llama not opening on 7.30+

This commit is contained in:
PRO100KatYT
2022-02-02 15:48:52 +01:00
parent aea754cbcc
commit d1ca9167d6

View File

@@ -5407,14 +5407,50 @@ express.post("/fortnite/api/game/v2/profile/*/client/PurchaseCatalogEntry", asyn
} }
}) })
for (var i = 0; i < 10; i++) { if (value.templateId.toLowerCase() == "cardpack:cardpack_basic") {
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) {