Advertisement
Guest User

Roblox Limited Sniper

a guest
Jun 5th, 2017
1,881
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function buy(){
  2.     var id = 20573078;
  3.     var price = 75;
  4.    
  5.     $.get('https://www.roblox.com/catalog/' + id, function(data){
  6.         var html = $(data);
  7.         var bestprice = $('#item-container', html).attr('data-expected-price');
  8.         var sellerid = $('#item-container', html).attr('data-expected-seller-id');
  9.         var productid = $('#item-container', html).attr('data-product-id');
  10.         var userasset = $('#item-container', html).attr('data-lowest-private-sale-userasset-id');
  11.            
  12.         if(bestprice <= price){
  13.             $.ajax({
  14.               type: "POST",
  15.               url: "https://www.roblox.com/API/Item.ashx?rqtype=purchase&productID=" + productid + "&expectedCurrency=1&expectedPrice=" + bestprice + "&expectedSellerId=" + sellerid + "&userAssetID=" + userasset
  16.             });
  17.             console.log("Item Found For " + bestprice);
  18.         }
  19.     }).promise().done(buy);
  20. }
  21.  
  22. console.log("Bot Started.");
  23. buy();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement