Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function buy(){
- var id = 20573078;
- var price = 75;
- $.get('https://www.roblox.com/catalog/' + id, function(data){
- var html = $(data);
- var bestprice = $('#item-container', html).attr('data-expected-price');
- var sellerid = $('#item-container', html).attr('data-expected-seller-id');
- var productid = $('#item-container', html).attr('data-product-id');
- var userasset = $('#item-container', html).attr('data-lowest-private-sale-userasset-id');
- if(bestprice <= price){
- $.ajax({
- type: "POST",
- url: "https://www.roblox.com/API/Item.ashx?rqtype=purchase&productID=" + productid + "&expectedCurrency=1&expectedPrice=" + bestprice + "&expectedSellerId=" + sellerid + "&userAssetID=" + userasset
- });
- console.log("Item Found For " + bestprice);
- }
- }).promise().done(buy);
- }
- console.log("Bot Started.");
- buy();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement