Advertisement
Rain99

Wanwood

Jan 12th, 2019
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.81 KB | None | 0 0
  1. function buy(){
  2.  
  3. var id = 2705893733;
  4. var price = 250;
  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