Results 1 to 4 of 4

Thread: Marapets Guess The Flag Autoplayer Script

  1. #1
    RealisticError's Avatar
    Joined
    Jul 2018
    Posts
    1,598
    Userbars
    21
    Thanks
    877
    Thanked
    2,231/819
    DL/UL
    33/0
    Mentioned
    125 times
    Time Online
    53d 16h 18m
    Avg. Time Online
    54m

    Marapets Guess The Flag Autoplayer Script

    Guess The Flag Autoplayer!



    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. ]




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

    Bat (05-12-2020),Delibird (05-12-2020),Hazem (05-12-2020),omg.UFOs (05-12-2020),Synthbass (4 Weeks Ago),♥ ZeroTwo ♥ (05-12-2020)

  3. #2
    omg.UFOs's Avatar
    Joined
    Jun 2018
    Posts
    347
    Userbars
    11
    Thanks
    592
    Thanked
    647/215
    DL/UL
    43/0
    Mentioned
    41 times
    Time Online
    18d 17h 6m
    Avg. Time Online
    18m
    Just installed it, so far it worked perfectly! Thank you!

  4. The Following User Says Thank You to omg.UFOs For This Useful Post:

    RealisticError (05-12-2020)

  5. #3
    RealisticError's Avatar
    Joined
    Jul 2018
    Posts
    1,598
    Userbars
    21
    Thanks
    877
    Thanked
    2,231/819
    DL/UL
    33/0
    Mentioned
    125 times
    Time Online
    53d 16h 18m
    Avg. Time Online
    54m
    Quote Originally Posted by omg.UFOs View Post
    Just installed it, so far it worked perfectly! Thank you!
    Awesome! Thanks for letting me know, I'm always terrified that I'll release something with a breaking bug and everyone will hate me

    [Only registered and activated users can see links. ]




  6. #4
    Coffee-Saiyan's Avatar
    Joined
    Apr 2022
    Posts
    2
    Userbars
    1
    Thanks
    9
    Thanked
    1/1
    DL/UL
    11/0
    Mentioned
    1 time
    Time Online
    10h 48m
    Avg. Time Online
    16m
    This worked perfect! Thank you so much!!

Posting Permissions

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