Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INSTRUCTIONS:
- Get the Developer Console
- Go on the Console
- Paste the script in and enter it
- Enter the product id within the prompt
- Enter the max item cost and the minimum cost.
- Enjoy!
- var product = prompt("Please enter the product ID of the item");
- var itemCostMax = prompt("Please enter the most you are willing to spend for this item");
- var itemCostMin = prompt("Please enter the lowest amount you want to target \r\n Please make this number realistic to avoid a long runtime");
- var stop = "22";
- var incPrice = itemCostMin;
- function buyItem(target) {
- $.post("http://www.roblox.com/API/Item.ashx?rqtype=purchase&productID=" + target + "&expectedCurrency=2&expectedPrice=" + incPrice + "&expectedSellerID=1", {}).complete(function() {
- console.log("Request Sent!");
- });
- }
- function priceChange() {
- if (incPrice > itemCostMax) {
- incPrice = itemCostMin;
- } else {
- incPrice++;
- }
- }
- function Loop() {
- setInterval(function() {
- buyItem(product);
- priceChange();
- if (i < stop.length) {
- Loop();
- } else {
- alert("[OPERATION CANCELLED] ");
- }
- },
- 350);
- }
- Loop();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement