RealisticError
05-12-2020, 05:18 PM
Guess The Flag Autoplayer!
[Only registered and activated users can see links]
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:
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:
// ==UserScript==
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
// ==/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:
[Only registered and activated users can see links]
[Only registered and activated users can see links]
Also special thanks to Bat 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]
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:
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:
// ==UserScript==
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
// ==/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:
[Only registered and activated users can see links]
[Only registered and activated users can see links]
Also special thanks to Bat for keeping my love of automation alive, every time we talk you make me want to create, and that's a really great thing