Teleport Script to Player

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

  1. // ==UserScript==
  2. // @name Teleport Script to Player
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Try pressing Control + O to open Teleport Menu. Working on Http and Https
  6. // @author DragonFrostIce, Togekiss(or just King Tortle)
  7. // @match *://manyland.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=manyland.com
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. async function main() {
  14. await $.getScript("https://cdn.jsdelivr.net/gh/parseml/many-deobf@latest/deobf.js");
  15.  
  16. ig.game.alertDialog.open(`
  17. <style>
  18. body {
  19. margin-top: 0px;
  20. }
  21. </style>
  22. <b>Manyland Documentation Example</b>
  23. <p class="miftThankYouMessage">Enter a player's name to teleport to: </p>
  24. <input type="text" id="pName"></input>
  25. `,
  26. true,
  27. () => {
  28. playerName = document.getElementById("pName").value
  29. updatePlayers();
  30. let player = ig.game.players.filter(p => p.screenName == playerName);
  31. ig.game.player.pos = player[0].pos;
  32. },
  33. "Tele", null, null, null, null, null, null, null, true);
  34. }
  35. setInterval(()=>{if(ig.input.state("ctrl")&&ig.input.state("o")&&!ig.game.alertDialog.isOpen){main()}}, 0)