Advertisement
Guest User

Untitled

a guest
Aug 27th, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var IDs = []
  2. var PriceWanting = Number(prompt("Maximum robux?"))
  3. var url = ("/items/"+IDs)
  4.  
  5. var ifram = '<iframe id="frame" width="100%" height="100%" scrolling="no"></iframe>';
  6. document.write(ifram);
  7. var iframe = parent.document.getElementById("frame");
  8. iframe.height = 110;
  9. iframe.width = '100%';
  10.  
  11. var buys = -1;
  12. var answer = (buys) +1;
  13. var buys = (answer);
  14. document.title = ("Purchases: " + answer);
  15.  
  16. var inf = document.createElement('div');
  17. inf.style.fontSize = "18px";
  18. inf.style.background = "rgba(0,0,5,0)";
  19. inf.style.position = "absolute";
  20. inf.style.width = "85%";
  21. inf.style.height = "18pt";
  22. inf.innerText = "Purchased "+answer+" times and buying with a maximum price of "+PriceWanting+".";
  23. document.body.appendChild(inf);
  24.  
  25. var Loop = setInterval(function(){
  26. for (var Id in IDs) {
  27. var hatLink = "http://m.roblox.com/items/" + IDs[Id] + "/privatesales"
  28. $.get(hatLink,function(data){
  29. var Regex = /\<span class="currency-robux">([\d,]+)\<\/span\>/
  30. var PriceSelling = data.match(Regex)[1]
  31. PriceSelling = Number(PriceSelling.replace(",",""))
  32. if (PriceSelling <= PriceWanting) {
  33. var Regex2 = /<a href="\/Catalog\/VerifyTransfer\DuserAssetOptionId=([\d,]+)\Damp;expectedPrice=([\d,]+)">/
  34. var HatBuyId = data.match(Regex2)[1]
  35. var HatBuyLink = "http://m.roblox.com/Catalog/VerifyTransfer?userAssetOptionId=" + HatBuyId + "&expectedPrice=" + PriceSelling
  36. var Explorer = document.createElement('iframe');
  37. function Buy(){
  38. Explorer.contentDocument.forms[0].submit();
  39. var answer = (buys) +1;
  40. var buys = (answer);
  41. document.title = ("Purchases: " + answer);
  42. console.log("Item purchase complete, scanning again.")
  43. var inf = document.createElement('div');
  44. inf.style.fontSize = "18px";
  45. inf.style.background = "rgba(0,0,5,0)";
  46. inf.style.position = "absolute";
  47. inf.style.width = "100%";
  48. inf.style.height = "18pt";
  49. inf.innerText = "Bot currently running. Purchases: "+answer;
  50. document.body.appendChild(inf);
  51. };
  52. Explorer.onload = Buy;
  53. Explorer.width = "100%";
  54. Explorer.height = "85%";
  55. Explorer.src = HatBuyLink;
  56. document.body.innerHTML = "";
  57. document.body.appendChild(Explorer);
  58. }
  59. });
  60. }
  61. console.log("Bot started")
  62. },0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement