As I'm currently bored and working from home I decided to start automating games again!
A bunch of my Neopets related friends decided to start playing Marapets for various reasons, and the dailies can be a real slog! So just download this script as you would any Neopets script and go nuts!
Currently starting small and hoping to do something more fun and complex soon!
Features:
Spoiler:
Automatically types and submits the correct flag, as soon as you open the page!
It even parses those confusing flags like Bosnia into something that the game actually likes
Raw Code:
Spoiler:
Code:
// ==UserScript==
// @name Marapets Guess the Flag Autoplayer
// @namespace https://greasyfork.org/en/users/200321-realisticerror
// @version 1.0
// @description Automates the Marapets game - Guess the Flag
// @author RealisticError (Clraik)
// @match https://www.marapets.com/trojan.php
// @require http://code.jquery.com/jquery-3.4.1.min.js
// @grant none
// ==/UserScript==
(function() {
'use strict';
var flagImage = $("body > div.marapetsmax > div > div.maralayout.sitecontent > div.maralayoutmiddle > form > div > img")[0].src
var countryName = flagImage.split("/")[flagImage.split("/").length - 1].split("_")[1].split(".")[0];
if(countryName === "UnitedStates") {
countryName = "United States"
} else if(countryName === "NewZealand") {
countryName = "New Zealand"
} else if(countryName === "UK") {
countryName = "United Kingdom"
} else if(countryName === "UAE") {
countryName = "United Arab Emirates"
} else if(countryName === "Bosnia") {
countryName = "Bosnia and Herzegovina"
} else if(countryName ==="Trinidad") {
countryName = "Trinidad and Tobago"
}
$("body > div.marapetsmax > div > div.maralayout.sitecontent > div.maralayoutmiddle > form > div > input[type=text]:nth-child(10)")[0].value = countryName;
$("body > div.marapetsmax > div > div.maralayout.sitecontent > div.maralayoutmiddle > form > div > input[type=submit]:nth-child(13)").click()
})();
GreasyFork Link:
Spoiler:
[Only registered and activated users can see links. ]
As always - if something broke please tell me in this thread (@ me so I can see it faster )
Also special thanks to @[Only registered and activated users can see links. ] for keeping my love of automation alive, every time we talk you make me want to create, and that's a really great thing
[Only registered and activated users can see links. ]