Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var IDs = []
- var PriceWanting = Number(prompt("Maximum robux?"))
- var url = ("/items/"+IDs)
- var ifram = '<iframe id="frame" width="100%" height="100%" scrolling="no"></iframe>';
- document.write(ifram);
- var iframe = parent.document.getElementById("frame");
- iframe.height = 110;
- iframe.width = '100%';
- var buys = -1;
- var answer = (buys) +1;
- var buys = (answer);
- document.title = ("Purchases: " + answer);
- var inf = document.createElement('div');
- inf.style.fontSize = "18px";
- inf.style.background = "rgba(0,0,5,0)";
- inf.style.position = "absolute";
- inf.style.width = "85%";
- inf.style.height = "18pt";
- inf.innerText = "Purchased "+answer+" times and buying with a maximum price of "+PriceWanting+".";
- document.body.appendChild(inf);
- var Loop = setInterval(function(){
- for (var Id in IDs) {
- var hatLink = "http://m.roblox.com/items/" + IDs[Id] + "/privatesales"
- $.get(hatLink,function(data){
- var Regex = /\<span class="currency-robux">([\d,]+)\<\/span\>/
- var PriceSelling = data.match(Regex)[1]
- PriceSelling = Number(PriceSelling.replace(",",""))
- if (PriceSelling <= PriceWanting) {
- var Regex2 = /<a href="\/Catalog\/VerifyTransfer\DuserAssetOptionId=([\d,]+)\Damp;expectedPrice=([\d,]+)">/
- var HatBuyId = data.match(Regex2)[1]
- var HatBuyLink = "http://m.roblox.com/Catalog/VerifyTransfer?userAssetOptionId=" + HatBuyId + "&expectedPrice=" + PriceSelling
- var Explorer = document.createElement('iframe');
- function Buy(){
- Explorer.contentDocument.forms[0].submit();
- var answer = (buys) +1;
- var buys = (answer);
- document.title = ("Purchases: " + answer);
- console.log("Item purchase complete, scanning again.")
- var inf = document.createElement('div');
- inf.style.fontSize = "18px";
- inf.style.background = "rgba(0,0,5,0)";
- inf.style.position = "absolute";
- inf.style.width = "100%";
- inf.style.height = "18pt";
- inf.innerText = "Bot currently running. Purchases: "+answer;
- document.body.appendChild(inf);
- };
- Explorer.onload = Buy;
- Explorer.width = "100%";
- Explorer.height = "85%";
- Explorer.src = HatBuyLink;
- document.body.innerHTML = "";
- document.body.appendChild(Explorer);
- }
- });
- }
- console.log("Bot started")
- },0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement