useful hats

flipper hat, spike gear, samurai armour

Pada tanggal 08 Maret 2020. Lihat %(latest_version_link).

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         useful hats
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  flipper hat, spike gear, samurai armour
// @author       alcachoo
// @match        http://moomoo.io/*
// @match        http://sandbox.moomoo.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

       var ID_FlipperHat = 31; // (f) to use
    var ID_SpikeGear = 11; // (caps lock) to use, i don't know if the 2 key works for it aswell.
    var ID_SamuraiArmour = 20; // (\) to use
    var ID_WinterHat = 15; // (v) to use

    document.addEventListener('keydown', function(e) {
        if(e.keyCode === 16 && document.activeElement.id.toLowerCase() !== 'chatbox')
        {
        storeEquip(0);
        }
        else if (e.keyCode === 70 && document.activeElement.id.toLowerCase() !== 'chatbox') // 70 is the keycode for (f)
        {
        storeEquip(ID_FlipperHat); // the hat in the game is named 31 in the storeEquip also called the hat shop. i made it so that ID_FlipperHat and 31 can be used though writing var ID_FlipperHat == 31. var just stands for Variable
        }
        else if (e.keyCode === 20 && document.activeElement.id.toLowerCase() !== 'chatbox')
        {
        storeEquip(ID_SpikeGear);
        }
        else if (e.keyCode === 220 && document.activeElement.id.toLowerCase() !== 'chatbox')
        {
        storeEquip(ID_SamuraiArmour);
        }
        else if (e.keycode === 86 && document.activeElement.id.toLowerCase() !== "chatbox")
        {
        storeEquip(ID_WinterHat);
        }
    });

})();