Advertisement
Guest User

topic.js

a guest
Nov 27th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. print("top.js")
  2.  
  3.  
  4.  
  5.  
  6. coloresf = new Array();
  7.  
  8. coloresf.push("\x0512")
  9. coloresf.push("\x0513")
  10. coloresf.push("\x0504")
  11. coloresf.push("\x0514")
  12. coloresf.push("\x0511")
  13. coloresf.push("\x0507")
  14. coloresf.push("\x0508")
  15. coloresf.push("\x0509")
  16.  
  17.  
  18.  
  19.  
  20.  
  21. var brii=0;
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. onTimer=function () {
  30.  
  31.  
  32. var c=coloresf[Math.floor(Math.random() * coloresf.length)]
  33.  
  34. var top=Room.topic.replace(/\x0511/gi, c).replace(/\x0311/gi, c.replace(/\x05/gi, "\x03"));
  35.  
  36.  
  37. brii++;
  38.  
  39.  
  40. Users.local(function (bri) {
  41.  
  42.  
  43. bri.setTopic("\x0501"+top.substr(brii)+top.substr(brii)+top);});
  44.  
  45.  
  46. if (brii==50){brii=0;}
  47.  
  48.  
  49.  
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement