Results 1 to 9 of 9

Thread: Dice A Roo Autoplayer

  1. #1
    Bela Lugosi's Avatar
    Joined
    Sep 2015
    Posts
    319
    Userbars
    9
    Thanks
    86
    Thanked
    65/50
    DL/UL
    61/0
    Mentioned
    29 times
    Time Online
    17d 21h 31m
    Avg. Time Online
    8m

    Dice A Roo Autoplayer

    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,
    }));
    }
    }());

  2. #2

    Joined
    Jul 2012
    Posts
    1,888
    Thanks
    1,619
    Thanked
    3,297/1,003
    DL/UL
    223/0
    Mentioned
    469 times
    Time Online
    132d 23h 52m
    Avg. Time Online
    45m
    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.

  3. #3
    zxzero's Avatar
    Joined
    Dec 2011
    Posts
    29
    Userbars
    2
    Thanks
    1,490
    Thanked
    1,020/472
    DL/UL
    169/0
    Mentioned
    273 times
    Time Online
    56d 5h 29m
    Avg. Time Online
    19m
    Use the 1.15 version of gm

    Sent from my SGH-I747M using Tapatalk

  4. #4
    Atlas's Avatar
    Joined
    Jun 2013
    Posts
    260
    Userbars
    6
    Thanks
    668
    Thanked
    430/149
    DL/UL
    67/8
    Mentioned
    123 times
    Time Online
    27d 4h 44m
    Avg. Time Online
    9m
    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.

  5. The Following User Says Thank You to Atlas For This Useful Post:

    Bela Lugosi (01-16-2016)

  6. #5
    Accelerator's Avatar
    Joined
    Jul 2013
    Posts
    4,995
    Userbars
    26
    Thanks
    1,986
    Thanked
    3,789/1,696
    DL/UL
    178/0
    Mentioned
    744 times
    Time Online
    335d 1h 18m
    Avg. Time Online
    2h 2m

    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 quantum supercomputer calculating for a thousand years could not even approach the number of f��ks I do not give"

    「君が望むモノは何?」

  7. The Following 2 Users Say Thank You to Accelerator For This Useful Post:

    Atlas (01-14-2016),Bela Lugosi (01-16-2016)

  8. #6
    Bela Lugosi's Avatar
    Joined
    Sep 2015
    Posts
    319
    Userbars
    9
    Thanks
    86
    Thanked
    65/50
    DL/UL
    61/0
    Mentioned
    29 times
    Time Online
    17d 21h 31m
    Avg. Time Online
    8m
    awesome, the script above works fantastic , If i use it it for short periods the lack custom delay shouldn't matter should it?

  9. #7
    Accelerator's Avatar
    Joined
    Jul 2013
    Posts
    4,995
    Userbars
    26
    Thanks
    1,986
    Thanked
    3,789/1,696
    DL/UL
    178/0
    Mentioned
    744 times
    Time Online
    335d 1h 18m
    Avg. Time Online
    2h 2m
    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 恐れはない」


    "A quantum supercomputer calculating for a thousand years could not even approach the number of f��ks I do not give"

    「君が望むモノは何?」

  10. #8
    Bela Lugosi's Avatar
    Joined
    Sep 2015
    Posts
    319
    Userbars
    9
    Thanks
    86
    Thanked
    65/50
    DL/UL
    61/0
    Mentioned
    29 times
    Time Online
    17d 21h 31m
    Avg. Time Online
    8m
    why did you frozen?!

  11. #9
    Accelerator's Avatar
    Joined
    Jul 2013
    Posts
    4,995
    Userbars
    26
    Thanks
    1,986
    Thanked
    3,789/1,696
    DL/UL
    178/0
    Mentioned
    744 times
    Time Online
    335d 1h 18m
    Avg. Time Online
    2h 2m
    Quote Originally Posted by belalugoisi View Post
    why did you frozen?!
    Bilge Dice & CC.

    (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 quantum supercomputer calculating for a thousand years could not even approach the number of f��ks I do not give"

    「君が望むモノは何?」

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •