Teleport Script to Player

Try pressing Control + O to open Teleport Menu. Working on Http and Https

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.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

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         Teleport Script to  Player
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Try pressing Control + O to open Teleport Menu. Working on Http and Https
// @author       DragonFrostIce, Togekiss(or just King Tortle)
// @match        *://manyland.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=manyland.com
// @grant        none
// @license MIT
// ==/UserScript==

async function main() {
    await $.getScript("https://cdn.jsdelivr.net/gh/parseml/many-deobf@latest/deobf.js");

    ig.game.alertDialog.open(`
    <style>
    body {
        margin-top: 0px;
    }
    </style>
    <b>Manyland Documentation Example</b>
    <p class="miftThankYouMessage">Enter a player's name to teleport to: </p>
    <input type="text" id="pName"></input>
    `,
    true,
    () => {
        playerName = document.getElementById("pName").value
        updatePlayers();
        let player = ig.game.players.filter(p => p.screenName == playerName);
        ig.game.player.pos = player[0].pos;
    },
    "Tele", null, null, null, null, null, null, null, true);
}
setInterval(()=>{if(ig.input.state("ctrl")&&ig.input.state("o")&&!ig.game.alertDialog.isOpen){main()}}, 0)