3D OWOT script: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
(this is the script guys)
 
No edit summary
Line 4: Line 4:
     w.chat.send("/warp " + (!+document.getElementById("3d").value ? "" : "dimension3dz" + document.getElementById("3d").value));
     w.chat.send("/warp " + (!+document.getElementById("3d").value ? "" : "dimension3dz" + document.getElementById("3d").value));
  };
  };
[[Category:Scripts]]

Revision as of 13:32, 18 August 2023

menu.addEntry("<input id='3d' type='range' min='-10' max='10'></input>");
document.getElementById("3d").style.width = "100%";
document.getElementById("3d").onchange = function(){
    w.chat.send("/warp " + (!+document.getElementById("3d").value ? "" : "dimension3dz" + document.getElementById("3d").value));
};