mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 02:42:22 +01:00
Fixed Mini Reward Llama not opening on 7.30+
This commit is contained in:
93
index.js
93
index.js
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user