Advertisement
Guest User

Untitled

a guest
Aug 7th, 2017
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 97.04 KB | None | 0 0
  1. ({
  2. serverStartUp : function() {
  3. this.init();
  4. }
  5. ,
  6. init : function() {
  7. lastMemUpdate = 0;
  8.  
  9. key = function(a,b) {
  10. return a + "*" + sys.name(b);
  11. }
  12.  
  13. semiUbers = [];
  14.  
  15. var tempU = new Array(150,249,250,382,383,384,483,484,487,505);
  16. for (x in tempU) {
  17. semiUbers[tempU[x]] = true;
  18. }
  19.  
  20. saveKey = function(thing, id, val) {
  21. sys.saveVal(key(thing,id), val);
  22. }
  23.  
  24. getKey = function(thing, id) {
  25. return sys.getVal(key(thing,id));
  26. }
  27.  
  28. hasBan = function(id, poke) {
  29. return clauses[id].indexOf("*" + poke + "*") != -1;
  30. }
  31.  
  32. cmp = function(a, b) {
  33. return a.toLowerCase() == b.toLowerCase();
  34. }
  35.  
  36. if (typeof(varsCreated) != 'undefined')
  37. return;
  38.  
  39. battlesStopped = false;
  40. channelUsers = [];
  41. channelTopics = [];
  42.  
  43. sys.setPA("forceSameTier");
  44. sys.setPA("touruser");
  45. sys.setPA("touradmin");
  46. sys.setPA("tourmod");
  47. sys.setPA("tourowner");
  48. sys.setPA("megaUser");
  49. megausers = sys.getVal("megausers");
  50.  
  51. muteall = false;
  52.  
  53. sys.setPA ("impersonation");
  54. sys.setPA ("muted");
  55. sys.setPA("caps");
  56. sys.setPA("timeCount");
  57. sys.setPA("floodCount");
  58. sys.setPA("joinoff");
  59. maxPlayersOnline = 0;
  60.  
  61. if (sys.existChannel("RP Channel")) {
  62. rpchannel = sys.channelId("RP Channel");
  63. } else {
  64. rpchannel = sys.createChannel("RP Channel");
  65. }
  66. if (sys.existChannel("League")) {
  67. leaguechannel = sys.channelId("League");
  68. } else {
  69. leaguechannel = sys.createChannel("League");
  70. }
  71. if (sys.existChannel("Staff Channel")) {
  72. staffchannel = sys.channelId("Staff Channel");
  73. } else {
  74. staffchannel = sys.createChannel("Staff Channel");
  75. }
  76. if (sys.existChannel("Script School")) {
  77. sschannel = sys.channelId("Script School");
  78. } else {
  79. sschannel = sys.createChannel("Script School");
  80. }
  81. if (sys.existChannel("Scripting Room")) {
  82. srchannel = sys.channelId("Scripting Room");
  83. } else {
  84. srchannel = sys.createChannel("Scripting Room");
  85. }
  86.  
  87. }
  88.  
  89. ,
  90.  
  91.  
  92. afterNewMessage : function (message) {
  93. if (message == "Script Check: OK") {
  94. sys.sendHtmlAll("<timestamp/><font color=orange><b>~~Server~~</f></b>:<font color=black> Script Check: <font color=black>Scripts were updated by the server!</f>");
  95. this.init();
  96. }
  97. }
  98.  
  99. ,
  100.  
  101. afterLogIn : function(src) {
  102. /* Welcome Darkness*/
  103. if (sys.name(src) == "Darkness") {
  104. sys.sendHtmlAll("<font color=black><b>~~Server~~</b>: <font color=black>Please welcome one of the site owners <b>Darkness</b>!");
  105. return;
  106. }
  107. /* Welcome Coyotte508*/
  108. if (sys.name(src) == "coyotte508") {
  109. sys.sendHtmlAll("<font color=green><b>~~Server~~</b>: <font color=green>Please welcome the head programmer of PO <b>coyotte508</b>!");
  110. return;
  111. }
  112. /* Welcome Crystal Moogle*/
  113. if (sys.name(src) == "Crystal Moogle") {
  114. sys.sendHtmlAll("<font color=pink><b>~~Server~~</b>: <font color=pink>Please welcome one of the site owners <b>Crystal Moogle</b>!");
  115. return;
  116. }
  117. sys.sendHtmlMessage(src, "<font color=green><b>+CommandBot</b>:</f> <font color=black>Use /commands or !commands to see the commands!");
  118.  
  119. if (sys.auth(src) == 0) {
  120. sys.sendHtmlAll("<b><font color=green><timestamp/>~~Server~~:</font></b> Please welcome <b>" + sys.name(src) + "</font></b>!");
  121. }
  122. if (sys.auth(src) == 1) {
  123. sys.sendHtmlAll("<b><font color=blue><timestamp/>~~Server~~:</font><b> Please welcome moderator <b>" + sys.name(src) + "</font></b>!");
  124. }
  125. if (sys.auth(src) == 2) {
  126. sys.sendHtmlAll("<b><font color=orange><timestamp/>~~Server~~:</font><b> Please welcome administrator <b>" + sys.name(src) + "</font></b>!");
  127. }
  128. if (sys.auth(src) == 3) {
  129. sys.sendHtmlAll("<b><font color=red><timestamp/>~~Server~~:</font><b> Please welcome owner <b>" + sys.name(src) + "</font></b>!");
  130. }
  131. if (sys.auth(src) == 4) {
  132. sys.sendHtmlAll("<b><font color=LimeGreen><timestamp/>~~Server~~:</font><b> Please welcome Hidden Auth <b>" + sys.name(src) + "</font></b>!");
  133. }
  134.  
  135. if (sys.getVal("muted*" + sys.ip(src)) == "true")
  136. muted[src] = true;
  137.  
  138. if (sys.numPlayers() > maxPlayersOnline) {
  139. maxPlayersOnline = sys.numPlayers();
  140. }
  141.  
  142. if (maxPlayersOnline > sys.getVal("MaxPlayersOnline")) {
  143. sys.saveVal("MaxPlayersOnline", maxPlayersOnline);
  144. }
  145.  
  146. if (!Topic) {Topic = sys.getFileContent("topic.txt");}
  147. sys.sendHtmlMessage(src,'<b><font color=limegreen>±Motd:<font color=black> </b>' + Topic);
  148. sys.sendMessage(src,"");
  149.  
  150. sys.sendMessage(src, "");
  151.  
  152. this.afterChangeTeam(src);
  153. }
  154.  
  155. ,
  156.  
  157. beforeChatMessage: function(src, message) {
  158. if (sys.auth(src) < 3 && muted[src] == true) {
  159. sys.stopEvent();
  160. sys.sendMessage(src, "~~Server~~: Sorry you have been muted for breaking the rules!");
  161. return;
  162. }
  163.  
  164. if ((message[0] == '/' || message[0] == '!') && message.length > 1) {
  165. if (parseInt(sys.time()) - lastMemUpdate > 500) {
  166. sys.clearChat();
  167. lastMemUpdate = parseInt(sys.time());
  168. }
  169. print("Command -- " + sys.name(src) + ": " + message);
  170. sys.stopEvent();
  171. var command;
  172. var commandData;
  173. var pos = message.indexOf(' ');
  174. var mcmd = [];
  175.  
  176. if (pos != -1) {
  177. command = message.substring(1, pos).toLowerCase();
  178. commandData = message.substr(pos+1);
  179. mcmd = commandData.split(':');
  180. } else {
  181. command = message.substr(1).toLowerCase();
  182. }
  183. var tar = sys.id(commandData);
  184.  
  185. function sendChanMessage(src, msg) {
  186. sys.sendMessage(src, msg, chan); }
  187.  
  188. var userCommands = ({
  189. "usercommands" : function () {
  190. sys.sendHtmlMessage(src, "<hr>");
  191. sys.sendHtmlMessage(src, "<font color=cornflowerblue><timestamp/><b>*** <font color=black>User Commands <font color=cornflowerblue>***</f>");
  192. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/catch</b></f>: <font color=black>to catch a pokemon. Theres a small chance you get a <font color=gold><b>Shiny</b><font color=black>, if you do be sure to put it in the journal!</f>");
  193. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/auth <font color=red>Name</b></f>: <font color=black>to show the server authlist</f>");
  194. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note:<font color=red> Name<font color=black> is either Mods, Admins or Owners, if you leave the <font color=green>Auth<font color=black> blank it shows all server auth.</f>");
  195. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/rules</b></f>: <font color=black>to show the server rules</f>");
  196. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/players</f></b>: <font color=black>to get the number of players online");
  197. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/torture <font color=red>Person</b></f> : <font color=black>to torture someone, its fun too! It gets a random result é.é");
  198. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note:<font color=red> Person<font color=black> is any online person on the server.</f>");
  199. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/credits</b></f>: <font color=black>to view the credits and how to get these scripts.");
  200. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/viewjournal</b></f>: <font color=black>to view the book of wonderful comments");
  201. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note:<font color=black> IF you see a trolled guest book please report this to the server Admins/Owners.");
  202. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/signjournal <font color=red> Quote/Message</b></f>: <font color=black>be apart of the wonderful journal!");
  203. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note: <font color=red>Quote/Message</f><font color=black> is any quote or message you would like to share.");
  204. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note: <font color=red></f><font color=black>IF you ever troll the guest book the chance is high that you are getting banned.</f>");
  205. sys.sendHtmlMessage(src, "<hr>");
  206. return;
  207. }
  208. ,
  209. commands: function () {
  210. sys.sendHtmlMessage(src, "<hr>");
  211. sys.sendHtmlMessage(src, "<font color=limegreen><timestamp/><b>*** Commands ***");
  212. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/UserCommands</f></b>: <font color=green>For Users");
  213. sys.sendHtmlMessage(src, "<font color=purple><timestamp/><b>/HtmlCommands</f></b>: <font color=purple>For HTML Commands");
  214. sys.sendHtmlMessage(src, "<font color=gold><timestamp/><b>/TourCommands</f></b>: <font color=gold>For Tour Commands");
  215. if (sys.auth(src) < 1) {
  216. sys.sendHtmlMessage(src, "<font color=orange><timestamp/><b>~~Bot~~</f></b>: <font color=black>Sorry but you need auth if you want to see the other commands.");
  217. sys.sendHtmlMessage(src, "<hr>");
  218. return;
  219. }
  220. sys.sendHtmlMessage(src, "<font color=blue><timestamp/><b>/ModCommands</f></b>: <font color=blue>For Moderators");
  221. if (sys.auth(src) < 2) {
  222. sys.sendHtmlMessage(src, "<font color=orange><timestamp/><b>~~Bot~~</f></b>: <font color=black>Sorry but you need higher auth if you want to see the other commands.");
  223. sys.sendHtmlMessage(src, "<hr>");
  224. return;
  225. }
  226. sys.sendHtmlMessage(src, "<font color=orange><timestamp/><b>/AdminCommands</f></b>: <font color=orange>For Administrators");
  227. if (sys.auth(src) < 3) {
  228. sys.sendHtmlMessage(src, "<font color=orange><timestamp/><b>~~Bot~~</f></b>: <font color=black>Sorry but you need higher auth if you want to see the other commands.");
  229. sys.sendHtmlMessage(src, "<hr>");
  230. return;
  231. }
  232. sys.sendHtmlMessage(src, "<font color=red><timestamp/><b>/OwnerCommands</f></b>: <font color=red>For Owners");
  233. sys.sendHtmlMessage(src, "<hr>");
  234. return; }
  235. ,
  236. me:function () {
  237. sys.sendAll("*** " + sys.name(src) + " " + commandData); }
  238. ,
  239. htmlme:function () {
  240. sys.sendHtmlAll("<font color=fuchsia><timestamp/>*** </font> <b>" + sys.name(src) + "</b> " + commandData); }
  241. ,
  242. htmlcommands: function () {
  243. sys.sendHtmlMessage(src, "<hr>");
  244. sys.sendHtmlMessage(src, "<font color=red><timestamp/><b>*** <font color=black>Html Commands <font color=red>***</f>");
  245. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/sendAll <font color=red>Message<font color=black></b> : <font color=black>to send a message to everyone</f>.");
  246. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note:<font color=red> Message<font color=black> is any message.</f>");
  247. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/sendmessage <font color=red>Message<font color=black></b> : <font color=black>to send a message to yourself.");
  248. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note:<font color=red> Message<font color=black> is any message.</f>");
  249. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/sendHtmlAll <font color=red>Message<font color=black></b> : <font color=black>to send a message to everyone using HTML.");
  250. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note:<font color=red> Message<font color=black> is any message, HTML Allowed</f>");
  251. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/sendHtmlMessage <font color=red>Message<font color=black></b> : <font color=black>to send a message to yourself using HTML.");
  252. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note:<font color=red> Message<font color=black> is any message, HTML Allowed</f>");
  253. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/me <font color=red>Message</b><font color=black>: to send a message to everyone with *** before your name</f>");
  254. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note:<font color=red> Message<font color=black> is any message.</f>");
  255. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/htmlme <font color=red>Message</b><font color=black>: to send a message to everyone with *** before your name and HTML</f>");
  256. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note:<font color=red> Message<font color=black> is any message, HTML Allowed</f>");
  257. sys.sendHtmlMessage(src, "<hr>");
  258. return; }
  259. ,
  260. tourcommands: function () {
  261. sys.sendHtmlMessage(src, "<hr>");
  262. sys.sendHtmlMessage(src, "<font color=gold><timestamp/><b>*** <font color=black>Tour Commands <font color=gold>***</f>");
  263. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/join <font color=black></b> : <font color=black>to join the tour</f>.");
  264. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/leave <font color=black></b> : <font color=black>to leave the tour</f>.");
  265. if (sys.auth(src) < 1) {
  266. sys.sendHtmlMessage(src, "<font color=orange><timestamp/><b>~~Bot~~:</b> <font color=black>Sorry but to the see other commands you need auth.</f>.");
  267. sys.sendHtmlMessage(src, "<hr>");
  268. return;
  269. }
  270. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/settier <font color=red>Tier<font color=black></b> : <font color=black>to send a the message what the tier is</f>.");
  271. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note:<font color=red> Tier<font color=black> is any message, if you want a falid tour put a tier that exists.</f>");
  272. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/setpeople <font color=red>People<font color=black></b> : <font color=black>to send the message that shows how many people may join the tour.");
  273. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note:<font color=red> People<font color=black> is any number of people, for a falid tour put numbers.</f>");
  274. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/tour <font color=black></b> : <font color=black>to show that a tour is about to start.");
  275. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/round <font color=red>Number<font color=black></b> : <font color=black>to show the current round.");
  276. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note:<font color=red> Number<font color=black> is any number</f>");
  277. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/round<font color=red>1/2/3/4/5</b><font color=black>: to show the current round</f>");
  278. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note:<font color=red> 1/2/3/4/5<font color=black> is the current round, must be placed like /round1 to work and this only works for numbers 1 to 5.</f>");
  279. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/joinon <font color=black></b> : <font color=black>to start the signups</f>.");
  280. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/joinoff <font color=black></b> : <font color=black>to end the signups</f>.");
  281. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/massdq <font color=black></b> : <font color=black>to DQ all people in the tour.");
  282. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/endtour <font color=black></b> : <font color=black>to end the current tour.");
  283. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/push <font color=red>Person<font color=black></b> : <font color=black>to put someone in the tour.");
  284. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note:<font color=red> Person<font color=black> is any online player.</f>");
  285. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/dq <font color=red>Person<font color=black></b> : <font color=black>to DQ someone from the tour.");
  286. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note:<font color=red> Person<font color=black> is any online player.</f>");
  287. if (sys.auth(src) < 3) {
  288. sys.sendHtmlMessage(src, "<font color=orange><timestamp/><b>~~Bot~~:</b> <font color=black>Sorry but to the see other commands you need higher auth.</f>.");
  289. sys.sendHtmlMessage(src, "<hr>");
  290. return;
  291. }
  292. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/<font color=blue>TourAuthName<font color=red> Person</f></b>: <font color=black>give someone auth."); // you use the 's' if you want to do it SILENTLY //
  293. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note: <font color=blue> TourAuthName</f><font color=black> is any tourauthname, <font color=red>Person<font color=black> is any online player.");
  294. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/tourauthnames</f></b>: <font color=black>view authnames for the /TourAuthName.");
  295. sys.sendHtmlMessage(src, "<hr>");
  296. return; }
  297. ,
  298. join : function () {
  299. sys.sendHtmlAll("<font color=orange><timestamp/><b>~~Bot~~:</font></b> </b>" + sys.name(src) + "</b> has joined the tour</font></b>!");
  300. return; }
  301. ,
  302. leave : function () {
  303. sys.sendHtmlAll("<font color=orange><timestamp/><b>~~Bot~~:</font></b> </b>" + sys.name(src) + "</b> has left the tour</font></b>!");
  304. return; }
  305. ,
  306. dq : function () {
  307. if (sys.auth(src) < 1) {
  308. sys.sendHtmlMessage(src, "<font color=orange><timestamp/><b>~~Bot~~:</b> <font color=black>Sorry but to use this command you need auth.</f>.");
  309. return;
  310. }
  311. if (tar == undefined) {
  312. return;
  313. }
  314. sys.sendHtmlAll("<font color=orange><timestamp/><b>~~Bot~~:</font></b> </b>" + commandData + "</b> has been DQed by " + sys.name(src) + "</font></b>!");
  315. sys.sendHtmlMessage(tar, "<font color=orange><timestamp/><b>~~Bot~~:</font></b> You have been DQed from the tour by " + sys.name(src) + "</font></b>!");
  316. return; }
  317. ,
  318. push : function () {
  319. if (sys.auth(src) < 1) {
  320. sys.sendHtmlMessage(src, "<font color=orange><timestamp/><b>~~Bot~~:</b> <font color=black>Sorry but to use the command you need auth.</f>.");
  321. return;
  322. }
  323. if (tar == undefined) {
  324. return;
  325. }
  326. sys.sendHtmlAll("<font color=orange><timestamp/><b>~~Bot~~:</font></b> </b>" + commandData + "</b> has been pushed in the tour by " + sys.name(src) + "</font></b>!");
  327. sys.sendHtmlMessage(tar, "<font color=orange><timestamp/><b>~~Bot~~:</font></b> You have been pushed in the tour by " + sys.name(src) + "</font></b>!");
  328. return; }
  329. ,
  330. massdq : function () {
  331. if (sys.auth(src) < 1) {
  332. sys.sendHtmlMessage(src, "<font color=orange><timestamp/><b>~~Bot~~:</b> <font color=black>Sorry but to use this command you need auth.</f>.");
  333. return;
  334. }
  335. sys.sendHtmlAll("<font color=orange><timestamp/><b>~~Bot~~:</font></b> </b>All people who joined have been DQed by" + sys.name(src) + "</font></b>!");
  336. return; }
  337. ,
  338. sendmessage : function () {
  339. sys.sendMessage(src, commandData); }
  340. ,
  341. sendhtmlmessage : function () {
  342. sys.sendHtmlMessage(src, commandData); }
  343. ,
  344. sendall : function () {
  345. sys.sendAll(commandData); }
  346. ,
  347. sendhtmlall : function () {
  348. sys.sendHtmlAll(commandData); }
  349.  
  350. ,
  351. credits:function () {
  352. sys.sendHtmlMessage(src, "<hr>");
  353. sys.sendHtmlMessage(src, "<timestamp/><b><font color=skyblue><font size=3>Max for making the basic of these scripts!");
  354. sys.sendHtmlMessage(src, "<timestamp/><b><font color=red><font size=3>TheUnknownOne for adding commands and the tour script also for the editing!");
  355. sys.sendHtmlMessage(src, "<timestamp/><b><font color=darkblue><font size=3>Arceus for the catch command!");
  356. sys.sendHtmlMessage(src, "<timestamp/><b><font color=green><font size=3>Intel_iX for the editing and speeding the scripts up!");
  357. sys.sendHtmlMessage(src, "<timestamp/><b><font color=blue><font size=3>Ian for the clearchat command and the MOTD!");
  358. sys.sendHtmlMessage(src, "<timestamp/><b><font color=black><font size=3>If you want these scripts ask TheUnknownOne or Email <TheUnknownOne25@gmail.com>");
  359. sys.sendHtmlMessage(src, "<hr>");
  360. return; }
  361. ,
  362. torture : function () {
  363. if (tar == undefined) {
  364. sys.sendMessage(src, "~~Bot~~: You fail. That person is either not on or does not exist");
  365. return;
  366. }
  367.  
  368. var Links=new Array();
  369. Links[1]="~~Bot~~: " + commandData + " Has died from a falling meteorite!";
  370. Links[2]="~~Bot~~: " + commandData + " Has been picked up and chucked down a hole :D";
  371. Links[3]="~~Bot~~: " + commandData + " Has been told to go to his room and die of bordum";
  372. Links[4]="~~Bot~~: " + commandData + " Has had a heart attack and fell of the Grand Canyon";
  373. Links[5]="~~Bot~~: " + commandData + " Got to gotten hit by a car and died in the hospital";
  374. Links[6]="~~Bot~~: " + commandData + " Was made to smell spygirl's underwhere";
  375. var i = Math.floor(6*Math.random())
  376. sys.sendAll(Links[i]);
  377. return; }
  378. ,
  379. 'catch' : function () {
  380. var num=Math.floor(650*Math.random());
  381. var pokemon=sys.pokemon(num);
  382. var nature=Math.floor(25*Math.random());
  383. var nature=sys.nature(nature);
  384. var shiny=Math.floor(8192*Math.random());
  385. var hpiv=Math.floor(32*Math.random());
  386. var spaiv=Math.floor(32*Math.random());
  387. var atkiv=Math.floor(32*Math.random());
  388. var defiv=Math.floor(32*Math.random());
  389. var spdiv=Math.floor(32*Math.random());
  390. var speiv=Math.floor(32*Math.random());
  391. if (shiny!=8191)
  392. {
  393. sys.sendAll("~~CaptureBot~~: " + sys.name(src) + " has caught a " +pokemon + " with a " + nature + " nature!");
  394. sys.sendAll("~~CaptureBot~~: " + pokemon + " has the following IVs:");
  395. sys.sendAll("~~CaptureBot~~: HP: " + hpiv + " Atk: " + atkiv + " Def: " + defiv + " SpA: " + spaiv + " SpD: " + spdiv + " Spe: " + speiv + ".");
  396. }
  397. if (shiny==8191)
  398. {
  399. sys.sendAll("~~CaptureBot~~: " + sys.name(src) + " has caught a shiny " + pokemon + " with a " + nature + " nature!");
  400. sys.sendAll("~~CaptureBot~~: " + pokemon + " has the following IVs:");
  401. sys.sendAll("~~CaptureBot~~: HP: " + hpiv + " Atk: " + atkiv + " Def: " + defiv + " SpA: " + spaiv + " SpD: " + spdiv + " Spe: " + speiv + ".");
  402. sys.sendAll("~~CaptureBot~~: This is a rare event");
  403. }
  404. }
  405. ,
  406. rules : function () {
  407. sys.sendHtmlMessage(src, "<br>");
  408. sys.sendHtmlMessage(src, "<font color=red>*** <font color=black><b>Server Rules</b> <font color=black>***</f></b>");
  409. sys.sendHtmlMessage(src, "<b><font color=red>Rule #1<font color=black> - Do Not Abuse CAPS:</f></b>");
  410. sys.sendHtmlMessage(src, "- <b>The occasional word in CAPS is acceptable, however repeated use is not.</b>");
  411. sys.sendHtmlMessage(src, "<b><font color=red>Rule #2 - No Flooding the Chat:</f></b>");
  412. sys.sendHtmlMessage(src, "- <b>Please do not post a large amount of short messages when you can easily post one or two long messages.</f></b>");
  413. sys.sendHtmlMessage(src, "<b><font color=red>Rule #3 - Do not Challenge Spam:</f></b>");
  414. sys.sendHtmlMessage(src, "- <b>If a person refuses your challenge, this means they do not want to battle you. Find someone else to battle with.</f></b>");
  415. sys.sendHtmlMessage(src, "<b><font color=red>Rule #4 - Don't ask for battles in the main chat:</f></b>");
  416. sys.sendHtmlMessage(src, "- <b>There is a 'Find Battle' tab that you can use to find a battle immediately. If after a while you cannot find a match, then you can ask for one in the chat.</f></b>");
  417. sys.sendHtmlMessage(src, "<b><font color=red>Rule #5 - No Trolling/Flaming/Insulting of Any kind:</f></b>");
  418. sys.sendHtmlMessage(src, "- <b>Behaving stupidly and excessive vulgarity will not be tolerated</f></b>.");
  419. sys.sendHtmlMessage(src, "<b><font color=red>Rule #6 - Please only speak English:</f></b>");
  420. sys.sendHtmlMessage(src, "- <b>Most people speak a different language, which is ok. But please speak english</f></b>.");
  421. sys.sendHtmlMessage(src, "<b><font color=red>Rule #7 - No Advertising:");
  422. sys.sendHtmlMessage(src, "- <b>There will be absolutely no advertising on the server</f></b>.");
  423. sys.sendHtmlMessage(src, "<b><font color=red>Rule #8 - No Obscene or Pornographic Content Allowed:</f></b>");
  424. sys.sendHtmlMessage(src, "- <b>This includes links, texts, images, and any other kind of media. This will result in a instant ban.</f></b>");
  425. sys.sendHtmlMessage(src, "<b><font color=red>Rule #9 - Do not ask for Auth:</f></b>");
  426. sys.sendHtmlMessage(src," - <b>Authority is given upon merit. By asking you have pretty much eliminated your chances at becoming an Auth in the future.</f></b>");
  427. sys.sendHtmlMessage(src,"<b><font color=red>Rule #10 - Do not Insult Auth:</f></b>");
  428. sys.sendHtmlMessage(src, "- <b>Insulting Auth will result in immediate punishment.</f></b>");
  429. sys.sendHtmlMessage(src, "<br>");
  430. if (sys.auth(src) < 1) {
  431. return;
  432. }
  433. sys.sendHtmlMessage(src, "<br>");
  434. sys.sendHtmlMessage(src, "<font color=black>*** <font color=blue><b>Auth Rules</b> <font color=black>***</f></b>");
  435. sys.sendHtmlMessage(src, "<b><font color=red>Rule #1 - Behave yourself, act appropriately:");
  436. sys.sendHtmlMessage(src, "- <b>This is includes flaming, insulting, trolling of ANY KIND");
  437. sys.sendHtmlMessage(src,"<b><font color=red>Rule # 2 - Do not advertize:</f></b>");
  438. sys.sendHtmlMessage(src,"- <b>Do not advertize any other server or pages. Youtube or game, music pages are okay, but an excesive advertizing of them, could cause problems.</f></b>");
  439. sys.sendHtmlMessage(src,"<b><font color=red>Rule #3 - No Obscene or Pornographic Content Allowed:");
  440. sys.sendHtmlMessage(src,"- <b>This includes links, texts, images, and any other kind of obscene media. This will result in a instant ban.</f></b>");
  441. sys.sendHtmlMessage(src,"<b><font color=red>Rule #4 - Do not ask for Auth:</f></b>");
  442. sys.sendHtmlMessage(src,"- <b>Authority is given upon merit. By asking you have pretty much eliminated your chances at becoming an Auth in the future.</f></b>");
  443. sys.sendHtmlMessage(src, "<b><font color=red>Rule #5 - Do not Challenge Spam:</f></b>");
  444. sys.sendHtmlMessage(src, "- <b>If a person refuses your challenge, this means they do not want to battle you. Find someone else to battle with.</f></b>");
  445. sys.sendHtmlMessage(src, "<br>");
  446. }
  447. ,
  448. auth : function () {
  449. var authlist = sys.dbAuths().sort()
  450. sys.sendMessage(src, "");
  451. if(commandData == "owners") {
  452. sys.sendMessage(src, "*** Owners ***")
  453. for(var x in authlist) {
  454. if(sys.dbAuth(authlist[x]) == 3) {
  455. if(sys.id(authlist[x]) == undefined) {
  456. sys.sendMessage(src, authlist[x] + " (Offline)")
  457. }
  458. if(sys.id(authlist[x]) !=undefined) {
  459. sys.sendHtmlMessage(src, '<timestamp/><font color = "green">' + sys.name(sys.id(authlist[x])) + ' (Online)</font>')
  460. }
  461. }
  462. }
  463. sendChanMessage(src, "");
  464. }
  465. if(commandData == "admins" || commandData == "Administrators") {
  466. sys.sendMessage(src, "*** Administrators ***")
  467. for(var x in authlist) {
  468. if(sys.dbAuth(authlist[x]) == 2) {
  469. if(sys.id(authlist[x]) == undefined) {
  470. sys.sendMessage(src, authlist[x] + " (Offline)")
  471. }
  472. if(sys.id(authlist[x]) !=undefined) {
  473. sys.sendHtmlMessage(src, '<timestamp/><font color = "green">' + sys.name(sys.id(authlist[x])) + ' (Online)</font>')
  474. }
  475. }
  476. }
  477. sys.sendMessage(src, "");
  478. }
  479. if(commandData == "mods" || commandData == "Moderators") {
  480. sys.sendMessage(src, "*** Moderators ***")
  481. for(var x in authlist) {
  482. if(sys.dbAuth(authlist[x]) == 1) {
  483. if(sys.id(authlist[x]) == undefined) {
  484. sys.sendMessage(src, authlist[x] + " (Offline)")
  485. }
  486. if(sys.id(authlist[x]) !=undefined) {
  487. sys.sendHtmlMessage(src, '<timestamp/><font color = "green">' + sys.name(sys.id(authlist[x])) + ' (Online)</font>')
  488. }
  489. }
  490. }
  491. sys.sendMessage(src, "");
  492. }
  493.  
  494. if(commandData != "moderators" && commandData != "mods" &&commandData != "administrators" && commandData != "admins" && commandData != "owners") {
  495.  
  496. sys.sendMessage(src, "*** Owners ***")
  497. for (var x in authlist) {
  498. if (sys.dbAuth(authlist[x]) == 3) {
  499. if (sys.id(authlist[x]) == undefined) {
  500. sys.sendMessage(src, authlist[x]+ " (Offline)")
  501. }
  502. if (sys.id(authlist[x]) != undefined) {
  503. sys.sendHtmlMessage(src,'<timestamp/><font color = "green">' + sys.name(sys.id(authlist[x])) + ' (Online)</font>')
  504. }
  505. }
  506. }
  507. sys.sendMessage(src, "");
  508. sys.sendMessage(src, "*** Administrators ***")
  509. for( var x in authlist) {
  510. if (sys.dbAuth(authlist[x]) == 2) {
  511. if (sys.id(authlist[x]) == undefined) {
  512. sys.sendMessage(src, authlist[x] + " (Offline)")
  513. }
  514. if (sys.id(authlist[x]) != undefined) {
  515. sys.sendHtmlMessage(src, '<timestamp/><font color = "green">' + sys.name(sys.id(authlist[x])) + ' (Online)</font>')
  516. }
  517. }
  518. }
  519. sys.sendMessage(src, "");
  520. sys.sendMessage(src, "*** Moderators ***")
  521. for(x in authlist) {
  522. if(sys.dbAuth(authlist[x]) == 1) {
  523. if(sys.id(authlist[x]) == undefined) {
  524. sys.sendMessage(src, authlist[x]+ " (Offline)")
  525. }
  526. if(sys.id(authlist[x]) != undefined) {
  527. sys.sendHtmlMessage(src,'<timestamp/><font color = "green">' + sys.name(sys.id(authlist[x])) + ' (Online)</font>')
  528. }
  529. }
  530. }
  531. }
  532. return;
  533. }
  534. ,
  535. players: function () {
  536. sys.sendMessage(src, "+CountBot: There are " + sys.numPlayers() +" players online.");
  537. return;
  538. }
  539.  
  540. ,
  541. viewjournal : function (){
  542. sys.sendHtmlMessage(src, "");
  543. sys.sendHtmlMessage(src, '<timestamp/> <font color="red">*** The Guest Book ***</font>');
  544. sys.sendHtmlMessage(src, "");
  545. var get = sys.getFileContent("gb").split("*");
  546. for(x in get){
  547. sys.sendHtmlMessage(src,get[x]);
  548. }
  549. return; }
  550. ,
  551. signjournal : function () {
  552. if (commandData == undefined) {
  553. var get = sys.getFileContent("gb");
  554. sys.writeToFile("gb",get + sys.name(src) + "*");
  555. sys.sendAll(sys.name(src) + " " + "signed the guest book!");
  556. return;
  557. }
  558. var qu = commandData.match(/<(\w+)[^>]*>/g);
  559. if (qu) {
  560. for (var x in qu) {
  561. commandData+= qu[x].replace(/<(\w+)[^>]*>/g,'</$1>'); }
  562. }
  563. if (message.search(/[\u202E\u202D]/) != -1) {
  564. return; }
  565. var get = sys.getFileContent("gb");
  566. sys.writeToFile("gb",get + sys.name(src) + " - " + commandData +"*");
  567. sys.sendAll(sys.name(src) + " " + "signed the guest book!");
  568. return; }
  569. });
  570.  
  571. var modCommands = ({
  572. modcommands: function () {
  573. sys.sendHtmlMessage(src, "<hr>");
  574. sys.sendHtmlMessage(src, "<font color=orange><timestamp/><b>*** <font color=black>Mod Commands <font color=orange>***");
  575. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/imp <font color=red>Person</f></b> : <font color=black>to impersonate someone");
  576. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note: <font color=red>Person</f><font color=black> is either an online player or any name.");
  577. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/impOff</f></b> : <font color=black>to stop impersonating.");
  578. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/kick <font color=red>Person</f></b> :<font color=black> to kick someone");
  579. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note: <font color=red>Person</f><font color=black> is any online player.");
  580. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/<font color=blue>Mute/Unmute <font color=red>Person</f></b> : <font color=black>to Mute/Unmute someone.");
  581. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note: <font color=blue>Mute/Unmute</f><font color=black> is to Mute(shut someone up) or Unmute(to allow that person to talk again),<font color=red> Person<font color=black> is any online player.");
  582. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/changemotd <font color=red>Message</f></b> : <font color=black>to change MOTD.");
  583. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note: <font color=red>Message</f><font color=black> is any message for people to see if they log on, HTML Allowed.");
  584. sys.sendHtmlMessage(src, "<hr>");
  585. return; }
  586. ,
  587. imp: function () {
  588. impersonation[src] = commandData;
  589. sys.sendMessage(src, "+Bot: Now you are " + impersonation[src] +"!");
  590. return;
  591. }
  592. ,
  593. changemotd: function () {
  594. Topic = commandData;
  595. sys.sendHtmlAll("<font color=red>+Bot: The MOTD has been changed.");}
  596.  
  597. ,
  598. joinon: function () {
  599. joinoff[src]=false
  600. sys.sendHtmlAll("<font color=orange><b><font size=3>~~Bot~~:</b></font> The signups have been started by " + sys.name(src) + ", type <b>/join</b> to join the tour!</f>");
  601. return;
  602. }
  603. ,
  604. joinoff: function () {
  605. joinoff[src]=true
  606. sys.sendHtmlAll("<font color=orange><b><font size=3>~~Bot~~:</b></font> The signups have been ended by " + sys.name(src) + ".</f>");
  607. return;
  608. }
  609. ,
  610. endtour: function () {
  611. sys.sendHtmlAll("<font color=orange><b><font size=3>~~Bot~~:</b></font> The Tour has been ended by " + sys.name(src) + ".</f>");
  612. return;
  613. }
  614. ,
  615. tour: function () {
  616. sys.sendHtmlAll("<hr>");
  617. sys.sendHtmlAll("<timestamp/><font color=red><b>*** TOURNAMENT ***</f></b></font>");
  618. sys.sendHtmlAll("<timestamp/><font color=blue><b>*** The tier will be decided when you see the message</f></b></font>");
  619. sys.sendHtmlMessage(src,"<timestamp/><font color=orange><b>~~Bot~~:</f></b><font color=black> Type /settier to set the tier</f>");
  620. sys.sendHtmlAll("<timestamp/><font color=blue><b>*** The amount of people will be decided when you see the message</f></b></font>");
  621. sys.sendHtmlMessage(src, "<timestamp/><font color=orange><b>~~Bot~~:</f></b><font color=black> Type /setpeople to set the amount of players");
  622. sys.sendHtmlAll("<timestamp/><font color=orange><b>~~Bot~~:</f></b><font color=black> Type /join to join the tour!");
  623. sys.sendHtmlAll("<timestamp/><font color=orange><b>~~Bot~~:</f></b><font color=black> Type /leave to leave the tour!");
  624. sys.sendHtmlAll("<hr>");
  625. return;
  626. }
  627. ,
  628. settier : function () {
  629. sys.sendHtmlAll("<b><font size=5><font color=red>A(n) " + commandData + " Tour has been started by " + sys.name(src) + "!</font></b></f>");
  630. return;
  631. }
  632. ,
  633. setpeople : function () {
  634. sys.sendHtmlAll("<b><font size=5><font color=red>The Number of players allowed for the tour are: " + commandData + "!</font></f></b>");
  635. return;
  636. }
  637. ,
  638. round1 : function () {
  639. sys.sendHtmlAll("<b><font size=5><font color=red>Round 1 has been started by " + sys.name(src) + " !</font></f></b>");
  640. return;
  641. }
  642. ,
  643. round2 : function () {
  644. sys.sendHtmlAll("<b><font size=5><font color=red>Round 2 has been started by " + sys.name(src) + " !</font></f></b>");
  645. return;
  646. }
  647.  
  648. ,
  649. round3: function () {
  650. sys.sendHtmlAll("<b><font size=5><font color=red>Round 3 has been started by " + sys.name(src) + " !</font></f></b>");
  651. return;
  652. }
  653. ,
  654. round4: function () {
  655. sys.sendHtmlAll("<b><font size=5><font color=red>Round 4 has been started by " + sys.name(src) + " !</font></f></b>");
  656. return;
  657. }
  658. ,
  659. round5: function () {
  660. sys.sendHtmlAll("<b><font size=5><font color=red>Round 5 has been started by " + sys.name(src) + " !</font></f></b>");
  661. return;
  662. }
  663. ,
  664. round: function () {
  665. sys.sendHtmlAll("<b><font size=5><font color=red>Round " + commandData + " has been started by " + sys.name(src) + " !</font></f></b>");
  666. return;
  667. }
  668. ,
  669. impoff : function () {
  670. delete impersonation[src];
  671. sys.sendMessage(src, "+Bot: Now you are yourself!");
  672. return;
  673. }
  674. ,
  675. kick : function () {
  676. if (tar == undefined) {
  677. return;
  678. }
  679. sys.sendHtmlAll("<font color=red><b>+KickBot:</b> " + commandData + " Was kicked for something by " +sys.name(src) + "!");
  680. sys.kick(tar);
  681. return;
  682. }
  683. ,
  684. mute: function () {
  685. if (tar == undefined) {
  686. return;
  687. }
  688. if (sys.auth(tar) >= sys.auth(src)) {
  689. sys.sendMessage("+Bot: you dont have sufficient auth to mute " + commandData + ".");
  690. return;
  691. }
  692. sys.sendHtmlAll("<font color=blue><b>+MuteBot:</b> " + commandData + " Was muted by " +sys.name(src) + "!");
  693. muted[tar] = true;
  694. return
  695. }
  696. ,
  697. unmute:function () {
  698. if (tar == undefined) {
  699. return;
  700. }
  701. sys.sendHtmlAll("<font color=green><b>+MuteBot:</b> " + commandData + " Was unmuted by " +sys.name(src) + "!");
  702. muted[tar] = false;
  703. return;
  704. }
  705. })
  706. var adminCommands = ({
  707. admincommands : function () {
  708. if (sys.auth(src) < 2) {
  709. sys.sendMessage(src, "+CommandBot: Your are not of the right authority to view these commands.");
  710. return;
  711. }
  712.  
  713. sys.sendHtmlMessage(src, "<hr>");
  714. sys.sendHtmlMessage(src, "<font color=red><timestamp/><b>*** <font color=black>Admin Commands <font color=red>***</b></f>");
  715. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/reset</f></b>: <font color=black>to reset the server variables");
  716. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/masskick</f></b>: <font color=black>to clean up the server");
  717. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/setPA <font color=red>Paname</f></b>: <font color=black>to add a new pa");
  718. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note: <font color=red>Paname</f><font color=black> is a PA to put in the scripts, be carefull as this can make an error.");
  719. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/clearjournal</f></b>: <font color=black>to clear the journal");
  720. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/<font color=blue>Ban/Unban</f><font color=red> Person</b>: <font color=black>to ban/unban someone");
  721. sys.sendHtmlMessage(src, "<font color=blue>°<b>Note: <font color=black>To <font color=blue>Ban<font color=black>(keep there IP from entering the server) and <font color=blue>Unban<font color=black>(let a banned person get in the server again),<font color=red> Person</f><font color=black> is any online or offline player in the members database.");
  722. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/clearchat</f></b>: <font color=black>to clear the chat");
  723. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/<font color=blue>forcerule</f><font color=red> Rule</b>: <font color=black>to show a rule to everyone");
  724. sys.sendHtmlMessage(src, "<font color=blue>°<b>Note: <Font color=red>Rule<font color=black> is rule 1-10.");
  725. sys.sendHtmlMessage(src, "<hr>");
  726. return;
  727. }
  728. ,
  729. forcerule: function () {
  730. if (commandData == undefined) {
  731. sys.sendMessage(src, "~~Bot~~:Not a valid rule");
  732. return;
  733. }
  734. if (commandData == 1) {
  735. sys.sendAll("Rule #1 - Do Not Abuse CAPS:");
  736. sys.sendAll("- The occasional word in CAPS is acceptable, however repeated use is not.");
  737. return;
  738. }
  739. if (commandData == 2) {
  740. sys.sendAll("Rule #2 - No Flooding the Chat:");
  741. sys.sendAll("- Please do not post a large amount of short messages when you can easily post one or two long messages.");
  742. return;
  743. }
  744. if (commandData == 3) {
  745. sys.sendAll("Rule #3 - Do not Challenge Spam:");
  746. sys.sendAll("- If a person refuses your challenge, this means they do not want to battle you. Find someone else to battle with.");
  747. return;
  748. }
  749. if (commandData == 4) {
  750. sys.sendAll("Rule #4 - Don't ask for battles in the main chat:");
  751. sys.sendAll("- There is a 'Find Battle' tab that you can use to find a battle immediately. If after a while you cannot find a match, then you can ask for one in the chat.");
  752. return;
  753. }
  754. if (commandData == 5) {
  755. sys.sendAll("Rule #5 - No Trolling/Flaming/Insulting of Any kind:");
  756. sys.sendAll("- Behaving stupidly and excessive vulgarity will not be tolerated.");
  757. return;
  758. }
  759. if (commandData == 6) {
  760. sys.sendAll("Rule #6 - Please only speak English:");
  761. sys.sendAll("- Most people speak a different language, which is ok. But please speak english.");
  762. return;
  763. }
  764. if (commandData == 7) {
  765. sys.sendAll("Rule #7 - No Advertising:");
  766. sys.sendAll("- There will be absolutely no advertising on the server.");
  767. return;
  768. }
  769. if (commandData == 8) {
  770. sys.sendAll("Rule #8 - No Obscene or Pornographic Content Allowed:");
  771. sys.sendAll("- This includes links, texts, images, and any other kind of media. This will result in a instant ban.");
  772. return;
  773. }
  774. if (commandData == 9) {
  775. sys.sendAll("Rule #9 - Do not ask for Auth:");
  776. sys.sendAll(" - Authority is given upon merit. By asking you have pretty much eliminated your chances at becoming an Auth in the future.");
  777. return;
  778. }
  779. if (commandData == 10) {
  780. sys.sendAll("Rule #10 - Do not Insult Auth:");
  781. sys.sendAll("- Insulting Auth will result in immediate punishment.");}
  782. return;
  783. }
  784. ,
  785. reset : function () {
  786. this.serverStartUp();
  787. sys.sendAll("~~Server~~: The server script variables were reset.");
  788. return;
  789. }
  790. ,
  791. changeannouncement: function () {
  792. if (sys.auth(src) < 3) {
  793. return;
  794. }
  795. sys.setAnnouncement(commandData);}
  796. ,
  797. resetannouncement: function () {
  798. if (sys.auth(src) < 3) {
  799. return;
  800. }
  801. sys.setAnnouncement("Announcement reset by<font color=fuchsia> " + sys.name(src));}
  802. ,
  803. changemotd:function () {
  804. Topic = commandData;
  805. sys.sendAll("The MOTD has been changed.");}
  806. ,
  807. ban:function () {
  808. if(sys.dbIp(commandData) == undefined) {
  809. sendChanMessage(src, "+Bot: No player exists by this name!");
  810. return;
  811. }
  812.  
  813. if (sys.maxAuth(sys.ip(tar))>=sys.auth(src)) {
  814. sendChanMessage(src, "+Bot: Can't do that to higher auth!");
  815. return;
  816. }
  817. var ip = sys.dbIp(commandData);
  818. var alias=sys.aliases(ip)
  819. var y=0;
  820. var z;
  821. for(var x in alias) {
  822. z = sys.dbAuth(alias[x])
  823. if (z > y) {
  824. y=z
  825. }
  826. }
  827. if(y>=sys.auth(src)) {
  828. sendChanMessage(src, "+Bot: Can't do that to higher auth!");
  829. return;
  830. }
  831. var banlist=sys.banList()
  832. for(a in banlist) {
  833. if(sys.dbIp(commandData) == sys.dbIp(banlist[a])) {
  834. sendChanMessage(src, "+Bot: He/she's already banned!");
  835. return;
  836. }
  837. }
  838.  
  839. sys.sendHtmlAll('<b><font color=red>' + commandData + ' was banned by ' + sys.name(src) + '!</font></b>');
  840. if(tar != undefined) {
  841. sys.kick(tar)
  842. }
  843. sys.ban(commandData)
  844. sys.appendToFile('bans.txt', sys.name(src) + ' banned ' +commandData + "n")
  845. return;
  846. }
  847. ,
  848. unban: function () {
  849. if(sys.dbIp(commandData) == undefined) {
  850. sendChanMessage(src, "+Bot: No player exists by this name!");
  851. return;
  852. }
  853. var banlist=sys.banList()
  854. for(a in banlist) {
  855. if(sys.dbIp(commandData) == sys.dbIp(banlist[a])) {
  856. sys.unban(commandData)
  857. sys.sendHtmlAll('<b><font color=red>' + commandData + ' was unbanned by ' + sys.name(src) + '!</font></b>');
  858. sys.appendToFile('bans.txt', sys.name(src) + ' unbanned ' +commandData + "n")
  859. return;
  860. }
  861. }
  862. sendChanMessage(src, "+Bot: He/she's not banned!");
  863. return;
  864.  
  865. }
  866. ,
  867.  
  868. silentkick : function () {
  869. if (sys.auth(src) < 3) {
  870. return;
  871. }
  872. if (tar == undefined) {
  873. return;
  874. }
  875. sys.kick(tar);
  876. return;
  877. }
  878. ,
  879. clearchat:function () {
  880. var c;
  881. for (c=0;c<2999;c++) {
  882. sys.sendAll("");
  883. }
  884. sys.clearChat();
  885. sys.sendAll(sys.name(src) + " Has Cleared the chat!");
  886. return;
  887. }
  888. ,
  889. setpa:function () {
  890. sys.setPA(commandData);
  891. sys.sendMessage(src, "Bot: -" + commandData + "- was set!");
  892. return;
  893. }
  894. ,
  895. clearjournal:function () {
  896. var get = sys.getFileContent("gb");
  897. sys.deleteFile("gb");
  898. sys.sendAll("The guest book was cleared!");
  899. sys.writeToFile("gb","This is the guest book. Comments are listed below:<br><br>");
  900. return;
  901. }
  902. ,
  903. masskick:function () {
  904. for (var i = 1; i < 200 && sys.numPlayers() > 0; i++) {
  905. if (sys.loggedIn(i)) {
  906. sys.kick(i);
  907. }
  908. }
  909. return;
  910. }
  911. });
  912. var ownerCommands = ({
  913.  
  914. ownercommands : function () {
  915. sys.sendHtmlMessage(src, "<hr>");
  916. sys.sendHtmlMessage(src, "<font color=blue><timestamp/><b>*** <font color=black>Owner Commands <font color=blue>***</b></f>");
  917. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/resetannouncement</f></b>: <font color=black>to reset the announcement(clear it)");
  918. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/changeannouncement <font color=red>Message</f></b>: <font color=black>change announcement");
  919. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note: <font color=red>Message</f><font color=black> is any message for people to see if they log on , HTML Allowed.");
  920. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/silentkick</f><font color=red> Person</b></f>: <font color=black>to silently kick someone");
  921. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note: <font color=red>Person</f><font color=black> is any online player.");
  922. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/<font color=blue>SilentMute/SilentUnmute <font color=red>Person</f></b> : <font color=black>to silenly Mute/Unmute someone.");
  923. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note: <font color=blue>SilentMute</f><font color=black> is to Silently(do it without people seeing it)Mute(shut someone up)or Unmute(to allow that person to talk again),<font color=red> Person<font color=black> is any online player.");
  924. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/<font color=green>SilentBan/SilentUnban</f></b>: <font color=black>to silently ban someone");
  925. sys.sendHtmlMessage(src, "<font color=blue>°<b>Note: <font color=black>To <font color=blue>SilentBan<font color=black>(do it without people seeing it)(keep there IP from entering the server) and <font color=blue>SilentUnban<font color=black>(do it without people seeing it)(let a banned person get in the server again),<font color=red> Person</f><font color=black> is any online or offline player in the members database.");
  926. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/<font color=indigo>S<font color=blue>AuthName<font color=red> Person</f></b>: <font color=black>give someone auth."); // you use the 's' if you want to do it SILENTLY //
  927. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note: <font color=indigo>S<font color=black> is optional, it can be used to silently give auth ,<font color=blue> AuthName</f><font color=black> is any authname, <font color=red>Person<font color=black> is any online player.");
  928. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/authnames</f></b>: <font color=black>view authnames for the /AuthName.");
  929. sys.sendHtmlMessage(src, "<hr>");
  930. return;
  931. }
  932. ,
  933. clearpass: function () {
  934. sys.clearPass(commandData);
  935. sys.sendHtmlMessage(src, "<timestamp/><font color=orange><b>~~Bot~~:</b></font> You cleared " + commandData + "'s password.<f>");
  936. sys.sendHtmlMessage(tar, "<timestamp/><font color=orange><b>~~Bot~~:</b></font> Your Password has been cleared by " + sys.name(src) + ".<f>");
  937. return;
  938. }
  939. ,
  940. authnames: function () {
  941. sys.sendHtmlMessage(src, "<hr>");
  942. sys.sendHtmlMessage(src, "<font color=purple><timestamp/> *** Auth Names ***</f>");
  943. sys.sendHtmlMessage(src, "<font color=green><timestamp/> 0 Auth = <b> User</f>"); // */user* //
  944. sys.sendHtmlMessage(src, "<font color=blue><timestamp/> 1 Auth = <b> Mod</f>"); // */mod* //
  945. sys.sendHtmlMessage(src, "<font color=orange><timestamp/> 2 Auth = <b> Admin</f>"); // */admin*//
  946. sys.sendHtmlMessage(src, "<font color=red><timestamp/> 3 Auth = <b> Owner</f>"); // */owner* //
  947. sys.sendHtmlMessage(src, "<font color=cornflowerblue><timestamp/> 4 Auth = <b> Invisible</f>"); // */invisible* //
  948. sys.sendHtmlMessage(src, "<hr>");
  949. }
  950. ,
  951. tourauthnames: function () {
  952. sys.sendHtmlMessage(src, "<hr>");
  953. sys.sendHtmlMessage(src, "<font color=purple><timestamp/> *** Auth Names ***</f>");
  954. sys.sendHtmlMessage(src, "<font color=green><timestamp/> 0 TourAuth = <b> TourUser</f>"); // */touruser* //
  955. sys.sendHtmlMessage(src, "<font color=blue><timestamp/> 1 TourAuth = <b> Tour-Mod</f>"); // */tourmod* //
  956. sys.sendHtmlMessage(src, "<font color=orange><timestamp/> 2 TourAuth = <b> Tour-Admin</f>"); // */touradmin*//
  957. sys.sendHtmlMessage(src, "<font color=red><timestamp/> 3 TourAuth = <b> Tour-Owner</f>"); // */tourowner* //
  958. sys.sendHtmlMessage(src, "<hr>");
  959. }
  960. ,
  961. secretcommands : function () {
  962. sys.sendHtmlMessage(src, "<hr>");
  963. sys.sendHtmlMessage(src, "<font color=black><timestamp/><b>*** <font color=black>Secret Commands <font color=black>***</b></f>");
  964. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/eval <font color=skyblue>String</f></b>: <font color=black>to use any js string");
  965. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note: <font color=skyblue>String</f><font color=black> is any valid javascript string, doesnt save in the script, use this only if you know how to script.");
  966. sys.sendHtmlMessage(src, "<font color=green><timestamp/><b>/clearpass</f><font color=red> Person</b></f>: <font color=black>to clear someones password");
  967. sys.sendHtmlMessage(src, "<font color=blue>•<b>Note: <font color=red>Person</f><font color=black> is any player that has a pass and is in the members database.");
  968. sys.sendHtmlMessage(src, "<hr>");
  969. return;
  970. }
  971. ,
  972. silentmute: function () {
  973. if (tar == undefined) {
  974. return;
  975. }
  976. muted[tar] = true;
  977. return
  978. }
  979. ,
  980. touruser: function () {
  981. if (tar == undefined) {
  982. sys.sendMessage(src, "+Bot: Either specify a name or that player is not on.");
  983. return;
  984. }
  985. sys.sendHtmlAll("<font color=orange><b>~~Bot~~:</b> " + commandData + " has been given Tour-User by " + sys.name(src) + ".");
  986. return;
  987. }
  988. ,
  989. tourmod: function () {
  990. if (tar == undefined) {
  991. sys.sendMessage(src, "+Bot: Either specify a name or that player is not on.");
  992. return;
  993. }
  994. sys.sendHtmlAll("<font color=orange><b>~~Bot~~:</b> " + commandData + " has been given Tour-Mod by " + sys.name(src) + ".");
  995. return;
  996. }
  997. ,
  998. touradmin: function () {
  999. if (tar == undefined) {
  1000. sys.sendMessage(src, "+Bot: Either specify a name or that player is not on.");
  1001. return;
  1002. }
  1003. sys.sendHtmlAll("<font color=orange><b>~~Bot~~:</b> " + commandData + " has been given Tour-Admin by " + sys.name(src) + ".");
  1004. return;
  1005. }
  1006. ,
  1007. tourowner: function () {
  1008. if (tar == undefined) {
  1009. sys.sendMessage(src, "+Bot: Either specify a name or that player is not on.");
  1010. return;
  1011. }
  1012. sys.sendHtmlAll("<font color=orange><b>~~Bot~~:</b> " + commandData + " has been given Tour-Owner by " + sys.name(src) + ".");
  1013. return;
  1014. }
  1015. ,
  1016. silentunmute: function () {
  1017. if (tar == undefined) {
  1018. return;
  1019. }
  1020. muted[tar] = false;
  1021. return
  1022. }
  1023. ,
  1024. user: function () {
  1025. if (tar == undefined) {
  1026. sys.sendMessage(src, "+Bot: Either specify a name or that player is not on.");
  1027. return;
  1028. }
  1029. sys.sendHtmlAll("<font color=orange><b>~~Bot~~:</b> " + commandData + " has been usered by " + sys.name(src) + ".");
  1030. sys.changeAuth(tar, 0);
  1031. return;
  1032. }
  1033. ,
  1034. mod: function () {
  1035. if (tar == undefined) {
  1036. sys.sendMessage(src, "+Bot: Either specify a name or that player is not on.");
  1037. return;
  1038. }
  1039. sys.sendHtmlAll("<font color=orange><b>~~Bot~~:</b> " + commandData + " was been made a mod by " + sys.name(src) + ".");
  1040. sys.changeAuth(tar, 1);
  1041. return;
  1042. }
  1043. ,
  1044. admin: function () {
  1045. if (tar == undefined) {
  1046. sys.sendMessage(src, "+Bot: Either specify a name or that player is not on.");
  1047. return;
  1048. }
  1049. sys.sendHtmlAll("<font color=orange><b>~~Bot~~:</b> " + commandData + " was been made an admin by " + sys.name(src) + ".");
  1050. sys.changeAuth(tar, 2);
  1051. }
  1052. ,
  1053. owner: function () {
  1054. if (tar == undefined) {
  1055. sys.sendMessage(src, "+Bot: Either specify a name or that player is not on.");
  1056. return;
  1057. }
  1058. sys.sendHtmlAll("<font color=orange><b>~~Bot~~:</b> " + commandData + " was made an owner by " + sys.name(src) + ".");
  1059. sys.changeAuth(tar, 3);
  1060. }
  1061. ,
  1062. invisible: function () {
  1063. if (tar == undefined) {
  1064. sys.sendMessage(src, "+Bot: Either specify a name or that player is not on.");
  1065. return;
  1066. }
  1067. sys.sendHtmlAll("<font color=orange><b>~~Bot~~:</b> " + commandData + " was made an invisible auth by " + sys.name(src) + ".");
  1068. sys.changeAuth(tar, 4);
  1069. return;
  1070. }
  1071. ,
  1072. suser: function () {
  1073. if (tar == undefined) {
  1074. sys.sendMessage(src, "+Bot: Either specify a name or that player is not on.");
  1075. return;
  1076. }
  1077. sys.changeAuth(tar, 0);
  1078. }
  1079. ,
  1080. smod: function () {
  1081. if (tar == undefined) {
  1082. sys.sendMessage(src, "+Bot: Either specify a name or that player is not on.");
  1083. return;
  1084. }
  1085. sys.changeAuth(tar, 1);
  1086. }
  1087. ,
  1088. sadmin: function () {
  1089. if (tar == undefined) {
  1090. sys.sendMessage(src, "+Bot: Either specify a name or that player is not on.");
  1091. return;
  1092. }
  1093. sys.changeAuth(tar, 2);
  1094. }
  1095. ,
  1096. sowner: function () {
  1097. if (tar == undefined) {
  1098. sys.sendMessage(src, "+Bot: Either specify a name or that player is not on.");
  1099. return;
  1100. }
  1101. sys.changeAuth(tar, 3);
  1102. return;
  1103. }
  1104. ,
  1105. sinvisible: function () {
  1106. if (tar == undefined) {
  1107. sys.sendMessage(src, "+Bot: Either specify a name or that player is not on.");
  1108. return;
  1109. }
  1110. sys.changeAuth(tar, 4);
  1111. return;
  1112. }
  1113. ,
  1114. eval: function () {
  1115. sys.eval(commandData);
  1116. return;
  1117. }
  1118. ,
  1119. silentban:function () {
  1120. if(sys.dbIp(commandData) == undefined) {
  1121. sys.sendMessage(src, "+Bot: No player exists by this name!");
  1122. return;
  1123. }
  1124. if (sys.maxAuth(sys.ip(tar))>=sys.auth(src)) {
  1125. sys.sendMessage(src, "+Bot: Can't do that to higher auth!");
  1126. return;
  1127. }
  1128. var ip = sys.dbIp(commandData);
  1129. var alias=sys.aliases(ip)
  1130. var y=0;
  1131. var z;
  1132. for(var x in alias) {
  1133. z = sys.dbAuth(alias[x])
  1134. if (z > y) {
  1135. y=z
  1136. }
  1137. }
  1138. if(y>=sys.auth(src)) {
  1139. sys.sendMessage(src, "+Bot: Can't do that to higher auth!");
  1140. return;
  1141. }
  1142. var banlist=sys.banList()
  1143. for(a in banlist) {
  1144. if(sys.dbIp(commandData) == sys.dbIp(banlist[a])) {
  1145. sys.sendMessage(src, "+Bot: He/she's already banned!");
  1146. return;
  1147. }
  1148. }
  1149.  
  1150. if(tar != undefined) {
  1151. sys.kick(tar)
  1152. }
  1153. sys.ban(commandData)
  1154. sys.appendToFile('bans.txt', sys.name(src) + ' banned ' +commandData + "n")
  1155. return;
  1156. }
  1157. ,
  1158. silentunban: function () {
  1159. if(sys.dbIp(commandData) == undefined) {
  1160. sendChanMessage(src, "+Bot: No player exists by this name!");
  1161. return;
  1162. }
  1163. var banlist=sys.banList()
  1164. for(a in banlist) {
  1165. if(sys.dbIp(commandData) == sys.dbIp(banlist[a])) {
  1166. sys.unban(commandData)
  1167. sys.appendToFile('bans.txt', sys.name(src) + ' unbanned ' +commandData + "n")
  1168. return;
  1169. }
  1170. }
  1171. sendChanMessage(src, "+Bot: He/she's not banned!");
  1172. return;
  1173.  
  1174. }
  1175. ,
  1176. });
  1177. var getCommand = ({
  1178. '0': function (name) {
  1179. if (name in userCommands) {
  1180. return userCommands[name]; }
  1181. }
  1182. ,
  1183. '1': function (name) {
  1184. if (name in modCommands) {
  1185. return modCommands[name]; }
  1186. else if (name in userCommands) {
  1187. return userCommands[name]; }
  1188. }
  1189. ,
  1190. '2' : function (name) {
  1191. if (name in adminCommands) {
  1192. return adminCommands[name]; }
  1193. else if (name in modCommands) {
  1194. return modCommands[name]; }
  1195. else if (name in userCommands) {
  1196. return userCommands[name]; }
  1197. }
  1198. ,
  1199. '3' : function (name) {
  1200. if (name in ownerCommands) {
  1201. return ownerCommands[name]; }
  1202. else if (name in adminCommands) {
  1203. return adminCommands[name]; }
  1204. else if (name in modCommands) {
  1205. return modCommands[name]; }
  1206. else if (name in userCommands) {
  1207. return userCommands[name]; }
  1208. }
  1209. ,
  1210. '4' : function (name) {
  1211. if (name in ownerCommands) {
  1212. return ownerCommands[name]; }
  1213. else if (name in adminCommands) {
  1214. return adminCommands[name]; }
  1215. else if (name in modCommands) {
  1216. return modCommands[name]; }
  1217. else if (name in userCommands) {
  1218. return userCommands[name]; }
  1219. }
  1220. });
  1221. var cmd = getCommand[sys.auth(src)](command);
  1222. if (!cmd) {
  1223. sys.sendMessage(src, getCommand[3](command) ? "+Bot: You aren't allowed to use that command." : "+Bot: That command doesn't exist." );
  1224. return; }
  1225. cmd();
  1226. return;
  1227.  
  1228. }
  1229. if (typeof impersonation[src] != 'undefined') {
  1230. sys.stopEvent();
  1231. sys.sendAll(impersonation[src] + ": " + message);
  1232. return;
  1233. }
  1234. }
  1235.  
  1236. ,
  1237.  
  1238. beforeChallengeIssued : function (src, dest, clauses) {
  1239. /* Challenge Cup Clause */
  1240. if (clauses[7] == 1)
  1241. return;
  1242.  
  1243. if (clauseOn[dest] == true) {
  1244. for (var i = 0; i < 6; i++) {
  1245. if (hasBan(dest, sys.teamPoke(src,i))) {
  1246. sys.sendMessage(src, "ClauseBot: Your opponent is afraid of " + sys.pokemon(sys.teamPoke(src,i)));
  1247. sys.stopEvent();
  1248. return;
  1249. }
  1250. }
  1251. }
  1252. if (clauseOn[src] == true) {
  1253. for (var i = 0; i < 6; i++) {
  1254. if (hasBan(src, sys.teamPoke(dest,i))) {
  1255. sys.sendMessage(src, "ClauseBot: You are afraid of some pokemon of the opponent, so I won't let you challenge them.");
  1256. sys.stopEvent();
  1257. return;
  1258. }
  1259. }
  1260. }
  1261.  
  1262. /* Regular tier checks that can't be made using the built-in server tier system */
  1263. if (sys.tier(src) == "LittleCup" && sys.tier(dest) == "LittleCup") {
  1264. if (sys.hasTeamMove(src, sys.moveNum("SonicBoom")) ||sys.hasTeamMove(src, sys.moveNum("Dragon Rage"))) {
  1265. sys.sendMessage(src, "+Bot: SonicBoom and Dragon Rage are banned in Little Cup!");
  1266. sys.stopEvent();
  1267. }
  1268. if (sys.hasTeamMove(dest, sys.moveNum("SonicBoom")) ||sys.hasTeamMove(dest, sys.moveNum("Dragon Rage"))) {
  1269. sys.sendMessage(src, "+Bot: Your opponent has banned moves SonicBoom or Dragon Rage in Little Cup tier!");
  1270. sys.stopEvent();
  1271. }
  1272. if (sys.hasTeamItem(src, sys.itemNum("Berry Juice"))) {
  1273. sys.sendMessage(src, "+Bot: Berry Juice is banned in Little Cup!");
  1274. sys.stopEvent();
  1275. }
  1276. if (sys.hasTeamItem(dest, sys.itemNum("Berry Juice"))) {
  1277. sys.sendMessage(src, "+Bot: Berry Juice is banned in Little Cup and your opponent has it!");
  1278. sys.stopEvent();
  1279. }
  1280. }
  1281. }
  1282.  
  1283. ,
  1284.  
  1285. beforeBattleMatchup : function(src,dest,clauses)
  1286. {
  1287. if (clauseOn[dest] == true) {
  1288. for (var i = 0; i < 6; i++) {
  1289. if (hasBan(dest, sys.teamPoke(src,i))) {
  1290. sys.stopEvent();
  1291. return;
  1292. }
  1293. }
  1294. }
  1295. if (clauseOn[src] == true) {
  1296. for (var i = 0; i < 6; i++) {
  1297. if (hasBan(src, sys.teamPoke(dest,i))) {
  1298. sys.stopEvent();
  1299. return;
  1300. }
  1301. }
  1302. }
  1303.  
  1304. /* Regular tier checks that can't be made using the built-in server tier system */
  1305. if (sys.tier(src) == "LittleCup" && sys.tier(dest) == "LittleCup") {
  1306. if (sys.hasTeamMove(src, sys.moveNum("SonicBoom")) ||sys.hasTeamMove(src, sys.moveNum("Dragon Rage"))) {
  1307. sys.stopEvent();
  1308. }
  1309. if (sys.hasTeamMove(dest, sys.moveNum("SonicBoom")) ||sys.hasTeamMove(dest, sys.moveNum("Dragon Rage"))) {
  1310. sys.stopEvent();
  1311. }
  1312. if (sys.hasTeamItem(src, sys.itemNum("Berry Juice"))) {
  1313. sys.stopEvent();
  1314. }
  1315. if (sys.hasTeamItem(dest, sys.itemNum("Berry Juice"))) {
  1316. sys.stopEvent();
  1317. }
  1318. }
  1319. }
  1320.  
  1321. ,
  1322.  
  1323. beforeBattleStarted : function(src, dest) {
  1324. /* If this is little cup, the levels are changed to be level 5 */
  1325. if (sys.tier(src) == "LittleCup" && sys.tier(dest) == "LittleCup") {
  1326. lilCupLevels[src] = [sys.teamPokeLevel(src, 0), sys.teamPokeLevel(src,1), sys.teamPokeLevel(src, 2), sys.teamPokeLevel(src, 3), sys.teamPokeLevel(src, 4),sys.teamPokeLevel(src, 5)];
  1327. lilCupLevels[dest] = [sys.teamPokeLevel(dest, 0),sys.teamPokeLevel(dest, 1), sys.teamPokeLevel(dest, 2), sys.teamPokeLevel(dest, 3),sys.teamPokeLevel(dest, 4), sys.teamPokeLevel(dest, 5)];
  1328. for (var i = 0; i < 6; i+=1) {
  1329. if (sys.teamPokeLevel(src, i) > 5)
  1330. sys.changePokeLevel(src, i, 5);
  1331. if (sys.teamPokeLevel(dest, i) > 5)
  1332. sys.changePokeLevel(dest, i, 5);
  1333. }
  1334. }
  1335. }
  1336.  
  1337. ,
  1338.  
  1339. afterBattleEnded: function(src, dest) {
  1340. /* If this is little cup, the levels are to be changed back! */
  1341. if (sys.tier(src) == "LittleCup" && sys.tier(dest) == "LittleCup" && lilCupLevels[src]!= undefined && lilCupLevels[dest] != undefined) {
  1342. for (var i = 0; i < 6; i+=1) {
  1343. if (sys.teamPokeLevel(src, i) != lilCupLevels[src][i])
  1344. sys.changePokeLevel(src, i,lilCupLevels[src][i]);
  1345. if (sys.teamPokeLevel(dest, i) != lilCupLevels[dest][i])
  1346. sys.changePokeLevel(dest, i,lilCupLevels[dest][i]);
  1347. }
  1348. }
  1349. }
  1350.  
  1351. ,
  1352.  
  1353. beforeLogOut : function (src) {
  1354. if (muted[src] == true) {
  1355. sys.saveVal("muted*" + sys.ip(src), "true");
  1356. } else {
  1357. sys.removeVal("muted*" + sys.ip(src));
  1358. }
  1359. }
  1360.  
  1361. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement