Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var PageOn = 1
- var PageLimit = 20
- var RobuxLimit = 50
- function Go(){
- var BaseLink = "http://www.roblox.com/catalog/json?CatalogContext=1&Subcategory=2&Keyword=&CurrencyType=0&pxMin=0&pxMax=0&SortType=2&SortAggregation=0&LegendExpanded=true&Category=2&pageNumber="
- $.get(BaseLink + PageOn,function(Data){
- for (var Object in Data){
- function Loop(){
- var Info = Data[Object]
- var Id = Info["AssetId"]
- var Price = Info["BestPrice"]
- var Name = Info["Name"]
- if (RobuxLimit >= Price && Price) {
- function check(Id, price) {
- $.get("http://www.roblox.com/Item-item?id=" + Id).done(function(Data){
- var info = $($("<div>").html(Data.replace(/img/gi,"flip")).find('.ItemSalesTable tr')[0]).find('.PurchaseButton').data();
- var d = $($("<div>").html(Data.replace(/img/gi,"flip")).find('.ItemSalesTable tr')[1]).find('.PurchaseButton').data();
- if (info['expectedPrice'] <= Price) {
- var buy = "http://www.roblox.com/API/Item.ashx?rqtype=purchase&productID=" + info["productId"] + "&expectedCurrency=1&expectedPrice=" + info["expectedPrice"] + "&expectedSellerId=" + info["expectedSellerId"] + "&userAssetID=" + info["userassetId"];
- $.ajax({
- url: buy,
- type: "POST"
- });
- console.log("Bought " + info["itemName"] + " for " + info["expectedPrice"]);
- } else {
- console.log('Missed '+info['itemName']+'for '+price);
- }
- })
- }
- check(Id, Price)
- }
- }
- Loop()
- }
- }).always(function(){
- PageOn++
- if (PageOn == PageLimit){
- PageOn = 0
- }
- Go()
- })
- }
- Go()
- console.log("Snipe bot started!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement