Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Note: This works because these items have multiple products linked to them, and one of those products is still for sale.
- // Date: 2019-03-22
- var productIds = [
- "51119013", // Slime Cape
- "51119443", // Slime Sunglasses
- "45038518", // Festive Winter Shades
- // Still trying to find the Product ID for "Dog Man Virtual Book", will update once found
- ]
- productIds.forEach(function(productId) {
- $.ajax("https://economy.roblox.com/v1/purchases/products/"+productId, {
- method: "POST",
- headers: {"X-CSRF-TOKEN": Roblox.XsrfToken.getToken()},
- dataType: "json",
- data: {
- expectedCurrency: 0,
- expectedPrice: 0,
- expectedSellerId: 1
- },
- success: function(data) {
- if (data.purchased) {
- console.log("Bought", data.assetName)
- }
- }
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement