I have no idea about GM but I heard some scripts don't work on newer versions of FF or GM so try downgrading your browser+greasemonkey
Hey all, So i recently discovered Greasemonkey and I am in love BUT i am struggling to find a script that can autoplay Dice-A-Roo.
Im on a Mac so its impossible to use Stealthcore, so Greasemonkey is the best option.
Can anyone help with a script that will work? i found the following script. Not sure it's legit and it definitely doesn't work on my mozilla firefox, so if anyone can help me to get it work or provide advice, it would be much appreciated
Thanks!
GM_addStyle(GM_getResourceText("winConfigDiceARooC ss"));
(function () {
var win = new WinConfig({
title : "Dice-A-Roo Settings",
type : WinConfig.WindowType.CUSTOM,
size : ["350px", 0],
load : function (cfg) {
options = cfg.group;
},
default : {
group : {
stop : {
dice : 0x30, // silver | jackpot
turn : -1,
time : -1,
amount : -1,
},
interval: {
min : 1000,
rnd : 1500,
},
reset : 0x02 | 0x04, // turn + time
},
},
fields : [{
name : "settingsHotKey",
label : "Settings HotKey",
key : "hotkey",
callback: function(event, win) {
win.open();
},
}, {
name : "group",
nogroup : true,
type : WinConfig.FieldType.GROUP,
fields : [{
name : "stop",
label : "Stop",
type : WinConfig.FieldType.GROUP,
fields : [{
name : "turn",
label : "Turn",
format : WinConfig.FieldFormat.NUMBER,
// description : "",
// help : true,
empty : -1,
}, {
name : "time",
label : "Time",
format : WinConfig.FieldFormat.NUMBER,
// description : "",
// help : true,
empty : -1,
}, {
name : "amount",
label : "Amount",
format : WinConfig.FieldFormat.NUMBER,
// description : "",
// help : true,
empty : -1,
}, {
name : "dice",
label : "Dice",
type : WinConfig.FieldType.CHECK,
format : WinConfig.FieldFormat.NUMBER,
multiple: true,
unique : true,
empty : 0,
value : [{
value : 0x01,
label : "Red",
}, {
value : 0x02,
label : "Blue",
}, {
value : 0x04,
label : "Green",
}, {
value : 0x08,
label : "Yellow",
}, {
value : 0x10,
label : "Silver",
}, {
value : 0x20,
label : "Jackpot",
}],
}],
}, {
name : "reset",
label : "Reset",
type : WinConfig.FieldType.CHECK,
format : WinConfig.FieldFormat.NUMBER,
multiple: true,
unique : true,
empty : 0,
value : [{
value : 0x02,
label : "Turn",
// help : true,
}, {
value : 0x04,
label : "Time",
// help : true,
}, {
value : 0x10,
label : "Amount",
// help : true,
}, {
value : 0x01,
label : "Dice",
// help : true,
}],
}, {
name : "interval",
label : "Interval",
type : WinConfig.FieldType.GROUP,
fields : [{
name : "min",
label : "Minimum",
format : WinConfig.FieldFormat.NUMBER,
// description : "The minimum value of time between steps.<br /><sup><i>Time in miliseconds</i></sup>",
empty : 0,
// help : true,
}, {
name : "rnd",
label : "Random",
format : WinConfig.FieldFormat.NUMBER,
// description : "The random value of time between steps.<br />This value is multiplied by a random value between 0-1 and added to the minimum value.<br /><sup><i>Time in miliseconds</i></sup>",
empty : 0,
// help : true,
}],
}],
}],
}),
options = win.get("group");
RandomEvents.title = "Random Events : Dice-A-Roo";
RandomEvents.location = location.pathname;
if (options) {
var opt_props = ["Dice", "Turn", "Time", "Jackpot", "Amount"],
dice = ["red", "blue", "green", "yellow", "silver", "silver5"],
last = {turn : 0, time : new Date()},
stats = ["happy_green", "sad_blue", "happy_blue"],
wait;
window.addEventListener("keypress", function (e) {
switch (e.keyCode) {
case 27:
console.log("Force Stop!");
window.clearTimeout(wait);
break;
}
}, false);
window.addEventListener("unload", function (e) {
window.clearTimeout(wait);
}, false);
(function recursive (obj) {
var btn = xpath(".//td[@class = 'content']//div[2]//form//input[@type = 'submit']");
if (btn.length) {
var iff,options_tmp = {
dice : /\/dice\/((\D+)\d+)/.test(xpath("string(.//td[@class = 'content']//div/center/img[1][not(following-sibling::img[1]) and contains(@src, '/games/dice/')]/@src)")) && [(~(iff = dice.indexOf(RegExp.$1))?iff:dice.indexOf(RegExp.$ 2)), RegExp.$1] || [-1, undefined],
amount : btn.length > 1 && parseInt(btn[1].value.replace(/[,.]+/g, "").match(/\d+/), 10) || 0,
stat : ~(/\/(\w+)\/blumaroo_(\w+)_/.test(xpath("string(.//td[@class = 'content']//div/center/img[contains(@src, '_baby.gif')]/@src)")) && ~stats.indexOf(RegExp.$1 + "_" + RegExp.$2) || 0),
turn : last.turn,
},
sf = function (f) {
var data = {};
for each (var e in Array.prototype.slice.apply(f.elements)) {
data[e.name] = e.value;
}
HttpRequest.open({
method : f.method,
url : f.action,
headers : {
Referer : obj.referer,
},
onsuccess : function (xhr) {
RandomEvents.process({
document : xhr.response.xml,
});
var module = xpath(".//td[@class = 'content']//div[@class = 'frame']")[0],
nmodule = xpath(".//td[@class = 'content']//div[@class = 'frame']", xhr.response.xml)[0];
if (nmodule) {
module.parentNode.replaceChild(nmodule, module);
}
recursive({
referer : xhr.response.raw.finalUrl,
});
},
}).send(data);
},
sel = function (e) {
window.clearTimeout(wait);
e.preventDefault();
e.stopPropagation();
console.log("Reprocessing...");
sf(e.target);
},
stop = -1,
delta = {
time : new Date() - last.time
};
for each (var f in btn) {
f.form.addEventListener("submit", sel, false);
}
// collect 0 /pets/happy/blumaroo_green_baby.gif
// lose 1 /pets/sad/blumaroo_blue_baby.gif
// jackpot 2 /pets/happy/blumaroo_blue_baby.gif
switch (options_tmp.stat) {
case 1:
++options_tmp.turn;
break;
}
console.log(options_tmp.stat, options_tmp.dice[0], options_tmp.turn, delta.time, options_tmp.amount);
if ((~options.stop.dice && ~options_tmp.dice[0] && ((1 << options_tmp.dice[0]) & options.stop.dice) && last.dice && options_tmp.dice[0] != last.dice[0] && ~(stop = 0)) ||
(~options.stop.turn && options_tmp.turn >= options.stop.turn && options_tmp.turn != last.turn && (stop = 1)) ||
(~options.stop.time && delta.time >= options.stop.time && (stop = 2)) ||
(~options.stop.amount && options_tmp.amount >= options.stop.amount && options_tmp.amount > last.amount && (stop = 3))) {
alert("Stop! (" + opt_props[stop] + ")");
switch ((1 << stop) & options.reset) {
case 0x01: // dice
--options_tmp.dice[0];
break;
case 0x02: // turn
options_tmp.turn = 0;
break;
case 0x04: // time
last.time = new Date();
break;
case 0x08: //amount
options_tmp.amount = 0;
break;
}
} else {
wait = window.setTimeout(sf, options.interval.min + Math.floor(options.interval.rnd * Math.random()), btn[0].form);
}
last.dice = options_tmp.dice;
last.turn = options_tmp.turn;
last.amount = options_tmp.amount;
}
}({
referer : location.href,
}));
}
}());
I have no idea about GM but I heard some scripts don't work on newer versions of FF or GM so try downgrading your browser+greasemonkey
Last edited by Daviid; 01-11-2016 at 04:26 PM.
Use the 1.15 version of gm
Sent from my SGH-I747M using Tapatalk
Ok, well since I don't know what to do...
If anything, this script might help you: (you need an account to see links)
It moves the "Roll Again" button to the top in the same spot, so maybe if you have an auto clicker, pull that out and let it click every 3 seconds...
Another thing you could do is have a rapid auto clicker (RapidClick from the AppStore clicks at a rate of 20 clicks/second) and just spam the "Roll Again" button. It worked for me, though I never won Jackpot with it, but I let it rapid click for 15 seconds, move my cursor away, click the button again for another 15 seconds, repeat maybe 5 more times, and then my pet gets bored. I look in my inventory and I see items I won from playing Dice-a-roo.
One last thing, (you need an account to see links) . I am such a noob when it comes to programming. I tried working this but it said I was missing module pyCurl or something. If you can figure it out, great IDK how safe or reliable it is, so I personally would not recommend it... but it's up to you.
Anyways, best of luck and I'm sorry I couldn't come up with anything brighter aha. I'm sure one of the awesome and genius programmers on here will save the day!
Last edited by Atlas; 01-11-2016 at 08:03 PM.
Bela Lugosi (01-16-2016)
Basically presses the buttons for you, just open the dice-a-roo page
If you can get someone to add a random/custom delay that'd be cool
(you need an account to see links)
(you need an account to see links)
(you need an account to see links)
(you need an account to see links)
"Date et dabitur vobis"
「Let's fight 恐れはない」
A (01-14-2016),Bela Lugosi (01-16-2016)tl a s
awesome, the script above works fantastic , If i use it it for short periods the lack custom delay shouldn't matter should it?
I've been using that script for a while, got frozen, but for a completely different reason
(you need an account to see links)
(you need an account to see links)
(you need an account to see links)
(you need an account to see links)
"Date et dabitur vobis"
「Let's fight 恐れはない」
why did you frozen?!
(you need an account to see links)
(you need an account to see links)
(you need an account to see links)
(you need an account to see links)
"Date et dabitur vobis"
「Let's fight 恐れはない」