Still working on the same thing, trying to find out how to get info from the marketplace.
Here’s what I’m trying to do -
The current price of Breezekreig adventurer is R$ 1400 (as of this writing), I want to get the price of the collectible hat through a script, I’m using MarketplaceService:GetProductInfo() for this:
function GetAccessory(id)
local Asset = game:GetService("MarketplaceService"):GetProductInfo(id)
workspace.Accessory.SurfaceGui.Frame.Accessory1.ImageLabel.Image = 'https://www.roblox.com/asset-thumbnail/image?assetId=' .. id .. '&width=420&height=420&format=png'
print(Asset.Name .. " :: " .. Asset.Description)
print(Asset.IsLimited)
print(Asset.PriceInRobux) -- Prints out nil
end
GetAccessory(144302847)
The asset id i’ve given is the breezekreig adventurer’s id, I can confirm this because all the other 2 prints work fine:
12:19:03.971 BreezeKreig Adventurer :: You collected 1000 snow patches in BreezeKreig to land yourself this cool hat! - Server - Coroutine:5
12:19:03.971 true - Server - Coroutine:6
The expected price in robux is R$ 1400, but it returned nil instead. What do I do? Is PriceInRobux deprecated or?
You’re right, that seems to be the case. I’ve tried it on the “Beautiful Hair for Beautiful People” accessory and it prints out 95 (which is the exact price) instead of nil, Are there any solutions to this that you know about?
You could use roblox’s catalog API to request the item and look at the BestPrice (this is for limiteds only) but it seems to return empty no matter what.
You could either make a table containing all the limiteds prices which would take a ton of time, or learn about HTTP Service and use Rolimons to track the limiteds RAP and Value.
Alright thanks! That worked just fine! Sorry I can’t give you the solution mark cause I’ve already given it to the other guy, I’ll leave you a heart though!