Advertisement
KKosty4ka

/rplaceowot script deobfuscated

Jul 28th, 2023
794
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. owot.me/rplaceowot script
  3. deobfuscated by KKosty4ka
  4. */
  5.  
  6. if (typeof localStorage.canPlacePixel !== undefined)
  7. {
  8.     localStorage.canPlacePixel = "true";
  9. }
  10.  
  11. function userCheck()
  12. {
  13.     return state.userModel.username == "" ? w.clientId : state.userModel.username;
  14. }
  15.  
  16. owotCtx.canvas.ondblclick = e =>
  17. {
  18.     var coords = getTileCoordsFromMouseCoords(e.clientX, e.clientY);
  19.  
  20.     if (localStorage.canPlacePixel == "true")
  21.     {
  22.         writeCharTo("█", YourWorld.Color, coords[0], coords[1], coords[2], coords[3]);
  23.  
  24.         w.chat.send(`${userCheck()} Placed a pixel at [${coords[0]}, ${coords[1]}, ${coords[2]}, ${coords[3]}]`,
  25.         {
  26.             nick: "𝗿/𝗽𝗹𝗮𝗰𝗲 𝗖𝗹𝗶𝗲𝗻𝘁",
  27.             color: "#00B7FF"
  28.         });
  29.  
  30.         localStorage.canPlacePixel = _0xb30ed6(0xbe), setTimeout(_ =>
  31.         {
  32.             localStorage.canPlacePixel = "true";
  33.             alert("YOU CAN PLACE A PIXEL DOWN NOW!!!!");
  34.         }, state.worldModel.char_rate[1])
  35.     }
  36.     else alert('you cant place a pixel yet');
  37. }
  38.  
  39. writeChar = (char, doNotMoveCursor, color, noNewline) =>
  40. {
  41.     if (localStorage.canPlacePixel == "true")
  42.     {
  43.         writeCharTo(char, YourWorld.Color, cursorCoords[0], cursorCoords[1], cursorCoords[2], cursorCoords[3]);
  44.        
  45.         w.chat.send(`${userCheck()} Placed the char "${char}" at [${cursorCoords[0]}, ${cursorCoords[1]}, ${cursorCoords[2]}, ${cursorCoords[3]}]`,
  46.         {
  47.             nick: "𝗿/𝗽𝗹𝗮𝗰𝗲 𝗖𝗹𝗶𝗲𝗻𝘁",
  48.             color: "#00B7FF"
  49.         });
  50.        
  51.         localStorage.canPlacePixel == "false"; // wtf?
  52.         setTimeout(_ =>
  53.         {
  54.             canPlacePixel = "true";
  55.             alert("YOU CAN PLACE A CHAR NOW!!" );
  56.         }, state.worldModel.char_rate[1]);
  57.     }
  58.     else alert("you cant place a char yet" );
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement