Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Neopets : Avatars Flash Games (Greasemonkey based score sender)

  1. #1

    Join Date
    Jan 2012
    Gender
    Posts
    4
    Thanks
    0
    Thanked 2 Times in 1 Post


    Downloads
    0
    Uploads
    0
    Mentioned
    9 Post(s)
    Time Online
    1 h 28 m
    Avg. Time Online
    N/A
    Rep Power
    0

    Neopets : Avatars Flash Games (Greasemonkey based score sender)

    I'll be starting the first greasemonkey userscript thread hahaha..

    One of the best script by w35l3y


    http://userscripts.org/scripts/show/66139

    Script Summary: Displays Avatars Flash Games and lets us to send score automatically

    Version: 2.0.5.5

    Copyright: 2011+, w35l3y (http://gm.wesley.eti.br)

    License: GNU GPL

    Basically, you will see some new symbols at the game page. You just need to click those and send scores according to the steps. You will also need to solve a simple captcha.

    You can modify for other games by editing the Game ID.

    This is a SCORE SENDER but basically for avatars only so the time is quite safe and takes longer when compared to when using score sending programs which we tend to set a lower time since we are doing in bulk.

    Source:

    // ==UserScript==
    // @name Neopets : Avatars Flash Games
    // @namespace http://gm.wesley.eti.br/neopets
    // @description Displays Avatars Flash Games and lets us to send score automatically
    // @author w35l3y
    // @email w35l3y@brasnet.org
    // @copyright 2011+, w35l3y (http://gm.wesley.eti.br)
    // @license GNU GPL
    // @homepage http://gm.wesley.eti.br
    // @version 2.0.5.5
    // @language en
    // @include http://www.neopets.com/games/play.phtml?game_id=*
    // @resource meta http://userscripts.org/scripts/source/66139.meta.js
    // @resource i18n http://pastebin.com/download.php?i=ULrVTsSg
    // @require http://pastebin.com/download.php?i=BjjHSA30
    // @require http://userscripts.org/scripts/source/85450.user.js
    // @require http://userscripts.org/scripts/source/56489.user.js
    // @require http://userscripts.org/scripts/source/54389.user.js
    // @require http://userscripts.org/scripts/source/54987.user.js
    // @require http://userscripts.org/scripts/source/69584.user.js
    // @require http://userscripts.org/scripts/source/85618.user.js
    // @require http://userscripts.org/scripts/source/87940.user.js
    // @require http://userscripts.org/scripts/source/63808.user.js
    // @require http://userscripts.org/scripts/source/66138.user.js
    // @require http://userscripts.org/scripts/source/87942.user.js
    // @require http://pastebin.com/download.php?i=56rbREE3
    // @history 2.0.5.5 Updated @require#66138,#87940
    // @history 2.0.5.4 Updated @require#66138
    // @history 2.0.5.3 Updated @require#66138
    // @history 2.0.5.2 Updated required files
    // @history 2.0.5.1 Updated @require#66138
    // @history 2.0.5.0 Updated @require#66138
    // @history 2.0.4.3 Changed some ratio_time and removed random_time
    // @history 2.0.4.2 Fx 4 bug fixes
    // @history 2.0.4.1 Added an example of non-avatar game (id=970)
    // @history 2.0.4.0 Fixed bug in @require#69584
    // @history 2.0.3.5 Sorted list of games by id
    // ==/UserScript==

    /************************************************** ************************

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program. If not, see <http://www.gnu.org/licenses/>.

    ************************************************** ************************/

    //GM_setValue("cached_includes", 0); // 0,1,2
    //GM_setValue("call_url", false);

    (function () { // script scope
    var games = {
    // "id" : [min_score, rnd_score, mod_score, ratio_time, avatar_gif, avatar_name],
    // + non-avatar games
    "970" : [345, 860, 1, 164],
    // + avatar games
    "149" : [250, 33, 1, 2322, "kacheek06.gif", "Kacheek - Herder"],
    "159" : [1000, 875, 1, 589, "gadsgadsgame.gif", "Gadgadsgame"],
    "197" : [1220, 260, 1, 483, "efmcdraik.gif", "Draik - Escape from Meridell Castle"],
    "198" : [2250, 746, 1, 159, "donna_wasm.gif", "Revenge is Sweet"],
    "204" : [700, 89, 1, 347, "acezafara.gif", "Ace Zafara"],
    "212" : [1100, 7, 10, 556, "gtu.gif", "Grand Theft Ummagine"],
    "226" : [200, 19, 1, 1469, "extremepotato.gif", "Extreme Potato Counter"],
    "228" : [250, 12, 10, 1673, "petpetrescue.gif", "Petpet Rescue"],
    "230" : [1200, 451, 1, 492, "evileliv.gif", "Evil Eliv Thade"],
    "248" : [800, 358, 1, 721, "maraquanraider.gif", "Raider Of Maraqua"],
    "306" : [2000, 1215, 1, 226, "sutekstomb.gif", "Suteks Tomb"],
    "307" : [300, 224, 1, 1543, "techobuzz.gif", "Techo - The Buzzer Game"],
    "315" : [800, 12, 10, 1743, "myncispike.gif", "Spike It!"],
    "358" : [2000, 265, 1, 301, "faeriebubbles.gif", "Faerie Bubbles"],
    "379" : [3500, 215, 1, 239, "ahhhhmeepit.gif", "A Meepit! Run!"],
    "381" : [850, 149, 1, 37, "whackedkass.gif", "Whack-a-Kass"],
    "390" : [1250, 586, 1, 707, "ff_yoinked.gif", "Freaky Factory - Yoinked"],
    "412" : [5000, 1245, 1, 101, "snowmuncher.gif", "Snowmuncher"],
    "428" : [2500, 265, 5, 364, "petpetsitter.gif", "Petpetsitter"],
    "500" : [1250, 451, 1, 691, "meercachase.gif", "Meerca Chase"],
    "507" : [14500, 121, 5, 83, "icecreammachine.gif", "Ice Cream Machine"],
    "538" : [1000, 194, 1, 758, "jellyprocessing.gif", "Skeith - Jelly Processing Plant"],
    "539" : [1300, 141, 1, 404, "chiabomber.gif", "Chia Bomber"],
    "540" : [3000, 241, 1, 326, "meepvsfeep.gif", "Meepit Vs Feepit"],
    "544" : [10000, 881, 1, 102, "grundo_snowthrow.gif", "Grundo - Snowthrow!"],
    "574" : [3600, 123, 1, 149, "typingterror.gif", "Typing Terror"],
    "645" : [250, 14, 1, 2734, "florg.gif", "Chia - Florg"],
    "761" : [1500, 21, 1, 359, "volcanorun.gif", "Volcano Run"],
    "763" : [3500, 454, 1, 241, "magax.gif", "Magax: Destroyer"],
    "772" : [2500, 111, 5, 234, "smuggleddubloon.gif", "Smuggler's Dubloon"],
    "801" : [9050, 34, 10, 133, "freakedkorbat.gif", "Freaked Korbat"],
    "852" : [1200, 358, 1, 491, "deckswabber.gif", "Deckswabber"],
    "885" : [7530, 16, 10, 109, "mathsbabaa.gif", "Babaa - Maths Nightmare"],
    "902" : [725, 103, 1, 467, "carnival_terror.gif", "Carnival of Terror"],
    "903" : [100, 30, 1, 2415, "bullseye.gif", "Turtum"],
    "999" : [2500, 230, 1, 237, "destructomatch2.gif", "Destruct-O-Match II"],
    "1042": [2250, 19, 10, 398, "mutantgravedoom.gif", "Mutant Graveyard of Doom II"],
    "1048": [4000, 24, 10, 301, "nimmospond.gif", "Nimmos Pond"]
    },
    id = location.search.match(/\bgame_id=(\d+)/)[1],
    cat = xpath("id('cat_images_container')/div[position()=last()]")[0];

    if (id in games && cat) {
    var ava = document.createElement("div"),
    span = [document.createElement("span"), document.createElement("span")];
    ava.setAttribute("class", "cat_image");
    if (games[id][4] === null)
    games[id][4] = "http://images.neopets.com/games/clicktoplay/tm_"+id+".gif";
    else if (!games[id][4])
    games[id][4] = "default.gif";
    if (!/^\w+:\//.test(games[id][4]))
    games[id][4] = "http://images.neopets.com/neoboards/avatars/" + games[id][4];
    if (games[id][5] === null)
    games[id][5] = xpath("string(id('gamesRoomContentWrap')//div[@class='rcModuleHeaderContent']/div[last()])");
    ava.innerHTML = "<a class='info' href='javascript:void(0);'><img width='50' border='0' height='50' src='" + games[id][4] + "' />" + (games[id][5] ? "<span class='cat_tooltip'>" + games[id][5] + "</span>" : "") + "</a>";
    cat.parentNode.insertBefore(ava, cat.nextSibling);
    ava.parentNode.insertBefore(span[1], ava.nextSibling); // time
    ava.parentNode.insertBefore(span[0], span[1]); // score

    xpath(".//a/img", ava)[0].addEventListener("error", function(e) {
    e.target.src = "http://images.neopets.com/neoboards/avatars/default.gif";
    }, false);
    xpath(".//a", ava)[0].addEventListener("click", function(e) {
    var t,
    game = games[id],
    s = game[0] + Math.floor(game[1] * game[2] * Math.random()),
    s = parseInt(prompt(I18n.get("npafg.score.prompt") + " " + game[0] + "+)", s - s % game[2]), 10)||0;
    s -= s % game[2]; // mod

    if (s > 0 && (t = parseInt(prompt(I18n.get("npafg.time.prompt"), Math.floor(s * game[3] * (1 + 0.2 * Math.random()))), 10)||0) > 0)
    FlashGame.execute({
    "params" : {
    "span" : span
    },
    "id" : id,
    "score" : [s, 0, 1],
    "time" : [t, 0],
    "session" : true,
    "autosend" : false,
    "continue" : function(p) {
    p.params.span[0].innerHTML = p.s + "<br />";
    p.params.span[1].textContent = "";

    (function (span, timer, p) {
    var i = timer.current(true);
    if (!span.textContent.length || span.textContent.indexOf(":") > -1)
    if (i < 1000) {
    span.textContent = I18n.get("npafg.wait.label");
    p.next(p);
    } else {
    span.textContent = timer.toString();

    if (/^(?:20|10|3|2|1)$/.test(Math.floor(i/1000)) && p.beep.play) {
    p.beep.play();
    }

    setTimeout(arguments.callee, 1000, span, timer, p);
    }
    })(p.params.span[1], new Timer(new Date().valueOf() + p.t), p);

    document.body.setAttribute("onbeforeunload", "return '" + I18n.get("npafg.running.bkgd") + "'");
    },
    "onsuccess" : function(p) {
    var msgs = [
    I18n.get("npafg.msg.success", [p.list.plays]),
    "Unknown success",
    "Unknown bonus",
    I18n.get("npafg.msg.reached_max"),
    "Zero score",
    "Unknown",
    "Invalid",
    "Timeout",
    "No login",
    "Challenge",
    "Cookie",
    I18n.get("npafg.msg.reached_max"),
    "Challenge slow",
    "DC COMP",
    "DC TIME",
    I18n.get("npafg.msg.reviewed"),
    "Quick session",
    I18n.get("npafg.msg.missing_hash"),
    "Too slow",
    "DD SUCCESS",
    "DD NO SUCCESS",
    "IDS_SM_DD_MAX",
    "IDS_SM_DD_BEAT_AAA",
    "IDS_SM_DD_BEAT_ABIGAIL",
    "IDS_SM_DD_BEAT_DOUBLE",
    "IDS_SM_DD_BEAT_LULU",
    I18n.get("npafg.msg.success", [p.list.plays])
    ];

    if (p.list.errcode in msgs) {
    p.params.span[1].textContent = msgs[p.list.errcode];
    } else {
    p.params.span[1].textContent = I18n.get("npafg.error.unknown") + " " + p.list.errcode;
    }

    var o = [];
    for (var k in p.list) {
    o.push([k, p.list[k]].join("\t"));
    }
    GM_log(o.join("\n"));

    document.body.setAttribute("onbeforeunload", "");
    document.body.removeAttribute("onbeforeunload");
    }
    });
    }, false);

    FlashGame.menu("cached_includes", "[Neopets : Avatars Flash Games] " + I18n.get("inpfg.cache_encrypt.label"));
    }
    })();

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

    5252 (01-08-2012),pirate (01-21-2012)

  3. #2
    Banned
    Join Date
    Jan 2012
    Gender
    Location
    Cali
    Posts
    60
    Thanks
    0
    Thanked 0 Times in 0 Posts


    Downloads
    0
    Uploads
    0
    Mentioned
    7 Post(s)
    Time Online
    N/A
    Avg. Time Online
    N/A
    Rep Power
    0
    Google Chrome can use greasemonkey? and download link
    please?

  4. #3


    5252's Avatar
    Join Date
    Dec 2011
    Gender
    Posts
    2,982
    Thanks
    658
    Thanked 647 Times in 319 Posts


    Downloads
    150
    Uploads
    1
    Mentioned
    438 Post(s)
    Time Online
    121 d 20 h 21 m
    Avg. Time Online
    1 h 33 m
    Rep Power
    9
    GM is only on FF.

  5. #4

    Join Date
    Dec 2011
    Gender
    Posts
    146
    Thanks
    4
    Thanked 16 Times in 7 Posts


    Downloads
    14
    Uploads
    0
    Mentioned
    24 Post(s)
    Time Online
    15 h 34 m
    Avg. Time Online
    N/A
    Rep Power
    6
    When it asks to use cached encryption do we click ok or cancel?

  6. #5
    Saiyan Race





    Infamous Joe's Avatar
    Join Date
    Dec 2011
    Gender
    Location
    Hyperbolic Time Chamber
    Age
    26
    Posts
    9,752
    Thanks
    2,780
    Thanked 16,233 Times in 4,237 Posts


    Downloads
    23
    Uploads
    36
    Mentioned
    2985 Post(s)
    Time Online
    293 d 15 h 56 m
    Avg. Time Online
    3 h 44 m
    Rep Power
    10
    Gamer IDs

    Gamertag: Infam0us Joe Steam ID: infamousjoe
    You can use this in Google Chrome, don't install GM just go straight to the script and install it.

  7. #6

    Join Date
    Jan 2012
    Gender
    Posts
    4
    Thanks
    0
    Thanked 2 Times in 1 Post


    Downloads
    0
    Uploads
    0
    Mentioned
    9 Post(s)
    Time Online
    1 h 28 m
    Avg. Time Online
    N/A
    Rep Power
    0
    Quote Originally Posted by seanf View Post
    When it asks to use cached encryption do we click ok or cancel?
    cached encryption refers to the encryption stored earlier... u can click ok if it's pretty recent.. Eg. Today.. but to be safe just get new encryption for the latest

  8. #7

    Join Date
    Dec 2011
    Gender
    Posts
    146
    Thanks
    4
    Thanked 16 Times in 7 Posts


    Downloads
    14
    Uploads
    0
    Mentioned
    24 Post(s)
    Time Online
    15 h 34 m
    Avg. Time Online
    N/A
    Rep Power
    6
    Just got a high score reviewed and accepted with this

  9. #8

    Join Date
    Feb 2012
    Gender
    Location
    http://adf.ly/713ve
    Posts
    211
    Thanks
    91
    Thanked 22 Times in 14 Posts


    Downloads
    28
    Uploads
    0
    Mentioned
    18 Post(s)
    Time Online
    1 h 6 m
    Avg. Time Online
    N/A
    Rep Power
    6
    This script is beast..but it would be more awesome if it were for all the games

  10. #9
    Moderator





    Bettser's Avatar
    Join Date
    Feb 2012
    Gender
    Location
    Canada
    Age
    26
    Posts
    5,868
    Thanks
    1,698
    Thanked 3,495 Times in 1,599 Posts


    Downloads
    41
    Uploads
    0
    Mentioned
    1387 Post(s)
    Time Online
    352 d 1 h 56 m
    Avg. Time Online
    4 h 29 m
    Rep Power
    10
    Does this work anymore?

  11. #10

    Join Date
    Jan 2012
    Gender
    Location
    Atlanta
    Age
    25
    Posts
    136
    Thanks
    1,372
    Thanked 1,399 Times in 817 Posts


    Downloads
    85
    Uploads
    4
    Mentioned
    628 Post(s)
    Time Online
    14 d 7 h 24 m
    Avg. Time Online
    10 m
    Rep Power
    6
    Not for me. It won't show the avatar on the game page.

Page 1 of 2 12 LastLast

Posting Permissions

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