Advertisement
Guest User

Script Byobscript.js by cedric

a guest
Oct 6th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                                            
  2. //  https://www.dropbox.com/s/eyc4wau986duhrz/flags.js.rar                                         
  3.                                                        
  4.  
  5. try { motd=File.load("motd.txt").split("\r\n"); } catch(e){ motd=new Array(); }
  6.  if(motd!="") {
  7.      
  8.  
  9. print(0,"                                 \x06\x0301 Sяιρт  [\x0310A\x0301]ииσυи¢ємєит : [\x0310F\x0301]ile  lσαdєd : [\x0310"+motd.join().length+" вутєѕ\x0301]"); }
  10.  
  11. motd=new Array("\x0304welcome to my chat room "," \x0303have fun!");
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. //for (var a=0; a<1; a++){ Users.local(function(userobj){sendPM(userobj,Room.botName, "\x06\x0301ŞCЯIPŦ PЯOĢЯΛM ßЧOߪCЯIPŦ.JŞ \x0304"+getClockTime()+"");})}         
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33. File.save("motd.txt",motd.join("\r\n"));
  34.  
  35. print(0,"\x06\x0301         •『』• -------------------------------------------------------------------------------------------------- •『』•");
  36. print(0,"\x06\x0301                                      uяl яσσм lσαdєd");
  37. print(0,"\x06\x0301                                      яøøм ŋaмε : \x0304"+Room.name+"");
  38. print(0,"\x06\x0301                                      тiмε øf тнε løadiŋģ sçяipт : \x0304"+time()+"");
  39. print(0,"\x06\x0301                                      sçяipт ŋaмε : \x0304вчσвş¢яıρt");  
  40. print(0,"\x06\x0301                                      яøøм vεяsiøŋ : \x0304"+Room.version+"");
  41. print(0,"\x06\x0301                                      нøsт ŋaмε : \x0304cedric");  
  42. print(0,"\x06\x0301                                      εжтεяŋal ip : \x0304"+Room.externalIp+"");
  43. print(0,"\x06\x0301                                      sçяipт føя sεяvεя sвøт5 : \x0304laŋģuaģε fяεŋçн / εŋģlisн\x0304 ")
  44. print(0,"\x06\x0301         •『』• -------------------------------------------------------------------------------------------------- •『』•");;
  45.  
  46. Room.topic = "\x0314\x0514                                                 \x0300\x0500    \x0300\x0501\x06                         JavaScript Programmers -                           "                                       
  47.    
  48.    
  49.    
  50.  
  51.  
  52.    
  53.  
  54.    
  55.    
  56. var c = new Array();
  57.  
  58.  
  59.  
  60.  
  61.  
  62. c[0]= ""+time()+""
  63. c[1]= ""+time()+""
  64.  
  65.    
  66. b5 = c[Math.floor(Math.random() * c.length)]   
  67.        
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74. //onPersonalMessage = function(userobj, msg){Users.local(function(x)  { x.setTopic("\x06\x0300\x0512                                                     \x0304\x0500¦\x0309\x0501 "+msg+" \x0304\x0500¦\x0300\x0512                                                     ")});return true;}
  75.  
  76.  
  77.  
  78.  
  79. print(0,"                                 \x06\x0301 Scяιρт  [\x0310A\x0301]ииσυи¢ємєит : [\x0310M\x0301]σтd  lσαdєd : [\x0310"+motd.join().length+" вутєѕ\x0301]");
  80.  
  81.  
  82.  
  83. //onPersonalMessage = function(userobj, msg){Users.local(function(userobj)  { Room.setUrl("www."," "+msg+"")});return true;}
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92. function onJoinCheck(userobj){
  93.  
  94. print(userobj,"\x0302script ByobScript 1.0 version for server Sbot 5 code by cedric ");
  95. print(userobj,"\x0302"+Room.name+"");
  96.  
  97. userobj.sendHTML('<marquee  behavior="scroll" direction="right" scrollamount="3"><table style="border:11px solid grey;"><tr><th><font color="black">    </font><font color="black">  </font> <br><br><font color="black">                  <b><FONT FACE="arial" SIZE=6 COLOR=black>  вıєηνєηuє         ωєł¢σмє      ωıłłκσммєη       вıєηνєηı∂σş  </font></font><font color="orange">    </font><font color="blue">        </font><font color="orange">          </font><font color="black">                 </font> <font color="black">           </font><font color="black">      </font><font color="black">             </font><br><font color="black">   </font><font color="black">           </font><font color="black">            </font> <br><font color="black">    </font><font color="orange">   </font><font color="blue">              </font><br> <font color="orange">       </font><font color="black">             </font> <font color="black">           </font><br><br><font color="black">          </font><font color="black">           </th><th></tr></table></marquee>');
  98.    
  99.  
  100.  
  101.  
  102.  
  103.  
  104.        
  105.        
  106.  
  107. return true;
  108. }
  109.  
  110. var color21 = new Array();
  111.  
  112.  
  113. color21[0]= "\x0301"
  114. color21[1]= "\x0302"
  115. color21[2]= "\x0314"
  116. color21[3]= "\x0303"
  117. color21[4]= "\x0306"
  118. color21[5]= "\x0307"
  119. color21[6]= "\x0305"
  120. color21[7]= "\x0310"
  121. color21[8]= "\x0315"
  122. color21[9]= "\x0309"
  123. color21[10]= "\x0313"
  124. color21[11]= "\x0311"
  125.  
  126.  
  127.  
  128.  
  129. vr = color21[Math.floor(Math.random() * color21.length)]
  130.  
  131.  
  132.  onTimer=function(){ Room.setUrl("www."," -  "+time()+" | - | bytes sending "+Stats.dataSent+" | - | bytes received "+Stats.dataReceived+" | -  ["+Date()+"] ");
  133.  Users.local(function(x)  { x.setTopic("\x06"+time()+"\x0500"+fondos()+"   "+vr+"   \x0500¦\x0309\x0501"+fondos()+"   "+vr+"   \x0500¦"+fondos()+"                                                                                          \x0300\x0500    \x0300\x0501"+fondos()+"                                                                    JavaScript Programmers -                                                                       ")});
  134.  
  135.  
  136.  return true;}
  137.  
  138.  
  139.  
  140.  
  141.  
  142. onPersonalMessage = function(userobj, msg){
  143. if(music == true){ 
  144. if(msg.length>0){
  145.  
  146. Users.local(function(userobj) {userobj.sendHTML('<marquee  behavior="scroll" direction="right" scrollamount="2" ><span style="font-size: 25px; color: red;line-height: normal;background-color:white"><b>['+getClockTime()+']  '+msg+' </b></span></marquee>');});
  147. return true;
  148. }
  149. }
  150. }
  151. if(music == false){
  152. }
  153.  
  154.  
  155. onPart=function(userobj){
  156. var scribble = userobj.avatar.toScribble();
  157. Users.local(function (userobj){userobj.scribble(scribble);});
  158.    
  159. print("\x06\x0301name : \x0304"+userobj.name+" |\x0301ıρ external ip : \x0304"+userobj.externalIp+" | \x0301time : \x0304"+getClockTime()+" | \x0301ıd ηuмвєя : \x0304"+userobj.id+"");
  160.  
  161. }
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175. function fondos(){
  176.     var num = new Array(1,2,3,4,5,6,7,10,12,13,14,15);
  177.     var fondo = num[Math.floor(Math.random()*num.length)];
  178.     if(fondo<10){
  179.         fondo="\x050"+fondo;
  180.     }else{
  181.         fondo = "\x05"+fondo;
  182.     }
  183.     return fondo;
  184. }
  185.  
  186.  
  187.  
  188.  
  189.  
  190. function time(){
  191. var tiempo=new Date();
  192. var h=tiempo.getHours()+" h ";
  193. if(h<10){h="0"+h}
  194. var m=tiempo.getMinutes()+" min ";
  195. if(m<10){m="0"+m}
  196. var s=tiempo.getSeconds()+" sec ";
  197. if(s<10){m="0"+s}
  198. var mostrarTiempo=h+m+s;
  199. return mostrarTiempo
  200. }
  201.  
  202. var d = new Date();
  203. var d = new Date();
  204. var n = d.toLocaleDateString();
  205.  
  206. //---------------------------------------------------------- function onJoin()---------------------------------------------------------------------//
  207.  
  208. function onJoin(userobj){
  209.    
  210.  
  211. var text = "  ";
  212.  
  213. Users.records(function (userobj)
  214. {
  215.     if (userobj.name && userobj.id.indexOf(text) == 0 )
  216.                                            
  217.         print("\x06\x0301-"+userobj.name + "");});
  218.  
  219.  
  220.  
  221.  
  222.  
  223.    
  224. var imagen = new Scribble();
  225.  
  226.    
  227.    
  228.  
  229.  
  230.  
  231.  
  232. imagen.src ="http://previews.123rf.com/images/oneinchpunch/oneinchpunch1410/oneinchpunch141000094/32440350-Dancer-posing-on-white-Modern-performer-shows-a-cool-dance-move-Stock-Photo.jpg";
  233.  
  234.  
  235. imagen.oncomplete = function (e)
  236. {
  237.     if (e)
  238.         userobj.scribble(this);
  239.  
  240.        userobj.sendHTML('<marquee  behavior="scroll" direction="down" scrollamount="2" ><span style="font-size: 20px; color: blue;line-height: normal;background-color:white"><b> ... king Of pop ... </b></span></marquee>');
  241. }
  242.  
  243.  
  244.  
  245.  
  246. //imagen.download(0);//just pour l user
  247. imagen.download(0);//pour toute la room
  248.    
  249.    
  250.  
  251. userobj.name = "["+userobj.id+"] "+userobj.name.substring(0, 12);      
  252.    
  253.    
  254. if (userobj.BannedUser) {print("List of Banned User showing in room"); print(userobj.name+", userobj.externalIp+", userobj.port+", userobj.guid+", localIp+",")}else{ print("nobody is banned in this chatroom, function Banned User activated");
  255. }
  256.    
  257.  
  258.  
  259. if(fx == true){
  260.  
  261.  
  262. userobj.customName = ""+colors()+"νışıтєя["+Stats.userCount+"] \x0301"+userobj.name+""+colors()+"> "
  263. function colors(){var color = Math.floor(Math.random() * 15);while (color < 2 || color == 8) {color = Math.floor(Math.random() * 15);}if (color < 10) {color = "0" + color}return "\x03"+color;}
  264.  
  265.  
  266. }
  267. if(fx == false){}
  268.  
  269.  
  270.  
  271.  
  272. for (var a=0; a<1; a++){sendPM(userobj,userobj.name , "\x06\x0301wεlcøмε тø чøu, тнis яøøм is før user wнø liκεs javasçяipт, чøu caŋ share чøuя perføямaŋçε wiтн level, asκ тнε нøst.      ");}  
  273. //for (var a=0; a<1; a++){ Users.local(function(userobj){sendPM(userobj,Room.botName, "\x06\x0301ŞCЯIPŦ PЯOĢЯΛM ßЧOߪCЯIPŦ.JŞ \x0304"+getClockTime()+"");})}         
  274. for (var a=0; a<1; a++){sendPM(userobj,Room.botName , "\x06"+colors()+" Adмıη LєνєL, тчρє :#basic level 2 ");}   
  275.  
  276.  
  277.  
  278.  
  279.  
  280. if(userobj.name=="cedric"){
  281. print("\x06\x0301"+userobj.name+" \x0304ωєł¢σмє -нσşт, чσu нανє вєєη  αuтσ-łσġġє∂ вч тнє ş¢яıρт");
  282. userobj.level=3;
  283. }
  284.  
  285. var imagen = new Scribble();
  286.  
  287. imagen.src = "";   
  288.    
  289.  
  290.  
  291.  
  292. imagen.src =""
  293.  
  294.  
  295. imagen.oncomplete = function (e)
  296. {
  297.     if (e)
  298.         userobj.scribble(this);
  299.  
  300.         print(userobj,"\x06 ");
  301. }
  302.  
  303.  
  304.  
  305.  
  306. //imagen.download(0);//just pour l user
  307. imagen.download(0);//pour toute la room
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326. print(userobj,""); 
  327. print(userobj,"\x0301\x06                    •『』• --------------------------------------------------------------------- •『』•");
  328. print(userobj,"");
  329. print(userobj,"\x06\x0301                         нøsт ŋaмε: \x0304cedric");
  330. print(userobj,"\x06\x0301                         pεøplε lεfт тнε яøøм: \x0304"+Stats.partCount+"");
  331. print(userobj,"\x06\x0301                         sçяipт ŋaмε : \x0304Byobscript ");        
  332. print(userobj,"\x06\x0301                         øяiģiŋal ŋaмε : \x0304"+userobj.orgName+"");
  333. print(userobj,"\x06\x0301                         чøuя lεvεl iŋ тнε яøøм : \x0304"+userobj.level+" \x0304");
  334. print(userobj,"\x06\x0301                         pεøplε iŋ тнε яøøм siŋçε тнε sεяvεя is øpεŋ : \x0304"+Stats.peakUserCount+"");
  335. print(userobj,"\x06\x0301                         pεøplε ĵøiŋ: \x0304"+Stats.joinCount+"");
  336. print(userobj,"");
  337. print(userobj,"\x06\x0301                    •『』•---------------------------  мαdє вч ¢єdяı¢  ------------------------ •『』•");
  338. print(userobj,"\x0301\x06                                                  •『』• --------------------------------------------------------------------- •『』•");
  339. print(userobj,"");
  340. print(userobj,"\x06\x0301                                                        pεøplε ŋøт alløwεd: \x0304"+Stats.rejectionCount+"");
  341. print(userobj,"\x06\x0301                                                        тiмε чøu ģεт тнε яøøм: \x0304"+getClockTime()+"");  
  342. print(userobj,"\x06\x0301                                                        fløødεd: \x0304"+Stats.floodCount+"");
  343. print(userobj,"\x06\x0301                                                        #byobscript : \x0304çøммaŋds sçяipт føя adмiŋs")
  344. print(userobj,"");
  345. print(userobj,"\x0301\x06                                                   •『』• ----------------------------------------------------------------------- •『』•");
  346.    
  347.            
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355. //for (var a=0; a<1; a++){ Users.local(function(userobj){sendPM(userobj,Room.botName, "\x06[eηтяч :  \x0304"+getClockTime()+"]");})}             
  356.                                                                
  357.  
  358.    
  359.    
  360. print("\x0301\x06                                                                              •『』• ----------------------------------------------------------------- •『』•");
  361. print("\x0301\x06                                                                                                                 nαмє : \x0304"+userobj.name+"     ");
  362. print("\x0301\x06                                                                                                                 ip : \x0304"+userobj.localIp+"");                                
  363. print("\x0301\x06                                                                                                                 eηтяч : \x0304"+getClockTime()+"");
  364. print("\x0301\x06                                                                                                                 mαxı ρєσρlє : \x0304"+Stats.peakUserCount+"");
  365. print("\x0301\x06                                                                                                                 тıмє :  : \x0304"+n+"");                       
  366. print("\x0301\x06                                                                              •『』• ----------------------------------------------------------------- •『』•");
  367.  
  368.  
  369. if (custom == true){
  370.  
  371. if(userobj.customName == "") {
  372.  
  373.     if(userobj.gender == "Male" || userobj.gender == "Unknown") {
  374.    
  375.             userobj.customName = Homem[Math.floor(Math.random() * Homem.length)].replace("+n", userobj.name)
  376.            
  377.                 print(" \x0304\x06~ ѕсяιρт  [\x0301"+userobj.name+"\x0304]   \x0304ѕсяιρт αυтφ сυѕтφм :  \x0304"+userobj.customName+" ");
  378.                    
  379.                     print("\x06\x0304*     \x0301•『』•· 『Xx』 [\x0304вγǿвşçяıρт \x0301] 『Xx』 ·•『』•   \x0304#false custom");}
  380. }
  381. }
  382. if(userobj.gender == "Female"){
  383.  
  384.                 userobj.customName = Mulher[Math.floor(Math.random() * Mulher.length)].replace("+n", userobj.name)
  385.                
  386.                     print(" \x0304\x06~ ѕсяιρт  [\x0301"+userobj.name+"\x0304]   \x0304ѕсяιρт αυтφ сυѕтφм :  \x0304"+userobj.customName+" ");
  387.                    
  388.                     print("\x06\x0304*     \x0301•『』•· 『Xx』 [\x0304вγǿвşçяıρт \x0301] 『Xx』 ·•『』•   \x0304#false custom");
  389. }
  390. if (custom == false){
  391. userobj.customName = null; 
  392. }
  393.  
  394.  
  395.  
  396.  
  397.  
  398. if(oxxo == true){onTimer=function(){ Users.local(function(userobj){tiempo++; if(tiempo>limite){ tiempo=0;} userobj.personalMessage=(t1, t2.split(t2.substr(tiempo))[0])});
  399.  
  400. var fever = new Array();
  401. fever[0]= ""+time()+""
  402. fever[1]= ""+time()+""
  403. night = fever[Math.floor(Math.random() * fever.length)]
  404.  
  405.  
  406. var script = new Array();
  407. script[0]= "ş¢яıρт BYOBSCRIPT "
  408. script[1]= "мα∂є вч ¢єdяı¢"
  409.  
  410.  
  411. day = script[Math.floor(Math.random() * script.length)]
  412.  
  413.  
  414. Users.local(function(u){u.setTopic("\x06\x0301\x0500                                                   FяΛ\x0300"+fondos()+"ŋ¢є                                                   \x0500"+colors()+"                                   \x0301\x0500    ["+night+"]         "+day+"        ")});
  415.                                
  416.                                  
  417.  
  418. }
  419.                    
  420. if(oxxo == false){onTimer = null;
  421. }
  422.  
  423.  
  424.  
  425. if (autolog3 == true){
  426. print("\x06\x0301"+userobj.name+" \x0304нαş łσġġє∂ łєνєł [3] αuтσмαтı¢αłłч");   
  427. userobj.level=3;
  428. }
  429. if (autolog3 == false){
  430.     }
  431.    
  432. if(ibot==true){
  433. if(userobj.webClient){
  434. print("\x0301\x06şє¢uяıтч> \x0301"+userobj.name+"\x0304, чσu αяє uşıηġ  \x0301"+userobj.version+" \x0304ıвσт, ¢нє¢κıηġ чσuя ıd \x0301"+userobj.id+" !"); }else { print("\x06\x0304ωєł¢σмє тσ мч яσσм \x0301"+userobj.name+", \x0304чσu αяє тнє \x0301"+Stats.userCount+"\x0304 νışıтєя, тıмє σf чσuя ¢σηηє¢тıσn                                                                                      :\x0301 "+getClockTime()+"   ");
  435. }
  436. }
  437. if(ibot==false){
  438. }  
  439. if(locker==true){
  440. print("\x0301\x06"+userobj.name+" \x0304тнε яøøм is çløsed , чøuя aяε discøŋŋεçтεd");
  441. userobj.disconnect();
  442. }
  443. if(locker==false){
  444. print("\x0301\x06"+userobj.name+" \x0304тнε яøøм is alløw тø ĵøiŋ");
  445. }
  446. //Users.local(function(u) {  ");});
  447. }
  448. }
  449. function onJSONReceived(args)
  450. {
  451.     if (args)
  452.     {
  453.         var json = JSON.parse(this.page).data;
  454.  
  455.         if (json.error != null)
  456.         {
  457.             print("\x06weather blocked =  " + current_user);
  458.             resetScript();
  459.         }
  460.         else
  461.         {
  462.             json = json.current_condition[0];
  463.            
  464.             if (json.weatherDesc != null)
  465.                 if (json.weatherDesc.length > 0)
  466.                     w_describe = json.weatherDesc[0].value;
  467.  
  468.             w_temp = json.temp_C + "\u00b0C / " + json.temp_F + "\u00b0F";
  469.             w_hum = json.humidity + "%";
  470.             w_wind = json.winddirDegree + "\u00b0 at " + json.windspeedMiles*1.609 + "mph";
  471.  
  472.             if (json.weatherIconUrl != null)
  473.                 if (json.weatherIconUrl.length > 0)
  474.                 {
  475.                     var scr = new Scribble();
  476.                     scr.src = json.weatherIconUrl[0].value;
  477.                     scr.oncomplete = onImgReceived;
  478.                     scr.download();
  479.                     return;
  480.                 }
  481.  
  482.             showResult();
  483.             resetScript();
  484.         }
  485.     }
  486.     else
  487.     {
  488.         print("\x06weather is not available for you " + current_user);
  489.         resetScript();
  490.     }
  491. }
  492.  
  493. function onImgReceived(args)
  494. {
  495.     if (args)
  496.         img = this;
  497.  
  498.     showResult();
  499. }
  500.  
  501. function resetScript()
  502. {
  503.     busy = false;
  504.     current_user = "";
  505.     img = null;
  506.     w_describe = "";
  507.     w_hum = "";
  508.     w_temp = "";
  509.     w_wind = "";
  510. }
  511.  
  512.  
  513.  
  514.  
  515.  
  516. function showResult()
  517. {
  518. c1="\x06\x0301"
  519. c2="\x06\x0304"
  520.     if (img != null)
  521.         Users.local(function (u) { u.scribble(img); });
  522.  
  523.     print(c1+"Weather for : "+c2 + current_user);
  524.     print(c1+"Vision: "+c2 + w_describe.replace("Patchy light rain","Patchy light rain").replace("Patchy rain nearby","Patchy rain nearby").replace("Overcast","Overcast").replace("Mist","Mist").replace("Moderate rain at times","Moderate rain at times").replace("Moderate or heavy rain in area with thunder","Moderate or heavy rain in area with thunder").replace("Thundery outbreaks in nearby","Thundery outbreaks in nearby").replace("Light rain","Light rain").replace("Moderate rain","Moderate rain").replace("Clear","Clear").replace("Partly Cloudy","Partly Cloudy").replace("Sunny","Sunny"));
  525.     print(c1+"Temperature: "+c2 + w_temp);
  526.     print(c1+"Humidite: " +c2+ w_hum);
  527.     print(c1+"Wind: "+c2 + w_wind.replace("at", "at").replace("mph", " Kilometers per hours"));
  528.     resetScript();
  529. }
  530. function onLogout(userobj){
  531.  
  532. print("\x06\x0301"+userobj.name+" \x0304нas ℓøģged øuт ŋøW aт "+time()+"");
  533. }
  534.  
  535.  
  536. //THIS SCRIPT IS CODED BY CEDRIC
  537.  
  538. //onTextBefore=function(u, t){if(u.nuevocustom){img("http://i.imgur.com/yfK8YUc.jpg", t);return "";};return t;}
  539. //u.nuevocustom=true;
  540. //function img(esto, txt){Users.local(function{if(x.canHTML){x.sendHTML("<img src="+esto+" />  "+txt+"");}else{print(x, userobj.customName+txt);}});}
  541.  
  542.  
  543. //Users.local(function(userobj) {userobj.sendHTML('<marquee  behavior="scroll" direction="right" scrollamount="2" ><span style="font-size: 100px; color: red;line-height: normal;background-color:blue"><b>אּ√;₣łAsђbAcK</b></span></marquee>');});
  544.  
  545. //for(t in this) print(t+" - "+this[t])
  546.  
  547. //userobj.sendHTML('<marquee  behavior="scroll" direction="right" scrollamount="2" ><span style="font-size: 100px; color: red;line-height: normal;background-color:blue"><b>holla</b></span></marquee>')
  548.  
  549.  //userobj.sendHTML('<marquee  behavior="scroll" direction="right" scrollamount="2" ><span style="font-size: 100px; color: blue;line-height: normal;background-color:null"><b>cedric</b></span></marquee>')
  550.  
  551.  
  552.  
  553. //function onCommand(u,c){if(c.substr(0, 4)=="bom " && userobj.level > 2 ){for (i=0; i<10; i++){print("\x06"+colors()+""+randomSpace()+" "+c.substr+"");}}}
  554. //(multi line)
  555.  
  556. //for (var a=0; a<3; a++){sendPM(user,Room.botName, ""+a+"hello man ".repeat(10));}
  557. //for(t in this) print(t+" - "+this[t])
  558. //for (var a=0; a<3; a++){print(0, ""+a+"bonsoir cedric \r\r\r". repeat(10));}
  559.  
  560. //userobj.personalMessage = annoy.tor();
  561.  
  562.  //function onCommand(userobj, command, target, args){if(command.substr(0, 4) == "html"){Users.local(function(u) {u.sendHTML("<b><FONT FACE='arial' SIZE=10 COLOR=red>"+command.substr+"");});}}
  563.  
  564.  
  565. //onTextBefore=function(u,t){var nc=colors();var tc=colors();while(nc==tc){tc=colors()}print(0,"\x06\x03"+nc+u.name+": \x03"+tc+t);return ""}
  566.  
  567.  //function onTextBefore(userobj, text){if(lastUser==userobj.name)return text;if(userobj.avatar.exists)Users.local(function(u){u.scribble(userobj.avatar.toScribble(),userobj.name);});lastUser=userobj.name;return text; }var lastUser = null;
  568.  
  569.  
  570. //onCommand=function(userobj,c,text,argment){if(c.substr(0,5)=="talk "){ print(0, "\x06\x0307ß?OßSC?IPT\x0301 > \x012 "+c.substr+" ");} }
  571. //for(love in yo) print(love+" - "+yo[love])
  572.  
  573. //onTimer=function(){ tiempo++; if(tiempo>limite){ tiempo=0;} user("cedric").personalMessage=(t1, t2.split(t2.substr(tiempo))[0]);}   personalMessage moving
  574.  
  575. //for (var i = 0; i < 101; i=i+5) {print(0,"\x06\x07\x0301 cedric [ \x0303"+i+"% \x0301] ")}
  576.  
  577. //*t1 =""
  578. //t2 = ""
  579. //limite = t2.length
  580. //tiempo = 0
  581.  
  582.  
  583. // function onCommand(u,c){if(c.substr(0, 4)=="bom " && userobj.level > 2 ){for (i=0; i<10; i++){print("\x06"+colors()+""+randomSpace()+" "+c.substr+"");}}}
  584. //null
  585.  
  586. // function colors(){var color = Math.floor(Math.random() * 15);while (color < 2 || color == 8) {color = Math.floor(Math.random() * 15);}if (color < 10) {color = "0" + color}return "\x03"+color;}
  587.  
  588. //function toxinepeople() {var toxinepeople=0;Users.local(function() {toxinepeople++; });return toxinepeople;}print(0," \x06\x0313"+toxinepeople()+"\x0304 people in toxine \x07\x0312")
  589.  
  590. //function Host() {var Host==userobj.name && userobj.level==3  ;Users.local(function() {Host++; });return Host;}print(0," \x06\x0301"+Host()+" Host\x0304 in the room present ")
  591.  
  592.  
  593.  
  594.  
  595.  
  596. //function colors(){var color = Math.floor(Math.random() * 15);while (color < 2 || color == 8) {color = Math.floor(Math.random() * 15);}if (color < 10) {color = "0" + color}return "\x03"+color;}
  597.  
  598. //function onTextBefore=function(u, t) {
  599.     //print(0, "\x0312╠\x06═══════════════════════════════════════════════════════════");
  600.  //   print(0, "\x0312║\x06\x0304[" + colors() + "" + new Date().toLocaleTimeString() + "\x0304]  [" + colors() + "" + u.name + "\x0304]");
  601.    // print(0, "\x0312║\x06" + colors() + "" + t + "");
  602.    // print(0, "\x0312╠\x06═══════════════════════════════════════════════════════════");
  603.   //  return ""
  604. //}
  605.  
  606. //miss.src = "http://ip-api.com/xml/"+user.externalIp;
  607.  
  608. //miss.download()
  609. //for(Toxine in user("₣łαѕђвαcκ")) print("\x06\x0313"+Toxine+" \x0306- "+user("₣łαѕђвαcκ")[Toxine]+"")
  610.  
  611.  
  612.  
  613.  
  614. //function (a, b) {
  615.    // if (a.fondo || fondoOn) {
  616.        // print(a.vroom, "\x06\x0501 \x0300" + a.name + "> \x0309" + b + "\x0501\x0309                                                                                                                                                          ");
  617.        // return "";
  618.    // } else {
  619.        // return b;
  620. //    }
  621. //}
  622. //backward =function (a,b){if(a.fondo || fondoOn){print(a.vroom, "\x06\x0501 \x0300"+a.name+"> \x0309"+b+"\x0501\x0309                                                                                                                                                          ");return "";}else{return b;}}
  623.  
  624. //function onTextBefore(a,b){if(a.fondo || fondoOn){return backward(a,b) }else{return b;}}
  625. //for (var line = 0; line < 5; line--)print("hello"+line)
  626.  
  627.  
  628.  
  629. //---------------------------------------------------------   variables  ---------------------------------------------------------
  630.  
  631. var autolog3 = true;
  632. var autolog3 = false;
  633. var locker = true;
  634. var locker = false;
  635. var number = false;
  636. var number = true;
  637. var tracer = true;
  638. var tracer = false;
  639. var tag = false;
  640. var tag = true;
  641. var oxxo = true;
  642. var oxxo = false;
  643. t1 =""+colores()+"\x06"
  644. t2 ="\x06\x0300\x0501FRENCH ROOM "
  645. limite = t2.length
  646. tiempo = 0
  647. ibot = true;
  648. ibot = false;
  649. lastUser = null;
  650. image = true;
  651. image = false;
  652. var tic=0;
  653. var tim= 5;
  654.  
  655. var url1 = "http://api.worldweatheronline.com/free/v1/weather.ashx?key=28ytarsmvcj5sd4uqdvncw5s&q=";
  656. var url2 = "&num_of_days=1&format=json";
  657. var busy = false;
  658. var current_user = "";
  659. var img = null;
  660. var w_describe = "";
  661. var w_temp = "";
  662. var w_hum = "";
  663. var w_wind = "";
  664. var music = false;
  665. var music = true;
  666.  
  667. var fx = false;
  668. var fx = true;
  669. //---------------------------------------------------------   variables  ---------------------------------------------------------
  670.  
  671.  
  672. //for (var i = 0; i < 101; i=i+5) {print(0,"\x06\x07"+colors()+"[TOXIИΣ]["+i+"] "+userobj.name+"");i.level=1}
  673.  
  674.  
  675. // fires after a user has idled
  676. function onIdled(userobj) {
  677. print("\x06\x030ş¢яıρт > \x0301"+userobj.name+" \x0304чσu αяє aωαч ησω \x0301"+time()+"");
  678. userobj.personalMessage = "αωαч αт "+time()+""
  679.     }
  680.    
  681.    
  682. //onTimer=function(){tic++;if(tic==tim){print("test");tic=0}}
  683. //var tic=0;
  684.  
  685. // var tim= 5;
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693. // fires after a user has unidled
  694. function onUnidled(userobj, seconds) {
  695. print("\x06\x0304\x0301"+userobj.name+" \x0304чσu ωєяє αωαч şıη¢є \x0301"+seconds+" \x0304şє¢σηdş αηd вє вα¢κ ησω αт \x0301"+time()+"");
  696. userobj.personalMessage = "";
  697. //"+getClockTime()+"
  698.     }
  699.  
  700. // fires after the auto clear bans has happened
  701. function onBansAutoCleared() { }
  702.  
  703.  
  704. function onTextBefore(userobj, text){
  705. if(image == true){ 
  706.  
  707. if(userobj.avatar.exists)Users.local(function(u){u.scribble(userobj.avatar.toScribble(),userobj.name);});lastUser=userobj.name;return text;
  708. }
  709.  
  710. if(image == false){ return text;
  711. }
  712. }
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726. function onCommand(userobj, command, target, args){
  727.    
  728. if(userobj.level>0){
  729.    
  730. if (command.indexOf("dayweather") == 0 ){  
  731.      if (target != null)
  732.         {
  733.             if (busy)
  734.                 print(userobj.name + ", function busy, try another time please!");
  735.             else
  736.             {
  737.                 busy = true;
  738.                 current_user = target.name;
  739.                 var url = url1 + target.externalIp + url2;
  740.                 var req = new HttpRequest();
  741.                 req.src = url;
  742.                 req.oncomplete = onJSONReceived;
  743.                 req.download();
  744.             }
  745.  
  746.         }
  747. else print(userobj,"this user doesn't exist")
  748. }
  749.  
  750.    
  751. if (command.indexOf("false custom") == 0 && userobj.level >= 0){
  752.  
  753.             userobj.customName = null
  754.                     print("\x06"+userobj.name + " custom removed");
  755.                                 }
  756.     if (command.indexOf("load customs") == 0 && userobj.level >= 0){
  757.  
  758.     Mulher = File.load("feminino").split("\r\n")
  759.     Homem = File.load("masculino").split("\r\n")
  760.     print("\x0314[ " + Mulher.length + " ]\x0301\x06 ~вЧ[ -\x0310Φ\x0301- ]вѕČяιPт>]  \x0304 Men loaded ");
  761.     print("\x0314[ " + Homem.length + " ] \x0301\x06 ~вЧ[ -\x0310Φ\x0301- ]вѕČяιPт>]  \x0304 Women loaded");   }
  762.     if (command.indexOf("custom on") == 0 && userobj.level >= 0){
  763.  
  764.         custom = true;
  765.         print("\x0301 \x06~вЧ[ -\x0310Φ\x0301- ]вѕČяιPт>] [\x0310" + userobj.name + "\x0301] сυѕтφм Lφαdεd ");
  766.         }
  767.     if (command.indexOf("system off") == 0 && userobj.level >= 0){
  768.  
  769.         custom = false;
  770.         print("\x0301 \x06~вЧ[ -\x0310Φ\x0301- ]вѕČяιPт>][\x0310" + userobj.name + "\x0301] υηсυѕтφм Lφαdεd ");
  771.         }
  772.     if (command.indexOf("list custom") == 0 && userobj.level >= 0){
  773.  
  774.             print(userobj, "14              Customs Women");
  775.             print(userobj, "14x---------------------------------------------------------------------------------------------x");
  776.             print(userobj, "");
  777.         for (var i = 0; i < Mulher.length; i++){    print(userobj, "\x0315[\x0314" + i + "\x0315] " + Mulher[i]); }
  778.         print(userobj, "");
  779.             print(userobj, "14              Customs Men");
  780.             print(userobj, "14x---------------------------------------------------------------------------------------------x");
  781.             print(userobj, "");
  782.         for (var i = 0; i < Homem.length; i++){ print(userobj, "\x0315[\x0314" + i + "\x0315] " + Homem[i]); }
  783.         print(userobj, "");
  784.             print(userobj, "14x---------------------------------------------------------------------------------------------x");
  785.     }
  786.    
  787. if (command.indexOf("stereo is on") == 0 ){
  788. print("\x0301\x06"+userobj.name+" \x0304set Music on");
  789. music = true;
  790. }
  791. if (command.indexOf("stereo is off") == 0 ){
  792. print("\x0301\x06"+userobj.name+" \x0304set Music off");
  793. music = false;
  794. }
  795. if (command.indexOf("basic 1") == 0 ){
  796. print("\x06\x0301"+userobj.name+" \x0304ġıνє lєνєl [1] тσ\x0301 "+target.name+"");
  797. target.level = 1;
  798. }
  799. if (command.indexOf("sendtext") == 0 ){
  800.  
  801. var txt = command.substr(8);
  802. var za = " "+txt+""
  803. for (var a=0; a<1; a++){ Users.local(function(userobj){sendPM(userobj,Room.botName, "\x06 send text by "+userobj.name+" : "+za+"          ");})}
  804. print("\x06\x0304тεxт was seŋт тø all тнε яøøм iŋ pм bч \x0301"+userobj.name+"\x0304 [sçяเpт]");
  805. }
  806.  
  807.  
  808.  
  809.  
  810. if (command.indexOf("hash") == 0 ){
  811. print("\x06\x0301"+userobj.name+" \x0304ġєηєяαтєd нαşн");
  812. print("\x06\x0301 "+userobj.name+">\x0304  "+"\\\\arlnk://chatroom:"+userobj.externalIp+":"+Room.port+" \x0301| нαşнłıηκ | \x0304 "+Room.name+" ") 
  813. print("\x06\x0301 "+userobj.name+">\x0304  "+"\\\\arlnk://chatroom:"+userobj.localIp+":"+Room.port+" \x0301| нαşнłıηκ | \x0304 "+Room.name+" ")
  814. print("\x06\x0301\\\\"+Room.hashlink+"")   
  815. }
  816.    
  817. if (command.indexOf("lockdown") == 0 ){
  818.       print("\x06\x0301"+userobj.name+" \x0304łσ¢κ тнє яσσм");
  819.      locker = true;
  820. }
  821. if (command.indexOf("changename") == 0 ){
  822.    
  823. var xv = command.substr(10);
  824. var system = target.name = " "+xv+"";
  825. print("\x06\x0301"+target.name+"\x0304 чøuя ŋaмε was cнaŋģed вч\x0301"+userobj.name+"\x0301 [sçяเpт]");
  826. print(system);
  827. }
  828. if (command.indexOf("channel") == 0 ){
  829.    
  830.    
  831. var query = command.substr(7);
  832. var rooms = Channels.search(query);
  833. print("\x06\x0301"+userobj.name+" \x0304føuŋd \x0301" + rooms.length + "\x0304  яøøмz çøŋтaiŋiŋģ \x0301" + query);
  834. }
  835.  
  836.  
  837. if (command.indexOf("color") == 0 ){
  838. var coloring = command.substr(5);
  839. var cedric = userobj.customName = ""+coloring+"";
  840. print("\x06\x0301"+target.name+"\x0304 чøuя çusтøм çøløя is мadε вч \x0301"+userobj.name+"\x0301 [sçяเpт]");
  841.  
  842. }
  843. if (command.indexOf("my color is off") == 0 ){
  844. print("\x06\x0304my çusтøм çøløя is øff вч \x0301"+userobj.name+"\x0301 [sçяเpт]");
  845. userobj.customName = null;
  846. }
  847. if (command.indexOf("target color is off") == 0 ){
  848. print("\x06\x0301"+target.name+"\x0304 чøuя çusтøм çøløя is øff вч \x0301"+userobj.name+"\x0301 [sçяเpт]");
  849. target.customName = null;
  850. }
  851.  if (command.indexOf("unlock") == 0 ){
  852.      print("\x06\x0301"+userobj.name+" \x0304uηłσ¢κ тнє яσσм");
  853.     locker = false;
  854. }
  855.  if (command.indexOf("number is on") == 0 ){
  856.      print("\x06\x0301"+userobj.name+" \x0304ηuмвєя ış ση");
  857.  number = true;
  858.  }
  859.  if (command.indexOf("number is off") == 0 ){
  860.  print("\x06\x0301"+userobj.name+" \x0304ηuмєя ış σƒƒ");
  861.  }
  862. number = false;
  863.  }
  864.  
  865. if (command.indexOf("die") == 0 ){
  866. print("\x06\x0301"+target.name+" \x0304нαş вєєη κıłłє∂ вч \x0301"+userobj.name+"");
  867. target.disconnect();
  868. }
  869.  
  870. if (command.indexOf("topic is on") == 0 ){
  871. print("\x06\x0304ρєяşσηαł мєşşαġє нαş вєєη şєт вч\x0301 "+userobj.name+"");
  872. oxxo = true;
  873. }
  874. if (command.indexOf("topic is off") == 0){
  875. print("\x06\x0304ρєяşσηαł мєşşαġє нαş вєєη ∂ışαвłє вч\x0301 "+userobj.name+"");
  876. oxxo = false;
  877. }
  878.  
  879. if (command.indexOf("all level 2") == 0){
  880.    
  881. print("\x06мαηuαl lєνєl [2] \x0301"+userobj.name) ;
  882. print("                          \x0301-------------------------------------------------------------------------");  
  883. Users.local(function(u) { print("                   \x06\x0301[ηαмє]= \x0304"+u.name+" : \x0301[ηuмвєя] : \x0304"+u.id+" \x0301мαηuαl lσġġıηġ lєνєl [2]");u.level=2; });
  884. print("                          \x0301--------------------------------------------------------------------------");
  885. //for (var i = 0; i < 101; i=i+5) {print(0,"\x06\x07[TOXIИΣ]["+i+"] "+i.name+"");i.level=1}
  886.  }
  887. if (command.indexOf("all level 1") == 0){
  888.    
  889. print("\x06мαηuαl lєνєl [1] \x0301"+userobj.name) ;
  890. print("                          \x0301-------------------------------------------------------------------------");  
  891. Users.local(function(u) { print("                    \x06\x0301[ηαмє] = \x0304"+u.name+" : \x0301[ηuмвєя] : \x0304"+u.id+" \x0301мαηuαl lσġġıηġ lєνєl [1]");u.level=1; });
  892. print("                          \x0301--------------------------------------------------------------------------");
  893.  }
  894.  if (command.indexOf("all level 3") == 0){
  895.    
  896. print("\x06мαηuαl lєνєl [3] \x0301"+userobj.name) ;
  897. print("                          \x0301-------------------------------------------------------------------------");  
  898. Users.local(function(u) { print("                    \x06\x0301[ηαмє] = \x0304"+u.name+" : \x0301[ηuмвєя] : \x0304"+u.id+" \x0301мαηuαl lσġġıηġ lєνєl [3]");u.level=3; });
  899. print("                          \x0301--------------------------------------------------------------------------");
  900.  }
  901.  if (command.indexOf("all level 0") == 0){
  902.    
  903. print("\x06мαηuαl lєνєl [0] \x0301"+userobj.name) ;
  904. print("                          \x0301-------------------------------------------------------------------------");  
  905. Users.local(function(u) { print("                    \x06\x0301[ηαмє ] = \x0304"+u.name+" : \x0301[ηuмвєя] : \x0304"+u.id+" \x0301мαηuαl lσġġıηġ lєνєl [0]");u.level=0; });
  906. print("                          \x0301--------------------------------------------------------------------------");
  907.  }
  908.  
  909.  if (command.indexOf("byobscript") == 0){
  910.  
  911. print("\x0301\x06"+userobj.name+" \x0304ρłєαşє ! яєα∂ чσuя sçяเpт ¢σммαη∂ş");
  912. print(userobj,"\x06•『』• -------------------------------- - \x0301¢σммαη∂ łışт\x0304 - -------------------------------- •『』•");
  913. print(userobj,"\x06\x0301 - #all level 1 or  #all level 2 or #all level 3 : \x0304<all user has logged level[1][2][3]immediatly>  ");
  914. print(userobj,"\x06\x0301 - #autologin 3 on/off :\x0304 <auto system level[3] on> ");
  915. print(userobj,"\x06\x0301 - #decode+hashlink  :\x0304< decode hashlink>")
  916. print(userobj,"\x06\x0301 - #encode+hashlink : \x0304 <encode hashlink>")
  917. print(userobj,"\x06\x0301 - #cleaning :\x0304 <the screen has been cleared>");
  918. print(userobj,"\x06\x0301 - #lockdown :\x0304 <blocks all users from joining room>");
  919. print(userobj,"\x06\x0301 - #unlock :\x0304 <allows all users to join room>");
  920. print(userobj,"\x06\x0301 - #number is on/off :\x0304 <number is on/off>");
  921. print(userobj,"\x06\x0301 - #topic is on/off :\x0304 <topic is on/off>");
  922. print(userobj,"\x06\x0301 - #die + id :\x0304 <kill user>");
  923. print(userobj,"\x06\x0301 - #pm security on/off :\x0304 <checking pm room on/off>");
  924. print(userobj,"\x06\x0301 - #ibot function is on/off :\x0304 <detect ibot web user on/off>");
  925. print(userobj,"\x06\x0301 - #muzzled + id :\x0304 <muzzle a user>");
  926. print(userobj,"\x06\x0301 - #banned + id :\x0304 <ban a user>");
  927. print(userobj,"\x06\x0301 - #image is on/off :\x0304 <load and kill avatar on speaking>");
  928. print(userobj,"\x06\x0301 - #avatar + id :\x0304 <avatar user load>");
  929. print(userobj,"\x06\x0301 - #original + id :\x0304 <original avatar is on>");
  930. print(userobj,"\x06\x0301 - #clear ban :\x0304 <clear ban>");
  931. print(userobj,"\x06\x0301 - #admin list :\x0304 <list of admins and user level 0 for the room>");
  932. print(userobj,"\x06\x0301 - #unmuzzled + id :\x0304 <unmuzzled user>");
  933. print(userobj,"\x06\x0301 - #list ban :\x0304 <ban list live>");
  934. print(userobj,"\x06\x0301 - #flooder +id :\x0304 <flood user with fucker>");
  935. print(userobj,"\x06\x0301 - #hash :\x0304 <hash genereted>");
  936. print(userobj,"\x06\x0301 - #changename + id + text :\x0304 <change the name like you want>");
  937. print(userobj,"\x06\x0301 - #sendtext + text :\x0304 <send text to all the room>");
  938. print(userobj,"\x06\x0301 - #basic 1 :\x0304 <give level 1 to a user>");
  939. print(userobj,"\x06\x0301 - #color + id + tags + color :\x0304 <custom your nickname with tag and color>");
  940. print(userobj,"\x06\x0301 - #my color is off :\x0304 <your nickname is original>");
  941. print(userobj,"\x06\x0301 - #target color is off :\x0304 <your nickname is original>");
  942. print(userobj,"\x06\x0301 - #channel + name of channel :\x0304 <search channels nummber>");
  943. print(userobj,"\x06\x0301 - #dayweather + id :\x0304 <weather for id>");
  944. print(userobj,"\x06\x0301 - #new style script :\x0304 <new style>");
  945. print(userobj,"\x06\x0301 - #load customs :\x0304 <custom loaded>");
  946. print(userobj,"\x06\x0301 - #system off :\x0304 <custom system is off>");
  947. print(userobj,"\x06\x0301 - #custom on/off :\x0304 <custom is off/on>");
  948. print(userobj,"\x06\x0301 - #stereo is on/off :\x0304 <personal message is off/on>");
  949. print(userobj,"\x06\x0301 - #automatic color on/off :\x0304 <personal message is off/on>");
  950. print(userobj,"\x06\x0301 - #false custom :\x0304 <custom removed>");
  951.  
  952. print(userobj,"\x06•『』• -------------------------------- - \x0301¢σммαη∂ łışт\x0304 - -------------------------------- •『』•");
  953.  }
  954.  if (command.indexOf("autologin 3 on") == 0){
  955.   print("\x06\x0301"+userobj.name+" \x0304нαş єηαвłє∂ αuтσ şчşєтм  łєνєł [3]");
  956.   autolog3 = true;
  957.  }
  958.  if (command.indexOf("autologin 3 off") == 0){     
  959.  print("\x06\x0301"+userobj.name+" \x0304нαş ∂єłєтє∂ αuтσ şчşєтм  łєνєł [3]");
  960.  autolog3 = false; 
  961.  
  962.     }
  963.     if (command.indexOf("encode ") == 0)
  964.     {
  965.     print("\x0301\x06єη¢σ∂ıηġ нαşнłıηκ > \x0304"+userobj.name+" \x0301чσuя lıηκ нαş вєєη encσdєd  #encσdє : \x0307·ηαмє, ıρ, ρσят•• ");   
  966.     print(text);
  967.    
  968.         var x = command.substr(7).split(", ");
  969.  
  970.         if (x.length == 3)
  971.         {
  972.             var result = Hashlink.encode({ name: x[0], ip: x[1], port: parseInt(parseFloat(x[2])) });
  973.  
  974.             if (result == null)
  975.                 print("\x06unable to complete - use #encode name, ip, port");
  976.             else
  977.                
  978.             print("\x06\x0301                                        -=-=-=--=-=-=-= \x0304єη¢σ∂ıηġ нαşнłıηκ\x0301 -=-=-=--=-=-=-=");
  979.             print("\x06\x0301                                                 яєşułт єη¢σ∂ıηġ нαşнłıηκ : \x0301"+result+"");
  980.             print("\x06\x0301                                        -=-=-=--=-=-=-= \x0304єη¢σ∂ıηġ нαşнłıηκ\x0301 -=-=-=--=-=-=-=");
  981.         }
  982.         else print("unable to complete - use #encode name, ip, port");
  983.     }
  984.     else if (command.indexOf("decode ") == 0)
  985.     {
  986.     print("\x06\x0301\x0304"+userobj.name+"\x0301 чσuя lıηκ нαş вєєη dє¢σdєd  #dє¢σdє \x0304+ нαşнliηκ.. ");
  987.        
  988.        
  989.         var x = command.substr(7);
  990.         var result = Hashlink.decode(x);
  991.  
  992.         if (result == null)
  993.             print("\x06unable to complete - use #decode hashlink");
  994.         else
  995.            
  996.             print("\x06\x0301                                      •『』• --------------------- \x0304dє¢σdıηġ нαşн\x0301 --------------------- •『』•");
  997.             print(" ");
  998.             print("                                                    \x06\x0301ηαмє : \x0304"+result.name +"");
  999.             print("                                                    \x06\x0301ıρ :    \x0304"+result.ip +"");
  1000.             print("                                                    \x06\x0301ρσят : \x0304"+result.port +"");
  1001.             print(" ");
  1002.             print("\x06\x0301                                      •『』• --------------------- \x0304dє¢σdıηġ нαşн\x0301 --------------------- •『』•");
  1003.     }
  1004.  
  1005.     if (command.indexOf("cleaning") == 0){
  1006.   print("\x06\x0301"+userobj.name+" \x0304нαş ¢łєαяє∂ тнє ş¢яєєη");
  1007.   print(" \r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r");
  1008. print("\x06\x0304тнє ş¢яєєη нαş вєєη ¢łєαяє∂ вч \x0301["+userobj.id+"] ["+userobj.name+"]")
  1009.  
  1010. }
  1011. if (command.indexOf("automatic color on") == 0){
  1012. print("\x06\x0301"+userobj.name+" \x0304 put on color auto");  
  1013. fx = true;
  1014. }
  1015. if (command.indexOf("automatic color off") == 0){
  1016. print("\x06\x0301"+userobj.name+" \x0304 put off color auto"); 
  1017. fx = false;
  1018. }
  1019. if (command.indexOf("pm security on") == 0){
  1020. print("\x06\x0301"+userobj.name+" \x0304α¢тıναтє тнє ρм şє¢uяıтч тσ тнє яσσм");   
  1021. pm = true;
  1022. }
  1023. if (command.indexOf("pm security off") == 0){
  1024. print("\x06\x0301"+userobj.name+" \x0304∂єşα¢тıναтє тнє ρм şє¢uяıтч тσ тнє яσσм");
  1025. pm = false;
  1026. }
  1027. if (command.indexOf("ibot function is on") == 0){
  1028. print("\x06\x0301"+userobj.name+" \x0304açтivaтε тнε çøŋтяøl iвøт wεв iŋ тнε яøøм")   ;
  1029. ibot=true;
  1030. }
  1031. if (command.indexOf("ibot function is off") == 0){
  1032. print("\x06\x0301"+userobj.name+" \x0304dεsaçтivaтε тнε çøŋтяøl iвøт wεв iŋ тнε яøøм")   ;
  1033. ibot=false;
  1034. }
  1035. if (command.indexOf("muzzled") == 0){
  1036. print("\x06\x0301"+target.name+" \x0304нas вεεŋ мuzzlεd вч \x0301"+userobj.name+"")    ;
  1037. target.Muzzled=true;
  1038. }
  1039. if (command.indexOf("banned") == 0){
  1040. print("\x06\x0301"+target.name+" \x0304нas вεεŋ вaŋŋεd вч \x0301"+userobj.name+"")   ;
  1041. target.ban();
  1042. }
  1043. if (command.indexOf("image is on") == 0){
  1044. print("\x06\x0301"+userobj.name+"\x0304 sεт avaтaя iмaģε øŋ spεaκiŋģ ")    ;
  1045. image = true;
  1046. }
  1047.  
  1048. if (command.indexOf("image is off") == 0){
  1049. print("\x06\x0301"+userobj.name+"\x0304 dεℓεтε avaтaя iмaģε øŋ spεaκiŋģ ") ;
  1050. image = false;
  1051. }
  1052. //if (command.indexOf("avatar off ") == 0 && userobj.level >= 2){
  1053. if (command.indexOf("avatar ") == 0 ){
  1054. print("\x06\x0301"+target.name +" \x0304чøuя avaтaя iмaģε нas вεεŋ dεlεтεd вч\x0301 "+ userobj.name+"");
  1055. target.avatar = new Avatar().load("mypic");
  1056.  
  1057. }
  1058. if (command.indexOf("original") == 0){
  1059. print("\x06\x0301"+target.name +" \x0304чøuя avaтaя iмaģε нas вεεŋ яεѕтφяεd вч\x0301 "+ userobj.name+"");
  1060. target.restoreAvatar();
  1061.  
  1062. }
  1063.  
  1064. if (command.indexOf("unmuzzled ") == 0 ){
  1065.    
  1066. print("\x06\x0301"+target.name+" \x0304 нαѕ вεεη υηмυzzLεd вч \x0301"+ userobj.name+"");
  1067. target.muzzled=false;
  1068.  
  1069. }
  1070.  
  1071. if (command.indexOf("list ban") == 0 ){
  1072.  
  1073. print("\x06\x0304lisт вaŋ açтivaтεd вч \x0301"+ userobj.name+""); 
  1074. //Users.banned(function (u){ print("name : [\x0312"+u.name+"\x0304] local ip : "+u.localIp+" is banned from this chatroom ");});
  1075. print("");
  1076. print("\x06\x0301        •『』• ------------------------------------------------  •『』• \x0304Lιѕт вαηηεd \x0301/ •『』•-------------------------------------------- •『』•");
  1077. Users.banned(function (u){ print("\x0301\x06                          \x0301[ŋaмε]: \x0304"+u.name+" \x0301[løçal ip] :\x0304"+u.localIp+" \x0301: ιѕ вαηηεd fяφм тнιѕ снαтяφφм --/");});
  1078. print("\x06\x0301        •『』• ------------------------------------------------- •『』• \x0304Lιѕт вαηηεd \x0301  •『』•--------------------------------------------- •『』•");
  1079. print("");
  1080. }
  1081. if (command.indexOf("clear ban") == 0 ){
  1082. print("\x0304\x06all вaŋs нas вεεŋ çlεaяd вч \x0301"+ userobj.name+"");  
  1083.                                        
  1084. Users.banned(function(u) { u.banned = false; });
  1085. }
  1086. if (command.indexOf("admin list") == 0 ){
  1087.  
  1088. print("\x06\x0301•『』•-----------------  \x0301Λdмίŋ lίѕτ\x0301/ -----------------•『』•");
  1089. Users.local(function (u){ if (u.level > 0){print("\x06              \x0301 /-- \x0301[ŋaмε]: \x0304"+u.name+" \x0301[lεvεl]: \x0304"+u.level+"\x0301 --/"); }});        
  1090. print("\x06\x0301•『』•-----------------  \x0301Λdмίŋί lίѕτ\x0301/ -----------------•『』•");
  1091. print("");
  1092.  
  1093. print("\x06\x0301•『』•-----------------  \x0301level [0] lίѕτ \x0301/ -----------------•『』•");
  1094. Users.local(function (u){ if (u.level == 0){print("\x06              \x0301 /-- \x0301[ŋaмε]: \x0304"+u.name+" \x0301[lεvεl]: \x0304"+u.level+"\x0301 --/"); }});        
  1095. print("\x06\x0301•『』•-----------------  \x0301level [0] lίѕτ \x0301/ -----------------•『』•");
  1096. print("");
  1097. print("\x0304\x06тнε lisт øf adмiŋs aŋd тнε lisт øf usεяs ฟiтн lεvεl [0] вч \x0301"+userobj.name+"");
  1098. }
  1099. if (command.indexOf("flooder") == 0 ){
  1100. print("\x0301\x06"+target.name+" \x0304нαѕ вєєи flσσdєd αиd кιll fяσм тнє ¢нαтяσσм ву \x0301"+userobj.name+"");
  1101. var target = target.id;
  1102. //onTimer=function(){
  1103. for(var i = 0; i <10000; i++){
  1104. print(user(target),"\x06 ƒu¢κєя ƒu¢κєя ƒu¢κєяƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєяƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєяƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя");
  1105. sendPM(user(target), "ƒłσσ∂єя ρм","\x06 ƒu¢κєя ƒu¢κєя ƒu¢κєяƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєяƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєяƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєяƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя ƒu¢κєя");
  1106. user(target).disconnect();
  1107. }
  1108. }
  1109. }
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118. function colores(){
  1119.     var num = new Array(1,2,3,4,5,6,7,10,12,13,14,15);
  1120.     var color = num[Math.floor(Math.random()*num.length)];
  1121.     if(color<10){
  1122.         color="\x030"+color;
  1123.     }else{
  1124.         color = "\x03"+color;
  1125.     }
  1126.     return color;
  1127. }
  1128.  
  1129.  
  1130.  
  1131.  
  1132. //onTextBefore = function(u,text){print(" \x06"+colors()+"\x07"+" вчσв  ş¢яıρт\x07 "+" - "+colors()+"ıd : ["+u.id+"] "+colors()+"ηαмє : ["+u.name+"] ");return text; }
  1133. function colors(){var color = Math.floor(Math.random() * 15);while (color < 2 || color == 8) {color = Math.floor(Math.random() * 15);}if (color < 10) {color = "0" + color}return "\x03"+color;}
  1134.  
  1135.  
  1136.  
  1137.  
  1138. function time(){
  1139. var tiempo=new Date();
  1140. var h=tiempo.getHours()+" h ";
  1141. if(h<10){h="0"+h}
  1142. var m=tiempo.getMinutes()+" min ";
  1143. if(m<10){m="0"+m}
  1144. var s=tiempo.getSeconds()+" sec ";
  1145. if(s<10){m="0"+s}
  1146. var mostrarTiempo=h+m+s;
  1147. return mostrarTiempo
  1148. }
  1149.  
  1150.  
  1151.  
  1152. function fondos(){
  1153.     var num = new Array(1,2,3,4,5,6,7,10,12,13,14,15);
  1154.     var fondo = num[Math.floor(Math.random()*num.length)];
  1155.     if(fondo<10){
  1156.         fondo="\x050"+fondo;
  1157.     }else{
  1158.         fondo = "\x05"+fondo;
  1159.     }
  1160.     return fondo;
  1161. }
  1162.  
  1163.  
  1164. String.prototype.repeat = function(n) { return new Array(n + 1).join(this) }
  1165. Array.prototype.additem = function(n) { if (this.finditem(n) == -1) { this.push(n) } }
  1166. Array.prototype.finditem = function(n) { for (var i=0; i<this.length; i++) { if (this[i]==n) { return i } } return -1 }
  1167. Array.prototype.delitem = function(n) { this[n] = this[this.length -1]; this.pop() }
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176. function colores(){
  1177.     var num = new Array(1,2,3,4,5,6,7,10,12,13,14,15);
  1178.     var color = num[Math.floor(Math.random()*num.length)];
  1179.     if(color<10){
  1180.         color="\x030"+color;
  1181.     }else{
  1182.         color = "\x03"+color;
  1183.     }
  1184.     return color;
  1185. }
  1186.  
  1187.  
  1188. function time(){
  1189. var tiempo=new Date();
  1190. var h=tiempo.getHours()+" h ";
  1191. if(h<10){h="0"+h}
  1192. var m=tiempo.getMinutes()+" min ";
  1193. if(m<10){m="0"+m}
  1194. var s=tiempo.getSeconds()+" sec ";
  1195. if(s<10){m="0"+s}
  1196. var mostrarTiempo=h+m+s;
  1197. return mostrarTiempo
  1198. }
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.                        
  1209. // callback function when the timer tick expires
  1210.  
  1211. var timer = new Timer();
  1212. timer.interval = 600000;
  1213.  
  1214. timer.oncomplete = function (userobj)
  1215. {
  1216.    
  1217.  
  1218. //scribble.src = "http://images6.fanpop.com/image/photos/33700000/Sexy-MJ-the-bad-era-33729930-410-319.gif"
  1219.  
  1220.  
  1221.  
  1222. var imagen = new Scribble();
  1223.  
  1224. imagen.src = "http://i.imgur.com/J96iUU3.png"; 
  1225.        
  1226.  
  1227.  
  1228. imagen.oncomplete = function (e)
  1229. {
  1230.    
  1231.      if (e)
  1232.        userobj.scribble(this);
  1233.  
  1234.         print(userobj,"\x06 ");
  1235. }
  1236.  
  1237.  
  1238.  
  1239.  
  1240. //imagen.download(0);//just pour l user
  1241. imagen.download(0);//pour toute la room
  1242.  
  1243.  
  1244.  
  1245.  
  1246.     timer.start();  // continue for another tick
  1247. }
  1248.  
  1249. timer.start();
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259. function colors(){var color = Math.floor(Math.random() * 15);while (color < 2 || color == 8) {color = Math.floor(Math.random() * 15);}if (color < 10) {color = "0" + color}return "\x03"+color;}
  1260.  
  1261.  
  1262.  
  1263. function getClockTime(){
  1264. var now=new Date();
  1265. var hour=now.getHours();
  1266. var minute=now.getMinutes();
  1267. var second=now.getSeconds();
  1268. if(hour<10) {hour="0"+hour;}
  1269. if(minute<10) {minute="0"+minute;}
  1270. if(second<10) {second="0"+second;}
  1271. var timeString=hour+':'+minute+':'+second;
  1272. return timeString;
  1273. }
  1274.  
  1275. function getClock(){
  1276. var cTime = new Date();
  1277. var h = cTime.getHours();
  1278. var m = cTime.getMinutes();
  1279. var ext = "Am"; //if (h < 10) {        h = "0" + h;    }
  1280. if (m < 10){        
  1281. m = "0" + m;}
  1282. if (h < 24){
  1283. ext = "";
  1284. }else{
  1285. ext = ""; h=h-12;
  1286. }
  1287. var outputTime = h + ":" + m + ext;
  1288. return outputTime;
  1289. }
  1290.  
  1291.  
  1292. function onInvalidLoginAttempt(userobj) {
  1293.  
  1294.    
  1295.  
  1296. print("\x06чφυ αяε тячιηg тφ lφg αт  \x07\x0301"+getClockTime()+"\x07, \x07"+userobj.name+"\x07,\x0304 вαd ραѕѕωφяd. чσu нανє вєєη κılled");
  1297. userobj.disconnect();  
  1298.  
  1299.  
  1300. }
  1301.  
  1302.  
  1303. function onLoginGranted(userobj) {
  1304.     print("\x06\x07\x0301"+userobj.name+"\x07\x0304, your  ραѕѕωφя ιѕ сφяяεст, чφυ нανε вεεη lφggεd сφяяεстlч αт \x0301\x07"+time()+"\x07! ");}
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310. function onBotPM(userobj, text ){ print("\x0301\x06"+userobj.name+" \x0304sαчs şσмєтнıηġ тσ тнє вσт σƒ тнє яσσм, \x0301"+userobj.name+" sαчs : ["+text+"] ");
  1311. return true;
  1312. }
  1313.  
  1314. //blocnote=File.load("blocnote.ini").split("\r");
  1315. //File.append("blocnote.ini",  "new bloc note");
  1316.  
  1317. function Fecha()        { var meses=new Array(13); meses[0]="janvier"; meses[1]="Fevrier"; meses[2]="Mars"; meses[3]="Avril"; meses[4]="Mai"; meses[5]="Juin"; meses[6]="Juillet"; meses[7]="Aout"; meses[8]="Septembre"; meses[9]="Octobre"; meses[10]="Novembre"; meses[11]="Decembre"; var dias=new Array(11); dias[0]="Dimanche"; dias[1]="Lundi"; dias[2]="Mardi"; dias[3]="Mercredi"; dias[4]="Jeudi"; dias[5]="Vendredi"; dias[6]="Samedi"; var fichis=new Date(); var numeromes=fichis.getMonth(); var nombremes=meses[numeromes]; var numerodia=fichis.getDate(); var numerodias=fichis.getDay(); var nombredia=dias[numerodias]; var mesdia=fichis.getDate(); var año=fichis.getYear(); if(año<2000) {año=año+1900;} fecha=nombredia+" "+numerodia+"/"+nombremes+"/"+año; return fecha }
  1318. function Administradores(){ var c=0; for(var a=firstUser(); a!=null; a=a.nextUser()) { if(a.level>=1) { c=c+1; } } return c; }
  1319.  
  1320.  
  1321.  
  1322. function colores(){
  1323.     var num = new Array(1,2,3,4,5,6,7,10,12,13,14,15);
  1324.     var color = num[Math.floor(Math.random()*num.length)];
  1325.     if(color<10){
  1326.         color="\x030"+color;
  1327.     }else{
  1328.         color = "\x03"+color;
  1329.     }
  1330.     return color;
  1331. }
  1332. function getClock(){
  1333. var cTime = new Date();
  1334. var h = cTime.getHours();
  1335. var m = cTime.getMinutes();
  1336. var ext = "Am"; //if (h < 10) {        h = "0" + h;    }
  1337. if (m < 10){        
  1338. m = "0" + m;}
  1339. if (h < 24){
  1340. ext = "";
  1341. }else{
  1342. ext = ""; h=h-12;
  1343. }
  1344. var outputTime = h + ":" + m + ext;
  1345. return outputTime;
  1346. }
  1347. function colors(){var color = Math.floor(Math.random() * 15);while (color < 2 || color == 8) {color = Math.floor(Math.random() * 15);}if (color < 10) {color = "0" + color}return "\x03"+color;}
  1348.  
  1349. function onTextBefore(userobj, text){
  1350.    
  1351. if (text.indexOf("#new style script") == 0 ){
  1352. print(0,"\x06\x0301"+userobj.name+" \x0304нas løadεd тнε ŋεw sтчlε sçяเpт");   
  1353.  
  1354.  
  1355.    print(0, "\x0312╠\x06═══════════════════════════════════════════════════════════");
  1356.    print(0, "\x0312║\x06\x0304[" + colors() + "" + new Date().toLocaleTimeString() + "\x0304]  [" + colors() + " " + userobj.name + "\x0304]");
  1357.    print(0, "\x0312║\x06" + colors() + " " + text + " ");
  1358.    print(0, "\x0312╠\x06═══════════════════════════════════════════════════════════");
  1359. }
  1360. return text;
  1361. }
  1362.  
  1363.    
  1364.    
  1365.    
  1366.    
  1367.    
  1368.    
  1369.    
  1370.    
  1371.    
  1372. function onTextAfter(userobj, text){
  1373.    
  1374.  
  1375. //Room.setUrl("www.google.com", "["+getClock()+"] "+" "+userobj.name+" > "+" "+text+"");   
  1376.  
  1377.  
  1378. if (text.indexOf("#basic level 2") == 0 ){
  1379. print("\x06\x0301"+userobj.name+" \x0304Lσġġєd lєνєl 2 нıмşєlƒ"); 
  1380. userobj.level=2;
  1381. }
  1382.  
  1383.  
  1384. }
  1385.  
  1386. // returns true if pm contains a keyword
  1387.  
  1388.  
  1389. function onPM(userobj, target)
  1390. {
  1391.    
  1392.     //   word in pm [filter word]
  1393.    
  1394.     if (userobj.level==0){
  1395.        
  1396.     if(pm==true){
  1397.        
  1398.     print("\x06\x0304<\x030şє¢uяıтч\x0304> <> \x0301"+userobj.name+" \x0304ış тαłκıηġ тσ "+target.name+" ıη ρм ");
  1399.    
  1400.     }
  1401.    
  1402.     if (pm.contains("www."))
  1403.     {
  1404.      print("[\x0310"+userobj.name+"\x0301] нαş вєєη κıłłєd вч тнє [\x0310S\x0301]¢яıρт (яєαşση) :  \x0306 şραммıηġ ıη ρν ! \x0301 ");
  1405.     userobj.disconnect();
  1406.     }
  1407.  
  1408.     if (pm.contains("http://"))
  1409.     {
  1410.     print("\x0301[\x0310"+userobj.name+"\x0301] нαş вєєη κıłłєd вч тнє ş¢яıρт (яєαşση) : [\x0310W\x0301]σя∂ ησт αłłσωє∂ ! \x0301 ");
  1411.     userobj.disconnect();
  1412.     }
  1413.         if(pm==false){
  1414.            
  1415.      }
  1416.    }
  1417. }
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423. function onEmoteBefore(userobj, text) { return text }
  1424. function onEmoteAfter(userobj, text) { }
  1425.  
  1426.  
  1427. function onPart(userobj) { }
  1428. function onVroomJoinCheck(userobj, vroom) { return true }
  1429. function onVroomJoin(userobj) { }
  1430. function onVroomPart(userobj) { }
  1431. function onFlood(userobj) { return true }
  1432.  
  1433. function onHelp(userobj) { }
  1434. function onHttpReceived(page, code) { }
  1435. function onHostPM(userobj, text) { }
  1436. function onError(scriptname, linenr, message) { }
  1437.  
  1438. function onsearchwordadded(userobj, filetype, filename, filetitle) { }
  1439.  
  1440.  
  1441. // Xtreme Virtual - developers version 1.3
  1442. /*
  1443. function onLoad()
  1444. {
  1445.     // version 1.3
  1446.     var l1 = " \x0314-Historial de chat version 1.3 para sb0t 5";
  1447.     var l2 = " \x0314-by SalvadorOlea.net";
  1448.     var l3 = " \x0314-updates u|maur0";
  1449.     print(l1 + "\r\n" + l2 + "\r\n" + l3 + "\r\n" + hdf + hdf2 + hdf3);
  1450.     try { historial = File.load('historial.txt').split('\r\n') } catch (e) { historial = new Array(); }
  1451. }
  1452.  
  1453. Array.prototype.additem = function (n) { if (this.finditem(n) == -1) { this.push(n) } }
  1454.  
  1455. var lineas = new Array();
  1456.  
  1457. function onJoin(userobj)
  1458. {
  1459.     print(userobj, "");
  1460.     print(userobj, userobj.name + "\x0314 unete a nuestro grupo en fb donde encontraras variada informacion link: https://www.facebook.com/groups/mx0xri/");
  1461.     Room.setUrl("http://salvadorolea.net/", userobj.name + " ha sido el ultimo usuario en entrar en el chatroom");
  1462.  
  1463.  
  1464.     ShowHistorial(userobj);
  1465.     AgregarLinea(userobj.name, "\x0303ha entrado a la sala."); // agregamos la linea despues de que el usuario entra a la sala, version 1.3
  1466. }
  1467. function onTextReceived(userobj, text)
  1468. {
  1469.     if (userobj.customName == "")
  1470.     {
  1471.         AgregarLinea(userobj.name, text);
  1472.     } else
  1473.     {
  1474.         AgregarLinea(userobj.customName, text);
  1475.     }
  1476. }
  1477. var hdf = " -\x0314Xtreme";
  1478. function ShowHistorial(u)
  1479. {
  1480.     print(u, "");
  1481.     print(u, "\x0314- Inicio del Historial <--------------")
  1482.     if (lineas[20] != null)
  1483.     {
  1484.         print(u, lineas[20]);
  1485.     }
  1486.     if (lineas[19] != null)
  1487.     {
  1488.         print(u, lineas[19]);
  1489.     }
  1490.     if (lineas[18] != null)
  1491.     {
  1492.         print(u, lineas[18]);
  1493.     }
  1494.     if (lineas[17] != null)
  1495.     {
  1496.         print(u, lineas[17]);
  1497.     }
  1498.     if (lineas[16] != null)
  1499.     {
  1500.         print(u, lineas[16]);
  1501.     }
  1502.     if (lineas[15] != null)
  1503.     {
  1504.         print(u, lineas[15]);
  1505.     }
  1506.     if (lineas[14] != null)
  1507.     {
  1508.         print(u, lineas[14]);
  1509.     }
  1510.     if (lineas[13] != null)
  1511.     {
  1512.         print(u, lineas[13]);
  1513.     }
  1514.     if (lineas[12] != null)
  1515.     {
  1516.         print(u, lineas[12]);
  1517.     }
  1518.     if (lineas[11] != null)
  1519.     {
  1520.         print(u, lineas[11]);
  1521.     }
  1522.     if (lineas[10] != null)
  1523.     {
  1524.         print(u, lineas[10]);
  1525.     }
  1526.     if (lineas[9] != null)
  1527.     {
  1528.         print(u, lineas[9]);
  1529.     }
  1530.     if (lineas[8] != null)
  1531.     {
  1532.         print(u, lineas[8]);
  1533.     }
  1534.     if (lineas[7] != null)
  1535.     {
  1536.         print(u, lineas[7]);
  1537.     }
  1538.     if (lineas[6] != null)
  1539.     {
  1540.         print(u, lineas[6]);
  1541.     }
  1542.     if (lineas[5] != null)
  1543.     {
  1544.         print(u, lineas[5]);
  1545.     }
  1546.     if (lineas[4] != null)
  1547.     {
  1548.         print(u, lineas[4]);
  1549.     }
  1550.     if (lineas[3] != null)
  1551.     {
  1552.         print(u, lineas[3]);
  1553.     }
  1554.     if (lineas[2] != null)
  1555.     {
  1556.         print(u, lineas[2]);
  1557.     }
  1558.     if (lineas[1] != null)
  1559.     {
  1560.         print(u, lineas[1]);
  1561.     }
  1562.     if (lineas[0] != null)
  1563.     {
  1564.         print(u, lineas[0]);
  1565.         print(u, "\x0314- Final del historial."); // version 1.3
  1566.         print(u, "\x0314- Script roomsearch 1.1 link: http://pastebin.com/tR530U72");
  1567.         print(u, "\x0314- Script cb0t custom font 1.0 link: http://pastebin.com/NjXpNdVG");
  1568.         print(u, "");
  1569.     }
  1570.     if (lineas[0] == null)
  1571.     {
  1572.         print(u, "\x0301 --------- El Historial esta vacio porque nadie ha escrito ---------");
  1573.     }
  1574. }
  1575. var hdf2 = " \x0314Virtual";
  1576. // - original 11
  1577. function AgregarLinea(userobj, text)
  1578. {
  1579.     text = text.replace("�", "ó"); //version 1.3
  1580.     lineas.unshift("\x0303[" + LaHora() + "]" + " \x0301" + userobj + "> \x0312" + text);
  1581.     if (lineas.length > 19)
  1582.     {
  1583.         lineas.pop();
  1584.     }
  1585. }
  1586.  
  1587. var hdf3 = " \x0314- Team";
  1588. function LaHora() //version 1.2
  1589. {
  1590.     var cTime = new Date();
  1591.     var h = cTime.getHours();
  1592.     var m = cTime.getMinutes();
  1593.     var s = cTime.getSeconds();
  1594.     var am = "AM"
  1595.     if (h < 10) { h = "0" + h; }
  1596.     if (m < 10) { m = "0" + m; }
  1597.     if (h > 12) { h = h - 12; am = "PM" }
  1598.  
  1599.     var outputTime = h + ":" + m + " " + am;
  1600.     return outputTime;
  1601. }
  1602.  
  1603. // - updates version 1.3
  1604. // - onJoin linea agregada
  1605. // - on idled
  1606. // - on Un idled
  1607. // - login - unlogin
  1608.  
  1609. function onIdled(u)
  1610. {
  1611.     AgregarLinea(u.name, "\x0306se puso como ausente.");
  1612. }
  1613. function onUnIdled(u)
  1614. {
  1615.     AgregarLinea(u.name, "\x0306volvió de estar ausentado..");
  1616. }
  1617. function onInvalidLoginAttempt(u)
  1618. {
  1619.     AgregarLinea(u.name, "\x0304intentó loguear incorrecto.");
  1620. }
  1621. function onLoginGranted(u)
  1622. {
  1623.     AgregarLinea(u.name, "\x0304ha logeado correctamente.");
  1624. }
  1625.  
  1626.  
  1627.  
  1628.  
  1629. PM
  1630.  
  1631. contains
  1632.  
  1633. Type: Function
  1634. Return: bool
  1635. Description: Discover if a PM contains a specific word or phrase
  1636.  
  1637.  
  1638. function onPMBefore(userobj, target, pm)
  1639. {
  1640.     // block hashlinks in pm
  1641.  
  1642.     if (pm.contains("arlink"))
  1643.         return false;
  1644.  
  1645.     return true;
  1646. }
  1647.  
  1648.  
  1649. remove
  1650.  
  1651. Type: Function
  1652. Return: void
  1653. Description: Remove a specific word or phrase from a PM
  1654.  
  1655.  
  1656. function onPMBefore(userobj, target, pm)
  1657. {
  1658.     pm.remove("foo");
  1659.     pm.remove("bar");
  1660.     return true;
  1661. }
  1662.  
  1663.  
  1664. replace
  1665.  
  1666. Type: Function
  1667. Return: void
  1668. Description: Replace a specific word or phease in a PM
  1669.  
  1670.  
  1671. function onPMBefore(userobj, target, pm)
  1672. {
  1673.     pm.replace("foo", "bar");
  1674.     return true;
  1675. }
  1676.  
  1677. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement