MyBot NewColors

MyBot New Colors for PixelPlace

目前为 2024-12-31 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/479127/1512711/MyBot%20NewColors.js

  1. // ==UserScript==
  2. // @name MyBot NewColors
  3. // @description MyBot New Colors for PixelPlace
  4. // @version 1.0
  5. // @author SamaelWired
  6. // @namespace https://gf.qytechs.cn/tr/users/976572
  7. // @match https://pixelplace.io/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=pixelplace.io
  9. // @license MIT
  10. // @grant none
  11. // @run-at document-start
  12. // ==/UserScript==
  13. (() => {
  14. const MyBot = window.MyBot || {modules: {}};
  15. window.MyBot = MyBot;
  16. if ('Config' in MyBot.modules) return;
  17.  
  18. const module = {};
  19. module.zero = 0xCCCCCC;
  20. module.colors = new Uint32Array([
  21. 0xFFFFFF, 0xC4C4C4, 0x888888, 0x555555, 0x222222, 0x000000, 0x006600, 0x22B14C, 0x02BE01,
  22. 0x51E119, 0x94E044, 0xFBFF5B, 0xE5D900, 0xE6BE0C, 0xE59500, 0xA06A42, 0x99530D, 0x633C1F,
  23. 0x6B0000, 0x9F0000, 0xE50000, 0xFF3904, 0xBB4F00, 0xFF755F, 0xFFC49F, 0xFFDFCC, 0xFFA7D1,
  24. 0xCF6EE4, 0xEC08EC, 0x820080, 0x5100FF, 0x020763, 0x0000EA, 0x044BFF, 0x6583CF, 0x36BAFF,
  25. 0x0083C7, 0x00D3DD, 0x45FFC8, 0x003638, 0x477050, 0x98FB98, 0xFF7000, 0xCE2939, 0xFF416A,
  26. 0x7D26CD, 0x330077, 0x005BA1, 0xB5E8EE, 0x1B7400,
  27. 0x12895428, 0x8947848, 0x5592405, 0x2236962, 0x0, 0x26112, 0x2273612, 0x179713,
  28. 0x5366041, 0x9756740, 0x16514907, 0x15063296, 0x15121932, 0x15045888, 0x10512962,
  29. 0x10048269, 0x6503455, 0x7012352, 0x10420224, 0x15007744, 0x16726276, 0x12275456,
  30. 0x16741727, 0x16762015, 0x16768972, 0x16754641, 0x13594340, 0x15468780, 0x8519808,
  31. 0x5308671, 0x132963, 0x234, 0x281599, 0x6652879, 0x3586815, 0x33735, 0x54237,
  32. 0x4587464, 0x13880, 0x4681808, 0x10025880, 0x16740352, 0x13510969, 0x16728426,
  33. 0x8201933, 0x3342455, 0x23457, 0x11921646, 0x1799168]);
  34. module.exclude = new Uint32Array([0x666666]);
  35. module.packetSpeed = 50;
  36. module.packetCount = null;
  37. module.silent = true;
  38. module.tickSpeed = 100;
  39. module.timer = window;
  40. module.order = 'fromCenter';
  41. module.callbacks = [];
  42. module.subscribe = (...funcs) => {
  43. module.callbacks.push(...funcs.flat());
  44. funcs.flat().map(f => f(module));
  45. };
  46.  
  47. MyBot.config = new Proxy(module, {
  48. set(target, key, value) {
  49. target[key] = value;
  50. target.callbacks.map(c => c(target));
  51. return true;
  52. }
  53. });
  54.  
  55. MyBot.modules.Config = module;
  56. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址