Advertisement
Guest User

MRBot Codes

a guest
Jul 2nd, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 162.30 KB | None | 0 0
  1. using EEbot;
  2. using EEbot.Properties;
  3. using Ini;
  4. using parsing;
  5. using PlayerIOClient;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.ComponentModel;
  9. using System.Diagnostics;
  10. using System.Drawing;
  11. using System.IO;
  12. using System.Linq;
  13. using System.Net;
  14. using System.Text.RegularExpressions;
  15. using System.Threading;
  16. using System.Windows.Forms;
  17.  
  18. namespace WindowsFormsApplication1
  19. {
  20. public class Main : Form
  21. {
  22. public class block
  23. {
  24. public int layer
  25. {
  26. get;
  27. set;
  28. }
  29.  
  30. public int x
  31. {
  32. get;
  33. set;
  34. }
  35.  
  36. public int y
  37. {
  38. get;
  39. set;
  40. }
  41.  
  42. public int bid
  43. {
  44. get;
  45. set;
  46. }
  47.  
  48. public object[] args
  49. {
  50. get;
  51. set;
  52. }
  53. }
  54.  
  55. private IContainer components;
  56.  
  57. private Panel panel1;
  58.  
  59. private TextBox email_textbox;
  60.  
  61. private Label label2;
  62.  
  63. private Label labelL1;
  64.  
  65. private Label labelL2;
  66.  
  67. private TextBox password_textbox;
  68.  
  69. private Button connect_button;
  70.  
  71. private Label label4;
  72.  
  73. private TextBox world_textbox;
  74.  
  75. private TabControl tabControlMenu;
  76.  
  77. private TabPage tabPageJoinLeave;
  78.  
  79. private TabPage tabPageSnakeRain;
  80.  
  81. private Label label6;
  82.  
  83. private NumericUpDown SnakeID2;
  84.  
  85. private NumericUpDown SnakeID3;
  86.  
  87. private NumericUpDown SnakeID1;
  88.  
  89. private Label label5;
  90.  
  91. private Label label7;
  92.  
  93. private NumericUpDown SnakeWait;
  94.  
  95. private Label label8;
  96.  
  97. private CheckBox Snake_checkBox;
  98.  
  99. private CheckBox SnakeFunction1;
  100.  
  101. private TextBox Join1TB;
  102.  
  103. private CheckBox JoinMessageCheck;
  104.  
  105. private TextBox LeftTB1;
  106.  
  107. private CheckBox LeaveMessageCheck;
  108.  
  109. private Panel SnakePanel;
  110.  
  111. private Panel panel2;
  112.  
  113. private Label label12;
  114.  
  115. private Button SaveButton;
  116.  
  117. private Label label11;
  118.  
  119. private Button KillAllbutton;
  120.  
  121. private Button RespawnallButton;
  122.  
  123. private Button LoadLevelButton;
  124.  
  125. private TabPage tabPageBotSettings;
  126.  
  127. private PictureBox pictureBox1;
  128.  
  129. private Label label13;
  130.  
  131. private NumericUpDown BotPosX;
  132.  
  133. private Label label15;
  134.  
  135. private Label label14;
  136.  
  137. private NumericUpDown BotPosY;
  138.  
  139. private Button TeleportBotButton;
  140.  
  141. private NumericUpDown SmileyIDBox;
  142.  
  143. private Label label18;
  144.  
  145. private Label label17;
  146.  
  147. private Button ToggleGodButton;
  148.  
  149. private Label label19;
  150.  
  151. private TabPage tabPageUsers;
  152.  
  153. private ListBox UsersListbox;
  154.  
  155. private TextBox SendMessageBox;
  156.  
  157. private Label label22;
  158.  
  159. private Button SendMessageButton;
  160.  
  161. private Button REdit;
  162.  
  163. private Button GEditButton;
  164.  
  165. private Label label21;
  166.  
  167. private TextBox KickMessageBox;
  168.  
  169. private Label label20;
  170.  
  171. private Button KickButton;
  172.  
  173. private Button RGodButton;
  174.  
  175. private Button GGodButton;
  176.  
  177. private TabPage tabPageAdmins;
  178.  
  179. private ListBox AdminListbox;
  180.  
  181. private ListBox UsersListbox2;
  182.  
  183. private Label label27;
  184.  
  185. private Label label26;
  186.  
  187. private Button RAdmin;
  188.  
  189. private Button AAdmin;
  190.  
  191. private Button AddAdminManualButton;
  192.  
  193. private TextBox AddAdminManualTb;
  194.  
  195. private Button SmileyRandomeButton;
  196.  
  197. private System.Windows.Forms.Timer RSmileyTimer;
  198.  
  199. private Label label30;
  200.  
  201. private Button AuraRandomeButton;
  202.  
  203. private Label label29;
  204.  
  205. private NumericUpDown AuraShapeIDBox;
  206.  
  207. private NumericUpDown AuraColorIDBox;
  208.  
  209. private Label label28;
  210.  
  211. private System.Windows.Forms.Timer RAuraTimer;
  212.  
  213. private NumericUpDown RainWait;
  214.  
  215. private Label label34;
  216.  
  217. private NumericUpDown RainID;
  218.  
  219. private Label label33;
  220.  
  221. private Panel RainPanel;
  222.  
  223. private CheckBox RainCheckBox;
  224.  
  225. private Label label32;
  226.  
  227. private Label label31;
  228.  
  229. private RadioButton RainFunction4;
  230.  
  231. private RadioButton RainFunction3;
  232.  
  233. private RadioButton RainFunction1;
  234.  
  235. private RadioButton RainFunction2;
  236.  
  237. private TabPage tabPageOthers;
  238.  
  239. private CheckBox ResetAllCheckbox;
  240.  
  241. private Label label36;
  242.  
  243. private NumericUpDown WinCrownAmount;
  244.  
  245. private NumericUpDown WinCoinAmount;
  246.  
  247. private CheckBox WinsCrownCheck;
  248.  
  249. private CheckBox WinsCoinCheck;
  250.  
  251. private CheckBox WinsCheck;
  252.  
  253. private Label label35;
  254.  
  255. private TextBox WinTB;
  256.  
  257. private CheckBox WinMessageCheck;
  258.  
  259. private ToolTip toolTipAdmin;
  260.  
  261. private Label label16;
  262.  
  263. private Button load;
  264.  
  265. private Button save;
  266.  
  267. private CheckBox KickGuestCheckBox;
  268.  
  269. private TabPage tabPageBans;
  270.  
  271. private CheckBox EditJoinCheckbox;
  272.  
  273. private CheckBox KickNinjaRobberCheckbox;
  274.  
  275. private TextBox PMTB1;
  276.  
  277. private CheckBox PMjoinMessage;
  278.  
  279. private Label label40;
  280.  
  281. private Button RemoveBan;
  282.  
  283. private Button AddBanButton;
  284.  
  285. private ListBox BanList;
  286.  
  287. private Label label38;
  288.  
  289. private Label label41;
  290.  
  291. private TextBox BanMessage;
  292.  
  293. private Button BanButton;
  294.  
  295. private Label label42;
  296.  
  297. private TextBox BanNameTextBox;
  298.  
  299. private CheckBox GiveGodOnJoinCheck;
  300.  
  301. private Label label44;
  302.  
  303. private Label label43;
  304.  
  305. private Button ClearBanlist;
  306.  
  307. private Label label23;
  308.  
  309. private NumericUpDown FillBlockId;
  310.  
  311. private Button FillWorldButton;
  312.  
  313. private NumericUpDown FillTimeout;
  314.  
  315. private Label label24;
  316.  
  317. public BackgroundWorker backgroundWorkerFillWorld;
  318.  
  319. private RadioButton Connect_Facebook;
  320.  
  321. private RadioButton Connect_Kongregate;
  322.  
  323. private RadioButton Connect_EE;
  324.  
  325. private Button GiveEdit_ALL;
  326.  
  327. private Button RemoveGod_ALL;
  328.  
  329. private Button GiveGod_ALL;
  330.  
  331. private Label label1;
  332.  
  333. private Button Kick_ALL;
  334.  
  335. private Button RemoveEdit_ALL;
  336.  
  337. private Button Site_Button;
  338.  
  339. private Button CreditsButton;
  340.  
  341. private Label label3;
  342.  
  343. private Label VersionLabel;
  344.  
  345. private TabPage tabPage1;
  346.  
  347. private Button ClearWhitelistButton;
  348.  
  349. private Label label25;
  350.  
  351. private TextBox WhitelistaddTextbox;
  352.  
  353. private TextBox WhitelistKickBox;
  354.  
  355. private Label label45;
  356.  
  357. private Button RemoveWhitButton;
  358.  
  359. private Button AddWhiteButton;
  360.  
  361. private ListBox Whitelist;
  362.  
  363. private Label label46;
  364.  
  365. private CheckBox EnableWithlistCheck;
  366.  
  367. private CheckBox AllowFriendsCheck;
  368.  
  369. private CheckBox AllowGoldCheck;
  370.  
  371. private TabPage tabPage2;
  372.  
  373. private CheckBox EnableTeamColors;
  374.  
  375. private GroupBox groupBox4;
  376.  
  377. private RadioButton Radio_H_N;
  378.  
  379. private RadioButton Radio_H_C;
  380.  
  381. private RadioButton Radio_H_G;
  382.  
  383. private RadioButton Radio_H_B;
  384.  
  385. private RadioButton Radio_H_P;
  386.  
  387. private RadioButton Radio_H_R;
  388.  
  389. private GroupBox groupBox3;
  390.  
  391. private RadioButton Radio_N_N;
  392.  
  393. private RadioButton Radio_N_C;
  394.  
  395. private RadioButton Radio_N_G;
  396.  
  397. private RadioButton Radio_N_B;
  398.  
  399. private RadioButton Radio_N_P;
  400.  
  401. private RadioButton Radio_N_R;
  402.  
  403. private GroupBox groupBox2;
  404.  
  405. private RadioButton Radio_W_N;
  406.  
  407. private RadioButton Radio_W_C;
  408.  
  409. private RadioButton Radio_W_G;
  410.  
  411. private RadioButton Radio_W_B;
  412.  
  413. private RadioButton Radio_W_P;
  414.  
  415. private RadioButton Radio_W_R;
  416.  
  417. private GroupBox groupBox1;
  418.  
  419. private RadioButton Radio_A_N;
  420.  
  421. private RadioButton Radio_A_C;
  422.  
  423. private RadioButton Radio_A_G;
  424.  
  425. private RadioButton Radio_A_B;
  426.  
  427. private RadioButton Radio_A_P;
  428.  
  429. private RadioButton Radio_A_Red;
  430.  
  431. private Label label47;
  432.  
  433. private RadioButton Radio_A_Y;
  434.  
  435. private RadioButton Radio_W_Y;
  436.  
  437. private RadioButton Radio_N_Y;
  438.  
  439. private RadioButton Radio_H_Y;
  440.  
  441. private Label label52;
  442.  
  443. private Label label51;
  444.  
  445. private Label label50;
  446.  
  447. private Label label49;
  448.  
  449. private Label label48;
  450.  
  451. private CheckBox KillWinnerCheckbox;
  452.  
  453. private CheckBox ResetWinnerCheckbox;
  454.  
  455. private CheckBox KillallCheckbox;
  456.  
  457. private MenuStrip menuStripMain;
  458.  
  459. private ToolStripMenuItem OptionsDropdown;
  460.  
  461. private ToolStripMenuItem BackgroundOptions;
  462.  
  463. private ToolStripMenuItem DefaultBackground;
  464.  
  465. private ToolStripMenuItem SpaceBackground;
  466.  
  467. private ToolStripMenuItem customeBackground;
  468.  
  469. private OpenFileDialog openBackgroundDialog;
  470.  
  471. private Button ParametersHelp2;
  472.  
  473. private Label label55;
  474.  
  475. private Label label53;
  476.  
  477. private Label label39;
  478.  
  479. private Label label10;
  480.  
  481. private Label label54;
  482.  
  483. private Label label9;
  484.  
  485. private Label label56;
  486.  
  487. private Button ParametersHelp1;
  488.  
  489. public Connection con;
  490.  
  491. public Client client;
  492.  
  493. public bool isConnected;
  494.  
  495. public bool isGod;
  496.  
  497. public bool isEnabledRS;
  498.  
  499. public bool isEnabledRA;
  500.  
  501. public System.Collections.Generic.List<Main.block> blockL = new System.Collections.Generic.List<Main.block>();
  502.  
  503. public int[,,] blocks = new int[2, 400, 650];
  504.  
  505. public int height;
  506.  
  507. public int width;
  508.  
  509. public string prefix = "[MRbot]: ";
  510.  
  511. public string bversion = Application.ProductVersion;
  512.  
  513. public string WorldOwner;
  514.  
  515. public bool SnakeOn;
  516.  
  517. public bool RainOn;
  518.  
  519. public System.Collections.Generic.Dictionary<int, string> users = new System.Collections.Generic.Dictionary<int, string>();
  520.  
  521. public string SavePath = ".\\";
  522.  
  523. public IniFile wins = new IniFile(System.Environment.CurrentDirectory + "\\wins");
  524.  
  525. public System.Collections.Generic.List<string> editRights = new System.Collections.Generic.List<string>();
  526.  
  527. public bool firstLaunch = true;
  528.  
  529. public int Plays;
  530.  
  531. protected override void Dispose(bool disposing)
  532. {
  533. if (disposing && this.components != null)
  534. {
  535. this.components.Dispose();
  536. }
  537. base.Dispose(disposing);
  538. }
  539.  
  540. private void InitializeComponent()
  541. {
  542. this.components = new Container();
  543. ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Main));
  544. this.panel1 = new Panel();
  545. this.Connect_Facebook = new RadioButton();
  546. this.Connect_Kongregate = new RadioButton();
  547. this.Connect_EE = new RadioButton();
  548. this.connect_button = new Button();
  549. this.label4 = new Label();
  550. this.world_textbox = new TextBox();
  551. this.labelL2 = new Label();
  552. this.password_textbox = new TextBox();
  553. this.email_textbox = new TextBox();
  554. this.label2 = new Label();
  555. this.labelL1 = new Label();
  556. this.tabControlMenu = new TabControl();
  557. this.tabPageJoinLeave = new TabPage();
  558. this.label56 = new Label();
  559. this.ParametersHelp2 = new Button();
  560. this.label55 = new Label();
  561. this.label53 = new Label();
  562. this.label39 = new Label();
  563. this.label10 = new Label();
  564. this.label54 = new Label();
  565. this.label9 = new Label();
  566. this.GiveGodOnJoinCheck = new CheckBox();
  567. this.PMTB1 = new TextBox();
  568. this.PMjoinMessage = new CheckBox();
  569. this.EditJoinCheckbox = new CheckBox();
  570. this.KickGuestCheckBox = new CheckBox();
  571. this.LeftTB1 = new TextBox();
  572. this.LeaveMessageCheck = new CheckBox();
  573. this.Join1TB = new TextBox();
  574. this.JoinMessageCheck = new CheckBox();
  575. this.tabPageSnakeRain = new TabPage();
  576. this.RainFunction2 = new RadioButton();
  577. this.RainFunction4 = new RadioButton();
  578. this.RainFunction3 = new RadioButton();
  579. this.RainFunction1 = new RadioButton();
  580. this.RainWait = new NumericUpDown();
  581. this.label34 = new Label();
  582. this.RainID = new NumericUpDown();
  583. this.label33 = new Label();
  584. this.RainPanel = new Panel();
  585. this.RainCheckBox = new CheckBox();
  586. this.label32 = new Label();
  587. this.label31 = new Label();
  588. this.SnakeFunction1 = new CheckBox();
  589. this.SnakePanel = new Panel();
  590. this.Snake_checkBox = new CheckBox();
  591. this.SnakeWait = new NumericUpDown();
  592. this.label8 = new Label();
  593. this.label7 = new Label();
  594. this.label6 = new Label();
  595. this.SnakeID2 = new NumericUpDown();
  596. this.SnakeID3 = new NumericUpDown();
  597. this.SnakeID1 = new NumericUpDown();
  598. this.label5 = new Label();
  599. this.tabPageBotSettings = new TabPage();
  600. this.label16 = new Label();
  601. this.label30 = new Label();
  602. this.AuraRandomeButton = new Button();
  603. this.label29 = new Label();
  604. this.AuraShapeIDBox = new NumericUpDown();
  605. this.AuraColorIDBox = new NumericUpDown();
  606. this.label28 = new Label();
  607. this.SmileyRandomeButton = new Button();
  608. this.ToggleGodButton = new Button();
  609. this.label19 = new Label();
  610. this.SmileyIDBox = new NumericUpDown();
  611. this.label18 = new Label();
  612. this.label17 = new Label();
  613. this.BotPosY = new NumericUpDown();
  614. this.TeleportBotButton = new Button();
  615. this.BotPosX = new NumericUpDown();
  616. this.label15 = new Label();
  617. this.label14 = new Label();
  618. this.label13 = new Label();
  619. this.tabPageUsers = new TabPage();
  620. this.Kick_ALL = new Button();
  621. this.RemoveEdit_ALL = new Button();
  622. this.GiveEdit_ALL = new Button();
  623. this.RemoveGod_ALL = new Button();
  624. this.GiveGod_ALL = new Button();
  625. this.label1 = new Label();
  626. this.BanButton = new Button();
  627. this.RGodButton = new Button();
  628. this.GGodButton = new Button();
  629. this.SendMessageBox = new TextBox();
  630. this.label22 = new Label();
  631. this.SendMessageButton = new Button();
  632. this.REdit = new Button();
  633. this.GEditButton = new Button();
  634. this.label21 = new Label();
  635. this.KickMessageBox = new TextBox();
  636. this.label20 = new Label();
  637. this.KickButton = new Button();
  638. this.UsersListbox = new ListBox();
  639. this.tabPageAdmins = new TabPage();
  640. this.label44 = new Label();
  641. this.label43 = new Label();
  642. this.load = new Button();
  643. this.save = new Button();
  644. this.AddAdminManualButton = new Button();
  645. this.AddAdminManualTb = new TextBox();
  646. this.label27 = new Label();
  647. this.label26 = new Label();
  648. this.RAdmin = new Button();
  649. this.AAdmin = new Button();
  650. this.AdminListbox = new ListBox();
  651. this.UsersListbox2 = new ListBox();
  652. this.tabPageBans = new TabPage();
  653. this.ClearBanlist = new Button();
  654. this.label42 = new Label();
  655. this.BanNameTextBox = new TextBox();
  656. this.BanMessage = new TextBox();
  657. this.label41 = new Label();
  658. this.RemoveBan = new Button();
  659. this.AddBanButton = new Button();
  660. this.BanList = new ListBox();
  661. this.label38 = new Label();
  662. this.tabPage1 = new TabPage();
  663. this.AllowGoldCheck = new CheckBox();
  664. this.EnableWithlistCheck = new CheckBox();
  665. this.AllowFriendsCheck = new CheckBox();
  666. this.ClearWhitelistButton = new Button();
  667. this.label25 = new Label();
  668. this.WhitelistaddTextbox = new TextBox();
  669. this.WhitelistKickBox = new TextBox();
  670. this.label45 = new Label();
  671. this.RemoveWhitButton = new Button();
  672. this.AddWhiteButton = new Button();
  673. this.Whitelist = new ListBox();
  674. this.label46 = new Label();
  675. this.tabPage2 = new TabPage();
  676. this.label52 = new Label();
  677. this.label51 = new Label();
  678. this.label50 = new Label();
  679. this.label49 = new Label();
  680. this.label48 = new Label();
  681. this.label47 = new Label();
  682. this.groupBox4 = new GroupBox();
  683. this.Radio_H_Y = new RadioButton();
  684. this.Radio_H_N = new RadioButton();
  685. this.Radio_H_C = new RadioButton();
  686. this.Radio_H_G = new RadioButton();
  687. this.Radio_H_B = new RadioButton();
  688. this.Radio_H_P = new RadioButton();
  689. this.Radio_H_R = new RadioButton();
  690. this.groupBox3 = new GroupBox();
  691. this.Radio_N_Y = new RadioButton();
  692. this.Radio_N_N = new RadioButton();
  693. this.Radio_N_C = new RadioButton();
  694. this.Radio_N_G = new RadioButton();
  695. this.Radio_N_B = new RadioButton();
  696. this.Radio_N_P = new RadioButton();
  697. this.Radio_N_R = new RadioButton();
  698. this.groupBox2 = new GroupBox();
  699. this.Radio_W_Y = new RadioButton();
  700. this.Radio_W_N = new RadioButton();
  701. this.Radio_W_C = new RadioButton();
  702. this.Radio_W_G = new RadioButton();
  703. this.Radio_W_B = new RadioButton();
  704. this.Radio_W_P = new RadioButton();
  705. this.Radio_W_R = new RadioButton();
  706. this.groupBox1 = new GroupBox();
  707. this.Radio_A_Y = new RadioButton();
  708. this.Radio_A_N = new RadioButton();
  709. this.Radio_A_C = new RadioButton();
  710. this.Radio_A_G = new RadioButton();
  711. this.Radio_A_B = new RadioButton();
  712. this.Radio_A_P = new RadioButton();
  713. this.Radio_A_Red = new RadioButton();
  714. this.EnableTeamColors = new CheckBox();
  715. this.tabPageOthers = new TabPage();
  716. this.ParametersHelp1 = new Button();
  717. this.KillWinnerCheckbox = new CheckBox();
  718. this.ResetWinnerCheckbox = new CheckBox();
  719. this.KillallCheckbox = new CheckBox();
  720. this.FillTimeout = new NumericUpDown();
  721. this.label24 = new Label();
  722. this.label23 = new Label();
  723. this.FillBlockId = new NumericUpDown();
  724. this.FillWorldButton = new Button();
  725. this.label40 = new Label();
  726. this.KickNinjaRobberCheckbox = new CheckBox();
  727. this.WinTB = new TextBox();
  728. this.WinMessageCheck = new CheckBox();
  729. this.ResetAllCheckbox = new CheckBox();
  730. this.label36 = new Label();
  731. this.WinCrownAmount = new NumericUpDown();
  732. this.WinCoinAmount = new NumericUpDown();
  733. this.WinsCrownCheck = new CheckBox();
  734. this.WinsCoinCheck = new CheckBox();
  735. this.WinsCheck = new CheckBox();
  736. this.label35 = new Label();
  737. this.panel2 = new Panel();
  738. this.KillAllbutton = new Button();
  739. this.RespawnallButton = new Button();
  740. this.LoadLevelButton = new Button();
  741. this.label12 = new Label();
  742. this.SaveButton = new Button();
  743. this.label11 = new Label();
  744. this.RSmileyTimer = new System.Windows.Forms.Timer(this.components);
  745. this.RAuraTimer = new System.Windows.Forms.Timer(this.components);
  746. this.toolTipAdmin = new ToolTip(this.components);
  747. this.backgroundWorkerFillWorld = new BackgroundWorker();
  748. this.Site_Button = new Button();
  749. this.CreditsButton = new Button();
  750. this.label3 = new Label();
  751. this.VersionLabel = new Label();
  752. this.menuStripMain = new MenuStrip();
  753. this.OptionsDropdown = new ToolStripMenuItem();
  754. this.BackgroundOptions = new ToolStripMenuItem();
  755. this.DefaultBackground = new ToolStripMenuItem();
  756. this.SpaceBackground = new ToolStripMenuItem();
  757. this.customeBackground = new ToolStripMenuItem();
  758. this.openBackgroundDialog = new OpenFileDialog();
  759. this.pictureBox1 = new PictureBox();
  760. this.panel1.SuspendLayout();
  761. this.tabControlMenu.SuspendLayout();
  762. this.tabPageJoinLeave.SuspendLayout();
  763. this.tabPageSnakeRain.SuspendLayout();
  764. ((ISupportInitialize)this.RainWait).BeginInit();
  765. ((ISupportInitialize)this.RainID).BeginInit();
  766. this.RainPanel.SuspendLayout();
  767. this.SnakePanel.SuspendLayout();
  768. ((ISupportInitialize)this.SnakeWait).BeginInit();
  769. ((ISupportInitialize)this.SnakeID2).BeginInit();
  770. ((ISupportInitialize)this.SnakeID3).BeginInit();
  771. ((ISupportInitialize)this.SnakeID1).BeginInit();
  772. this.tabPageBotSettings.SuspendLayout();
  773. ((ISupportInitialize)this.AuraShapeIDBox).BeginInit();
  774. ((ISupportInitialize)this.AuraColorIDBox).BeginInit();
  775. ((ISupportInitialize)this.SmileyIDBox).BeginInit();
  776. ((ISupportInitialize)this.BotPosY).BeginInit();
  777. ((ISupportInitialize)this.BotPosX).BeginInit();
  778. this.tabPageUsers.SuspendLayout();
  779. this.tabPageAdmins.SuspendLayout();
  780. this.tabPageBans.SuspendLayout();
  781. this.tabPage1.SuspendLayout();
  782. this.tabPage2.SuspendLayout();
  783. this.groupBox4.SuspendLayout();
  784. this.groupBox3.SuspendLayout();
  785. this.groupBox2.SuspendLayout();
  786. this.groupBox1.SuspendLayout();
  787. this.tabPageOthers.SuspendLayout();
  788. ((ISupportInitialize)this.FillTimeout).BeginInit();
  789. ((ISupportInitialize)this.FillBlockId).BeginInit();
  790. ((ISupportInitialize)this.WinCrownAmount).BeginInit();
  791. ((ISupportInitialize)this.WinCoinAmount).BeginInit();
  792. this.panel2.SuspendLayout();
  793. this.menuStripMain.SuspendLayout();
  794. ((ISupportInitialize)this.pictureBox1).BeginInit();
  795. base.SuspendLayout();
  796. this.panel1.BackColor = SystemColors.ActiveBorder;
  797. this.panel1.Controls.Add(this.Connect_Facebook);
  798. this.panel1.Controls.Add(this.Connect_Kongregate);
  799. this.panel1.Controls.Add(this.Connect_EE);
  800. this.panel1.Controls.Add(this.connect_button);
  801. this.panel1.Controls.Add(this.label4);
  802. this.panel1.Controls.Add(this.world_textbox);
  803. this.panel1.Controls.Add(this.labelL2);
  804. this.panel1.Controls.Add(this.password_textbox);
  805. this.panel1.Controls.Add(this.email_textbox);
  806. this.panel1.Controls.Add(this.label2);
  807. this.panel1.Controls.Add(this.labelL1);
  808. this.panel1.Location = new Point(13, 29);
  809. this.panel1.Name = "panel1";
  810. this.panel1.Size = new Size(279, 173);
  811. this.panel1.TabIndex = 0;
  812. this.Connect_Facebook.AutoSize = true;
  813. this.Connect_Facebook.Location = new Point(174, 26);
  814. this.Connect_Facebook.Name = "Connect_Facebook";
  815. this.Connect_Facebook.Size = new Size(96, 17);
  816. this.Connect_Facebook.TabIndex = 10;
  817. this.Connect_Facebook.Text = "Facebook.com";
  818. this.Connect_Facebook.UseVisualStyleBackColor = true;
  819. this.Connect_Facebook.CheckedChanged += new System.EventHandler(this.Connect_Facebook_CheckedChanged);
  820. this.Connect_Kongregate.AutoSize = true;
  821. this.Connect_Kongregate.Location = new Point(66, 26);
  822. this.Connect_Kongregate.Name = "Connect_Kongregate";
  823. this.Connect_Kongregate.Size = new Size(102, 17);
  824. this.Connect_Kongregate.TabIndex = 9;
  825. this.Connect_Kongregate.Text = "kongregate.com";
  826. this.Connect_Kongregate.UseVisualStyleBackColor = true;
  827. this.Connect_Kongregate.CheckedChanged += new System.EventHandler(this.Connect_Kongregate_CheckedChanged);
  828. this.Connect_EE.AutoSize = true;
  829. this.Connect_EE.Checked = true;
  830. this.Connect_EE.Location = new Point(8, 26);
  831. this.Connect_EE.Name = "Connect_EE";
  832. this.Connect_EE.Size = new Size(60, 17);
  833. this.Connect_EE.TabIndex = 8;
  834. this.Connect_EE.TabStop = true;
  835. this.Connect_EE.Text = "ee.com";
  836. this.Connect_EE.UseVisualStyleBackColor = true;
  837. this.Connect_EE.CheckedChanged += new System.EventHandler(this.Connect_EE_CheckedChanged);
  838. this.connect_button.Location = new Point(7, 127);
  839. this.connect_button.Name = "connect_button";
  840. this.connect_button.Size = new Size(263, 37);
  841. this.connect_button.TabIndex = 7;
  842. this.connect_button.Text = "Connect";
  843. this.connect_button.UseVisualStyleBackColor = true;
  844. this.connect_button.Click += new System.EventHandler(this.connect_Click);
  845. this.label4.AutoSize = true;
  846. this.label4.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  847. this.label4.Location = new Point(5, 104);
  848. this.label4.Name = "label4";
  849. this.label4.Size = new Size(57, 13);
  850. this.label4.TabIndex = 6;
  851. this.label4.Text = "World ID";
  852. this.world_textbox.Location = new Point(78, 101);
  853. this.world_textbox.Name = "world_textbox";
  854. this.world_textbox.Size = new Size(192, 20);
  855. this.world_textbox.TabIndex = 5;
  856. this.labelL2.AutoSize = true;
  857. this.labelL2.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  858. this.labelL2.Location = new Point(4, 78);
  859. this.labelL2.Name = "labelL2";
  860. this.labelL2.Size = new Size(61, 13);
  861. this.labelL2.TabIndex = 4;
  862. this.labelL2.Text = "Password";
  863. this.password_textbox.Location = new Point(78, 75);
  864. this.password_textbox.Name = "password_textbox";
  865. this.password_textbox.PasswordChar = '•';
  866. this.password_textbox.Size = new Size(192, 20);
  867. this.password_textbox.TabIndex = 3;
  868. this.email_textbox.Location = new Point(78, 49);
  869. this.email_textbox.Name = "email_textbox";
  870. this.email_textbox.Size = new Size(192, 20);
  871. this.email_textbox.TabIndex = 2;
  872. this.label2.AutoSize = true;
  873. this.label2.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
  874. this.label2.Location = new Point(3, 2);
  875. this.label2.Name = "label2";
  876. this.label2.Size = new Size(148, 20);
  877. this.label2.TabIndex = 1;
  878. this.label2.Text = "Login information";
  879. this.labelL1.AutoSize = true;
  880. this.labelL1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  881. this.labelL1.Location = new Point(3, 52);
  882. this.labelL1.Name = "labelL1";
  883. this.labelL1.Size = new Size(42, 13);
  884. this.labelL1.TabIndex = 0;
  885. this.labelL1.Text = "E-Mail";
  886. this.tabControlMenu.Controls.Add(this.tabPageJoinLeave);
  887. this.tabControlMenu.Controls.Add(this.tabPageSnakeRain);
  888. this.tabControlMenu.Controls.Add(this.tabPageBotSettings);
  889. this.tabControlMenu.Controls.Add(this.tabPageUsers);
  890. this.tabControlMenu.Controls.Add(this.tabPageAdmins);
  891. this.tabControlMenu.Controls.Add(this.tabPageBans);
  892. this.tabControlMenu.Controls.Add(this.tabPage1);
  893. this.tabControlMenu.Controls.Add(this.tabPage2);
  894. this.tabControlMenu.Controls.Add(this.tabPageOthers);
  895. this.tabControlMenu.HotTrack = true;
  896. this.tabControlMenu.Location = new Point(12, 208);
  897. this.tabControlMenu.Name = "tabControlMenu";
  898. this.tabControlMenu.SelectedIndex = 0;
  899. this.tabControlMenu.Size = new Size(432, 198);
  900. this.tabControlMenu.TabIndex = 1;
  901. this.tabPageJoinLeave.BackColor = Color.Silver;
  902. this.tabPageJoinLeave.Controls.Add(this.label56);
  903. this.tabPageJoinLeave.Controls.Add(this.ParametersHelp2);
  904. this.tabPageJoinLeave.Controls.Add(this.label55);
  905. this.tabPageJoinLeave.Controls.Add(this.label53);
  906. this.tabPageJoinLeave.Controls.Add(this.label39);
  907. this.tabPageJoinLeave.Controls.Add(this.label10);
  908. this.tabPageJoinLeave.Controls.Add(this.label54);
  909. this.tabPageJoinLeave.Controls.Add(this.label9);
  910. this.tabPageJoinLeave.Controls.Add(this.GiveGodOnJoinCheck);
  911. this.tabPageJoinLeave.Controls.Add(this.PMTB1);
  912. this.tabPageJoinLeave.Controls.Add(this.PMjoinMessage);
  913. this.tabPageJoinLeave.Controls.Add(this.EditJoinCheckbox);
  914. this.tabPageJoinLeave.Controls.Add(this.KickGuestCheckBox);
  915. this.tabPageJoinLeave.Controls.Add(this.LeftTB1);
  916. this.tabPageJoinLeave.Controls.Add(this.LeaveMessageCheck);
  917. this.tabPageJoinLeave.Controls.Add(this.Join1TB);
  918. this.tabPageJoinLeave.Controls.Add(this.JoinMessageCheck);
  919. this.tabPageJoinLeave.Location = new Point(4, 22);
  920. this.tabPageJoinLeave.Name = "tabPageJoinLeave";
  921. this.tabPageJoinLeave.Padding = new Padding(3);
  922. this.tabPageJoinLeave.Size = new Size(424, 172);
  923. this.tabPageJoinLeave.TabIndex = 0;
  924. this.tabPageJoinLeave.Text = "Join / Leave";
  925. this.label56.AutoSize = true;
  926. this.label56.Location = new Point(283, 42);
  927. this.label56.Name = "label56";
  928. this.label56.Size = new Size(53, 13);
  929. this.label56.TabIndex = 27;
  930. this.label56.Text = "- %plays%";
  931. this.ParametersHelp2.BackgroundImage = Resources.help;
  932. this.ParametersHelp2.BackgroundImageLayout = ImageLayout.Stretch;
  933. this.ParametersHelp2.Location = new Point(375, 13);
  934. this.ParametersHelp2.Name = "ParametersHelp2";
  935. this.ParametersHelp2.Size = new Size(22, 20);
  936. this.ParametersHelp2.TabIndex = 26;
  937. this.toolTipAdmin.SetToolTip(this.ParametersHelp2, "Help about the joinmessages");
  938. this.ParametersHelp2.UseVisualStyleBackColor = true;
  939. this.ParametersHelp2.Click += new System.EventHandler(this.button1_Click);
  940. this.label55.AutoSize = true;
  941. this.label55.Location = new Point(283, 29);
  942. this.label55.Name = "label55";
  943. this.label55.Size = new Size(75, 13);
  944. this.label55.TabIndex = 25;
  945. this.label55.Text = "- %username%";
  946. this.label53.AutoSize = true;
  947. this.label53.Location = new Point(314, 106);
  948. this.label53.Name = "label53";
  949. this.label53.Size = new Size(16, 13);
  950. this.label53.TabIndex = 24;
  951. this.label53.Text = "â–¼";
  952. this.label39.AutoSize = true;
  953. this.label39.Location = new Point(285, 119);
  954. this.label39.Name = "label39";
  955. this.label39.Size = new Size(75, 13);
  956. this.label39.TabIndex = 23;
  957. this.label39.Text = "Hello test1999";
  958. this.label10.AutoSize = true;
  959. this.label10.Location = new Point(284, 89);
  960. this.label10.Name = "label10";
  961. this.label10.Size = new Size(96, 13);
  962. this.label10.TabIndex = 22;
  963. this.label10.Text = "Hello %username%";
  964. this.label54.AutoSize = true;
  965. this.label54.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  966. this.label54.Location = new Point(284, 76);
  967. this.label54.Name = "label54";
  968. this.label54.Size = new Size(58, 13);
  969. this.label54.TabIndex = 21;
  970. this.label54.Text = "Example:";
  971. this.label9.AutoSize = true;
  972. this.label9.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  973. this.label9.Location = new Point(283, 13);
  974. this.label9.Name = "label9";
  975. this.label9.Size = new Size(73, 13);
  976. this.label9.TabIndex = 17;
  977. this.label9.Text = "parameters:";
  978. this.GiveGodOnJoinCheck.AutoSize = true;
  979. this.GiveGodOnJoinCheck.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
  980. this.GiveGodOnJoinCheck.Location = new Point(278, 149);
  981. this.GiveGodOnJoinCheck.Name = "GiveGodOnJoinCheck";
  982. this.GiveGodOnJoinCheck.Size = new Size(119, 17);
  983. this.GiveGodOnJoinCheck.TabIndex = 16;
  984. this.GiveGodOnJoinCheck.Text = "Give god on join";
  985. this.GiveGodOnJoinCheck.UseVisualStyleBackColor = true;
  986. this.PMTB1.Location = new Point(6, 125);
  987. this.PMTB1.Name = "PMTB1";
  988. this.PMTB1.Size = new Size(266, 20);
  989. this.PMTB1.TabIndex = 13;
  990. this.PMjoinMessage.AutoSize = true;
  991. this.PMjoinMessage.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
  992. this.PMjoinMessage.Location = new Point(6, 102);
  993. this.PMjoinMessage.Name = "PMjoinMessage";
  994. this.PMjoinMessage.Size = new Size(143, 17);
  995. this.PMjoinMessage.TabIndex = 12;
  996. this.PMjoinMessage.Text = "PM to player on join.";
  997. this.PMjoinMessage.UseVisualStyleBackColor = true;
  998. this.EditJoinCheckbox.AutoSize = true;
  999. this.EditJoinCheckbox.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
  1000. this.EditJoinCheckbox.Location = new Point(153, 149);
  1001. this.EditJoinCheckbox.Name = "EditJoinCheckbox";
  1002. this.EditJoinCheckbox.Size = new Size(119, 17);
  1003. this.EditJoinCheckbox.TabIndex = 11;
  1004. this.EditJoinCheckbox.Text = "Give edit on join";
  1005. this.EditJoinCheckbox.UseVisualStyleBackColor = true;
  1006. this.KickGuestCheckBox.AutoSize = true;
  1007. this.KickGuestCheckBox.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
  1008. this.KickGuestCheckBox.Location = new Point(6, 149);
  1009. this.KickGuestCheckBox.Name = "KickGuestCheckBox";
  1010. this.KickGuestCheckBox.Size = new Size(128, 17);
  1011. this.KickGuestCheckBox.TabIndex = 10;
  1012. this.KickGuestCheckBox.Text = "Kick guest on join";
  1013. this.KickGuestCheckBox.UseVisualStyleBackColor = true;
  1014. this.LeftTB1.Location = new Point(6, 76);
  1015. this.LeftTB1.Name = "LeftTB1";
  1016. this.LeftTB1.Size = new Size(266, 20);
  1017. this.LeftTB1.TabIndex = 7;
  1018. this.LeaveMessageCheck.AutoSize = true;
  1019. this.LeaveMessageCheck.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
  1020. this.LeaveMessageCheck.Location = new Point(6, 53);
  1021. this.LeaveMessageCheck.Name = "LeaveMessageCheck";
  1022. this.LeaveMessageCheck.Size = new Size(115, 17);
  1023. this.LeaveMessageCheck.TabIndex = 6;
  1024. this.LeaveMessageCheck.Text = "Leave Message";
  1025. this.LeaveMessageCheck.UseVisualStyleBackColor = true;
  1026. this.Join1TB.Location = new Point(6, 26);
  1027. this.Join1TB.Name = "Join1TB";
  1028. this.Join1TB.Size = new Size(266, 20);
  1029. this.Join1TB.TabIndex = 3;
  1030. this.JoinMessageCheck.AutoSize = true;
  1031. this.JoinMessageCheck.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
  1032. this.JoinMessageCheck.Location = new Point(6, 3);
  1033. this.JoinMessageCheck.Name = "JoinMessageCheck";
  1034. this.JoinMessageCheck.Size = new Size(103, 17);
  1035. this.JoinMessageCheck.TabIndex = 2;
  1036. this.JoinMessageCheck.Text = "Join Message";
  1037. this.JoinMessageCheck.UseVisualStyleBackColor = true;
  1038. this.tabPageSnakeRain.BackColor = Color.Silver;
  1039. this.tabPageSnakeRain.Controls.Add(this.RainFunction2);
  1040. this.tabPageSnakeRain.Controls.Add(this.RainFunction4);
  1041. this.tabPageSnakeRain.Controls.Add(this.RainFunction3);
  1042. this.tabPageSnakeRain.Controls.Add(this.RainFunction1);
  1043. this.tabPageSnakeRain.Controls.Add(this.RainWait);
  1044. this.tabPageSnakeRain.Controls.Add(this.label34);
  1045. this.tabPageSnakeRain.Controls.Add(this.RainID);
  1046. this.tabPageSnakeRain.Controls.Add(this.label33);
  1047. this.tabPageSnakeRain.Controls.Add(this.RainPanel);
  1048. this.tabPageSnakeRain.Controls.Add(this.label32);
  1049. this.tabPageSnakeRain.Controls.Add(this.label31);
  1050. this.tabPageSnakeRain.Controls.Add(this.SnakeFunction1);
  1051. this.tabPageSnakeRain.Controls.Add(this.SnakePanel);
  1052. this.tabPageSnakeRain.Controls.Add(this.SnakeWait);
  1053. this.tabPageSnakeRain.Controls.Add(this.label8);
  1054. this.tabPageSnakeRain.Controls.Add(this.label7);
  1055. this.tabPageSnakeRain.Controls.Add(this.label6);
  1056. this.tabPageSnakeRain.Controls.Add(this.SnakeID2);
  1057. this.tabPageSnakeRain.Controls.Add(this.SnakeID3);
  1058. this.tabPageSnakeRain.Controls.Add(this.SnakeID1);
  1059. this.tabPageSnakeRain.Controls.Add(this.label5);
  1060. this.tabPageSnakeRain.Location = new Point(4, 22);
  1061. this.tabPageSnakeRain.Name = "tabPageSnakeRain";
  1062. this.tabPageSnakeRain.Padding = new Padding(3);
  1063. this.tabPageSnakeRain.Size = new Size(424, 172);
  1064. this.tabPageSnakeRain.TabIndex = 1;
  1065. this.tabPageSnakeRain.Text = "Snake / Rain";
  1066. this.RainFunction2.AutoSize = true;
  1067. this.RainFunction2.Location = new Point(320, 33);
  1068. this.RainFunction2.Name = "RainFunction2";
  1069. this.RainFunction2.Size = new Size(53, 17);
  1070. this.RainFunction2.TabIndex = 20;
  1071. this.RainFunction2.Text = "Stack";
  1072. this.RainFunction2.UseVisualStyleBackColor = true;
  1073. this.RainFunction4.AutoSize = true;
  1074. this.RainFunction4.Location = new Point(320, 79);
  1075. this.RainFunction4.Name = "RainFunction4";
  1076. this.RainFunction4.Size = new Size(101, 17);
  1077. this.RainFunction4.TabIndex = 19;
  1078. this.RainFunction4.Text = "Delete on touch";
  1079. this.RainFunction4.UseVisualStyleBackColor = true;
  1080. this.RainFunction3.AutoSize = true;
  1081. this.RainFunction3.Location = new Point(320, 56);
  1082. this.RainFunction3.Name = "RainFunction3";
  1083. this.RainFunction3.Size = new Size(86, 17);
  1084. this.RainFunction3.TabIndex = 18;
  1085. this.RainFunction3.Text = "Do not stack";
  1086. this.RainFunction3.UseVisualStyleBackColor = true;
  1087. this.RainFunction1.AutoSize = true;
  1088. this.RainFunction1.Checked = true;
  1089. this.RainFunction1.Location = new Point(320, 10);
  1090. this.RainFunction1.Name = "RainFunction1";
  1091. this.RainFunction1.Size = new Size(79, 17);
  1092. this.RainFunction1.TabIndex = 17;
  1093. this.RainFunction1.TabStop = true;
  1094. this.RainFunction1.Text = "Destructive";
  1095. this.RainFunction1.UseVisualStyleBackColor = true;
  1096. this.RainWait.Location = new Point(232, 75);
  1097. NumericUpDown arg_204E_0 = this.RainWait;
  1098. int[] array = new int[4];
  1099. array[0] = 250;
  1100. arg_204E_0.Maximum = new decimal(array);
  1101. NumericUpDown arg_206A_0 = this.RainWait;
  1102. int[] array2 = new int[4];
  1103. array2[0] = 5;
  1104. arg_206A_0.Minimum = new decimal(array2);
  1105. this.RainWait.Name = "RainWait";
  1106. this.RainWait.Size = new Size(47, 20);
  1107. this.RainWait.TabIndex = 16;
  1108. NumericUpDown arg_20B7_0 = this.RainWait;
  1109. int[] array3 = new int[4];
  1110. array3[0] = 5;
  1111. arg_20B7_0.Value = new decimal(array3);
  1112. this.label34.AutoSize = true;
  1113. this.label34.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1114. this.label34.Location = new Point(229, 56);
  1115. this.label34.Name = "label34";
  1116. this.label34.Size = new Size(64, 16);
  1117. this.label34.TabIndex = 15;
  1118. this.label34.Text = "Timeout";
  1119. this.RainID.Location = new Point(232, 33);
  1120. NumericUpDown arg_2172_0 = this.RainID;
  1121. int[] array4 = new int[4];
  1122. array4[0] = 9000;
  1123. arg_2172_0.Maximum = new decimal(array4);
  1124. this.RainID.Name = "RainID";
  1125. this.RainID.Size = new Size(47, 20);
  1126. this.RainID.TabIndex = 14;
  1127. this.label33.AutoSize = true;
  1128. this.label33.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1129. this.label33.Location = new Point(229, 16);
  1130. this.label33.Name = "label33";
  1131. this.label33.Size = new Size(56, 13);
  1132. this.label33.TabIndex = 13;
  1133. this.label33.Text = "Block ID";
  1134. this.RainPanel.BackColor = Color.Gray;
  1135. this.RainPanel.Controls.Add(this.RainCheckBox);
  1136. this.RainPanel.Location = new Point(232, 112);
  1137. this.RainPanel.Name = "RainPanel";
  1138. this.RainPanel.Size = new Size(174, 48);
  1139. this.RainPanel.TabIndex = 11;
  1140. this.RainCheckBox.AutoSize = true;
  1141. this.RainCheckBox.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
  1142. this.RainCheckBox.Location = new Point(17, 10);
  1143. this.RainCheckBox.Name = "RainCheckBox";
  1144. this.RainCheckBox.Size = new Size(108, 24);
  1145. this.RainCheckBox.TabIndex = 6;
  1146. this.RainCheckBox.Text = "Enable rain";
  1147. this.RainCheckBox.UseVisualStyleBackColor = true;
  1148. this.RainCheckBox.CheckedChanged += new System.EventHandler(this.RainCheckBox_CheckedChanged);
  1149. this.label32.AutoSize = true;
  1150. this.label32.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1151. this.label32.Location = new Point(229, 3);
  1152. this.label32.Name = "label32";
  1153. this.label32.Size = new Size(80, 13);
  1154. this.label32.TabIndex = 12;
  1155. this.label32.Text = "Rain Options";
  1156. this.label31.AutoSize = true;
  1157. this.label31.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1158. this.label31.Location = new Point(3, 3);
  1159. this.label31.Name = "label31";
  1160. this.label31.Size = new Size(90, 13);
  1161. this.label31.TabIndex = 11;
  1162. this.label31.Text = "Snake Options";
  1163. this.SnakeFunction1.AutoSize = true;
  1164. this.SnakeFunction1.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
  1165. this.SnakeFunction1.Location = new Point(74, 71);
  1166. this.SnakeFunction1.Name = "SnakeFunction1";
  1167. this.SnakeFunction1.Size = new Size(106, 24);
  1168. this.SnakeFunction1.TabIndex = 9;
  1169. this.SnakeFunction1.Text = "Longer Tail";
  1170. this.SnakeFunction1.UseVisualStyleBackColor = true;
  1171. this.SnakePanel.BackColor = Color.Gray;
  1172. this.SnakePanel.Controls.Add(this.Snake_checkBox);
  1173. this.SnakePanel.Location = new Point(6, 112);
  1174. this.SnakePanel.Name = "SnakePanel";
  1175. this.SnakePanel.Size = new Size(174, 48);
  1176. this.SnakePanel.TabIndex = 10;
  1177. this.Snake_checkBox.AutoSize = true;
  1178. this.Snake_checkBox.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
  1179. this.Snake_checkBox.Location = new Point(15, 10);
  1180. this.Snake_checkBox.Name = "Snake_checkBox";
  1181. this.Snake_checkBox.Size = new Size(125, 24);
  1182. this.Snake_checkBox.TabIndex = 6;
  1183. this.Snake_checkBox.Text = "Enable snake";
  1184. this.Snake_checkBox.UseVisualStyleBackColor = true;
  1185. this.Snake_checkBox.CheckedChanged += new System.EventHandler(this.Snake_checkBox_CheckedChanged);
  1186. this.SnakeWait.Location = new Point(6, 75);
  1187. NumericUpDown arg_25FE_0 = this.SnakeWait;
  1188. int[] array5 = new int[4];
  1189. array5[0] = 250;
  1190. arg_25FE_0.Maximum = new decimal(array5);
  1191. NumericUpDown arg_261D_0 = this.SnakeWait;
  1192. int[] array6 = new int[4];
  1193. array6[0] = 5;
  1194. arg_261D_0.Minimum = new decimal(array6);
  1195. this.SnakeWait.Name = "SnakeWait";
  1196. this.SnakeWait.Size = new Size(47, 20);
  1197. this.SnakeWait.TabIndex = 8;
  1198. NumericUpDown arg_266C_0 = this.SnakeWait;
  1199. int[] array7 = new int[4];
  1200. array7[0] = 5;
  1201. arg_266C_0.Value = new decimal(array7);
  1202. this.label8.AutoSize = true;
  1203. this.label8.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1204. this.label8.Location = new Point(3, 56);
  1205. this.label8.Name = "label8";
  1206. this.label8.Size = new Size(64, 16);
  1207. this.label8.TabIndex = 7;
  1208. this.label8.Text = "Timeout";
  1209. this.label7.AutoSize = true;
  1210. this.label7.Font = new Font("Stencil Std", 9.749999f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1211. this.label7.Location = new Point(138, 33);
  1212. this.label7.Name = "label7";
  1213. this.label7.Size = new Size(20, 17);
  1214. this.label7.TabIndex = 5;
  1215. this.label7.Text = "â–º";
  1216. this.label6.AutoSize = true;
  1217. this.label6.Font = new Font("Stencil Std", 9.749999f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1218. this.label6.Location = new Point(59, 33);
  1219. this.label6.Name = "label6";
  1220. this.label6.Size = new Size(20, 17);
  1221. this.label6.TabIndex = 4;
  1222. this.label6.Text = "â–º";
  1223. this.SnakeID2.Location = new Point(85, 33);
  1224. NumericUpDown arg_281C_0 = this.SnakeID2;
  1225. int[] array8 = new int[4];
  1226. array8[0] = 9000;
  1227. arg_281C_0.Maximum = new decimal(array8);
  1228. this.SnakeID2.Name = "SnakeID2";
  1229. this.SnakeID2.Size = new Size(47, 20);
  1230. this.SnakeID2.TabIndex = 3;
  1231. this.SnakeID3.Location = new Point(164, 33);
  1232. NumericUpDown arg_2886_0 = this.SnakeID3;
  1233. int[] array9 = new int[4];
  1234. array9[0] = 9000;
  1235. arg_2886_0.Maximum = new decimal(array9);
  1236. this.SnakeID3.Name = "SnakeID3";
  1237. this.SnakeID3.Size = new Size(47, 20);
  1238. this.SnakeID3.TabIndex = 2;
  1239. this.SnakeID1.Location = new Point(6, 33);
  1240. NumericUpDown arg_28EC_0 = this.SnakeID1;
  1241. int[] array10 = new int[4];
  1242. array10[0] = 9000;
  1243. arg_28EC_0.Maximum = new decimal(array10);
  1244. this.SnakeID1.Name = "SnakeID1";
  1245. this.SnakeID1.Size = new Size(47, 20);
  1246. this.SnakeID1.TabIndex = 1;
  1247. this.label5.AutoSize = true;
  1248. this.label5.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1249. this.label5.Location = new Point(3, 16);
  1250. this.label5.Name = "label5";
  1251. this.label5.Size = new Size(65, 13);
  1252. this.label5.TabIndex = 0;
  1253. this.label5.Text = "Block ID's";
  1254. this.tabPageBotSettings.BackColor = Color.Silver;
  1255. this.tabPageBotSettings.Controls.Add(this.label16);
  1256. this.tabPageBotSettings.Controls.Add(this.label30);
  1257. this.tabPageBotSettings.Controls.Add(this.AuraRandomeButton);
  1258. this.tabPageBotSettings.Controls.Add(this.label29);
  1259. this.tabPageBotSettings.Controls.Add(this.AuraShapeIDBox);
  1260. this.tabPageBotSettings.Controls.Add(this.AuraColorIDBox);
  1261. this.tabPageBotSettings.Controls.Add(this.label28);
  1262. this.tabPageBotSettings.Controls.Add(this.SmileyRandomeButton);
  1263. this.tabPageBotSettings.Controls.Add(this.ToggleGodButton);
  1264. this.tabPageBotSettings.Controls.Add(this.label19);
  1265. this.tabPageBotSettings.Controls.Add(this.SmileyIDBox);
  1266. this.tabPageBotSettings.Controls.Add(this.label18);
  1267. this.tabPageBotSettings.Controls.Add(this.label17);
  1268. this.tabPageBotSettings.Controls.Add(this.BotPosY);
  1269. this.tabPageBotSettings.Controls.Add(this.TeleportBotButton);
  1270. this.tabPageBotSettings.Controls.Add(this.BotPosX);
  1271. this.tabPageBotSettings.Controls.Add(this.label15);
  1272. this.tabPageBotSettings.Controls.Add(this.label14);
  1273. this.tabPageBotSettings.Controls.Add(this.label13);
  1274. this.tabPageBotSettings.Location = new Point(4, 22);
  1275. this.tabPageBotSettings.Name = "tabPageBotSettings";
  1276. this.tabPageBotSettings.Size = new Size(424, 172);
  1277. this.tabPageBotSettings.TabIndex = 2;
  1278. this.tabPageBotSettings.Text = "Bot Settings";
  1279. this.label16.AutoSize = true;
  1280. this.label16.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1281. this.label16.Location = new Point(151, 7);
  1282. this.label16.Name = "label16";
  1283. this.label16.Size = new Size(46, 13);
  1284. this.label16.TabIndex = 27;
  1285. this.label16.Text = "Toggle";
  1286. this.label30.AutoSize = true;
  1287. this.label30.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
  1288. this.label30.Location = new Point(8, 115);
  1289. this.label30.Name = "label30";
  1290. this.label30.Size = new Size(77, 20);
  1291. this.label30.TabIndex = 26;
  1292. this.label30.Text = "Shape ID";
  1293. this.AuraRandomeButton.Enabled = false;
  1294. this.AuraRandomeButton.Location = new Point(154, 89);
  1295. this.AuraRandomeButton.Name = "AuraRandomeButton";
  1296. this.AuraRandomeButton.Size = new Size(78, 43);
  1297. this.AuraRandomeButton.TabIndex = 25;
  1298. this.AuraRandomeButton.Text = "Randomizer ON";
  1299. this.AuraRandomeButton.UseVisualStyleBackColor = true;
  1300. this.AuraRandomeButton.Click += new System.EventHandler(this.AuraRandomeButton_Click);
  1301. this.label29.AutoSize = true;
  1302. this.label29.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
  1303. this.label29.Location = new Point(8, 89);
  1304. this.label29.Name = "label29";
  1305. this.label29.Size = new Size(67, 20);
  1306. this.label29.TabIndex = 24;
  1307. this.label29.Text = "Color ID";
  1308. this.AuraShapeIDBox.Enabled = false;
  1309. this.AuraShapeIDBox.Location = new Point(98, 115);
  1310. NumericUpDown arg_2DE7_0 = this.AuraShapeIDBox;
  1311. int[] array11 = new int[4];
  1312. array11[0] = 129;
  1313. arg_2DE7_0.Maximum = new decimal(array11);
  1314. this.AuraShapeIDBox.Name = "AuraShapeIDBox";
  1315. this.AuraShapeIDBox.Size = new Size(50, 20);
  1316. this.AuraShapeIDBox.TabIndex = 23;
  1317. this.AuraShapeIDBox.ValueChanged += new System.EventHandler(this.AuraShapeIDBox_ValueChanged);
  1318. this.AuraColorIDBox.Enabled = false;
  1319. this.AuraColorIDBox.Location = new Point(98, 89);
  1320. NumericUpDown arg_2E72_0 = this.AuraColorIDBox;
  1321. int[] array12 = new int[4];
  1322. array12[0] = 129;
  1323. arg_2E72_0.Maximum = new decimal(array12);
  1324. this.AuraColorIDBox.Name = "AuraColorIDBox";
  1325. this.AuraColorIDBox.Size = new Size(50, 20);
  1326. this.AuraColorIDBox.TabIndex = 22;
  1327. this.AuraColorIDBox.ValueChanged += new System.EventHandler(this.AuraColorIDBox_ValueChanged);
  1328. this.label28.AutoSize = true;
  1329. this.label28.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1330. this.label28.Location = new Point(9, 73);
  1331. this.label28.Name = "label28";
  1332. this.label28.Size = new Size(100, 13);
  1333. this.label28.TabIndex = 21;
  1334. this.label28.Text = "Bot aura options";
  1335. this.SmileyRandomeButton.Enabled = false;
  1336. this.SmileyRandomeButton.Location = new Point(154, 24);
  1337. this.SmileyRandomeButton.Name = "SmileyRandomeButton";
  1338. this.SmileyRandomeButton.Size = new Size(78, 43);
  1339. this.SmileyRandomeButton.TabIndex = 20;
  1340. this.SmileyRandomeButton.Text = "Randomizer ON";
  1341. this.SmileyRandomeButton.UseVisualStyleBackColor = true;
  1342. this.SmileyRandomeButton.Click += new System.EventHandler(this.SmileyRandomeButton_Click);
  1343. this.ToggleGodButton.Enabled = false;
  1344. this.ToggleGodButton.Location = new Point(254, 24);
  1345. this.ToggleGodButton.Name = "ToggleGodButton";
  1346. this.ToggleGodButton.Size = new Size(80, 43);
  1347. this.ToggleGodButton.TabIndex = 19;
  1348. this.ToggleGodButton.Text = "God on";
  1349. this.ToggleGodButton.UseVisualStyleBackColor = true;
  1350. this.ToggleGodButton.Click += new System.EventHandler(this.ToggleGodButton_Click);
  1351. this.label19.AutoSize = true;
  1352. this.label19.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1353. this.label19.Location = new Point(251, 7);
  1354. this.label19.Name = "label19";
  1355. this.label19.Size = new Size(73, 13);
  1356. this.label19.TabIndex = 18;
  1357. this.label19.Text = "Toggle God";
  1358. this.SmileyIDBox.Enabled = false;
  1359. this.SmileyIDBox.Location = new Point(42, 24);
  1360. NumericUpDown arg_3109_0 = this.SmileyIDBox;
  1361. int[] array13 = new int[4];
  1362. array13[0] = 129;
  1363. arg_3109_0.Maximum = new decimal(array13);
  1364. this.SmileyIDBox.Name = "SmileyIDBox";
  1365. this.SmileyIDBox.Size = new Size(50, 20);
  1366. this.SmileyIDBox.TabIndex = 17;
  1367. this.SmileyIDBox.ValueChanged += new System.EventHandler(this.SmileyIDBox_ValueChanged);
  1368. this.label18.AutoSize = true;
  1369. this.label18.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
  1370. this.label18.Location = new Point(8, 24);
  1371. this.label18.Name = "label18";
  1372. this.label18.Size = new Size(26, 20);
  1373. this.label18.TabIndex = 16;
  1374. this.label18.Text = "ID";
  1375. this.label17.AutoSize = true;
  1376. this.label17.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1377. this.label17.Location = new Point(9, 7);
  1378. this.label17.Name = "label17";
  1379. this.label17.Size = new Size(109, 13);
  1380. this.label17.TabIndex = 15;
  1381. this.label17.Text = "Bot smiley options";
  1382. this.BotPosY.Location = new Point(365, 47);
  1383. NumericUpDown arg_3285_0 = this.BotPosY;
  1384. int[] array14 = new int[4];
  1385. array14[0] = 1000;
  1386. arg_3285_0.Maximum = new decimal(array14);
  1387. this.BotPosY.Name = "BotPosY";
  1388. this.BotPosY.Size = new Size(50, 20);
  1389. this.BotPosY.TabIndex = 6;
  1390. this.TeleportBotButton.Enabled = false;
  1391. this.TeleportBotButton.Location = new Point(344, 73);
  1392. this.TeleportBotButton.Name = "TeleportBotButton";
  1393. this.TeleportBotButton.Size = new Size(71, 35);
  1394. this.TeleportBotButton.TabIndex = 5;
  1395. this.TeleportBotButton.Text = "Teleport to location";
  1396. this.TeleportBotButton.UseVisualStyleBackColor = true;
  1397. this.TeleportBotButton.Click += new System.EventHandler(this.TeleportBotButton_Click);
  1398. this.BotPosX.Location = new Point(365, 24);
  1399. NumericUpDown arg_3375_0 = this.BotPosX;
  1400. int[] array15 = new int[4];
  1401. array15[0] = 1000;
  1402. arg_3375_0.Maximum = new decimal(array15);
  1403. this.BotPosX.Name = "BotPosX";
  1404. this.BotPosX.Size = new Size(50, 20);
  1405. this.BotPosX.TabIndex = 4;
  1406. this.label15.AutoSize = true;
  1407. this.label15.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
  1408. this.label15.Location = new Point(340, 44);
  1409. this.label15.Name = "label15";
  1410. this.label15.Size = new Size(20, 20);
  1411. this.label15.TabIndex = 3;
  1412. this.label15.Text = "Y";
  1413. this.label14.AutoSize = true;
  1414. this.label14.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
  1415. this.label14.Location = new Point(340, 24);
  1416. this.label14.Name = "label14";
  1417. this.label14.Size = new Size(20, 20);
  1418. this.label14.TabIndex = 2;
  1419. this.label14.Text = "X";
  1420. this.label13.AutoSize = true;
  1421. this.label13.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1422. this.label13.Location = new Point(341, 7);
  1423. this.label13.Name = "label13";
  1424. this.label13.Size = new Size(74, 13);
  1425. this.label13.TabIndex = 1;
  1426. this.label13.Text = "Bot position";
  1427. this.tabPageUsers.BackColor = Color.Silver;
  1428. this.tabPageUsers.Controls.Add(this.Kick_ALL);
  1429. this.tabPageUsers.Controls.Add(this.RemoveEdit_ALL);
  1430. this.tabPageUsers.Controls.Add(this.GiveEdit_ALL);
  1431. this.tabPageUsers.Controls.Add(this.RemoveGod_ALL);
  1432. this.tabPageUsers.Controls.Add(this.GiveGod_ALL);
  1433. this.tabPageUsers.Controls.Add(this.label1);
  1434. this.tabPageUsers.Controls.Add(this.BanButton);
  1435. this.tabPageUsers.Controls.Add(this.RGodButton);
  1436. this.tabPageUsers.Controls.Add(this.GGodButton);
  1437. this.tabPageUsers.Controls.Add(this.SendMessageBox);
  1438. this.tabPageUsers.Controls.Add(this.label22);
  1439. this.tabPageUsers.Controls.Add(this.SendMessageButton);
  1440. this.tabPageUsers.Controls.Add(this.REdit);
  1441. this.tabPageUsers.Controls.Add(this.GEditButton);
  1442. this.tabPageUsers.Controls.Add(this.label21);
  1443. this.tabPageUsers.Controls.Add(this.KickMessageBox);
  1444. this.tabPageUsers.Controls.Add(this.label20);
  1445. this.tabPageUsers.Controls.Add(this.KickButton);
  1446. this.tabPageUsers.Controls.Add(this.UsersListbox);
  1447. this.tabPageUsers.Location = new Point(4, 22);
  1448. this.tabPageUsers.Name = "tabPageUsers";
  1449. this.tabPageUsers.Size = new Size(424, 172);
  1450. this.tabPageUsers.TabIndex = 3;
  1451. this.tabPageUsers.Text = "Users";
  1452. this.Kick_ALL.Enabled = false;
  1453. this.Kick_ALL.Location = new Point(348, 144);
  1454. this.Kick_ALL.Name = "Kick_ALL";
  1455. this.Kick_ALL.Size = new Size(67, 23);
  1456. this.Kick_ALL.TabIndex = 32;
  1457. this.Kick_ALL.Text = "KICK!";
  1458. this.Kick_ALL.UseVisualStyleBackColor = true;
  1459. this.Kick_ALL.Click += new System.EventHandler(this.Kick_ALL_Click);
  1460. this.RemoveEdit_ALL.Enabled = false;
  1461. this.RemoveEdit_ALL.Location = new Point(292, 144);
  1462. this.RemoveEdit_ALL.Name = "RemoveEdit_ALL";
  1463. this.RemoveEdit_ALL.Size = new Size(50, 23);
  1464. this.RemoveEdit_ALL.TabIndex = 31;
  1465. this.RemoveEdit_ALL.Text = "R. Edit";
  1466. this.RemoveEdit_ALL.UseVisualStyleBackColor = true;
  1467. this.RemoveEdit_ALL.Click += new System.EventHandler(this.RemoveEdit_ALL_Click);
  1468. this.GiveEdit_ALL.Enabled = false;
  1469. this.GiveEdit_ALL.Location = new Point(238, 144);
  1470. this.GiveEdit_ALL.Name = "GiveEdit_ALL";
  1471. this.GiveEdit_ALL.Size = new Size(48, 23);
  1472. this.GiveEdit_ALL.TabIndex = 30;
  1473. this.GiveEdit_ALL.Text = "G. Edit";
  1474. this.GiveEdit_ALL.UseVisualStyleBackColor = true;
  1475. this.GiveEdit_ALL.Click += new System.EventHandler(this.GiveEdit_ALL_Click);
  1476. this.RemoveGod_ALL.Enabled = false;
  1477. this.RemoveGod_ALL.Location = new Point(182, 144);
  1478. this.RemoveGod_ALL.Name = "RemoveGod_ALL";
  1479. this.RemoveGod_ALL.Size = new Size(50, 23);
  1480. this.RemoveGod_ALL.TabIndex = 29;
  1481. this.RemoveGod_ALL.Text = "R. God";
  1482. this.RemoveGod_ALL.UseVisualStyleBackColor = true;
  1483. this.RemoveGod_ALL.Click += new System.EventHandler(this.RemoveGod_ALL_Click);
  1484. this.GiveGod_ALL.Enabled = false;
  1485. this.GiveGod_ALL.Location = new Point(125, 144);
  1486. this.GiveGod_ALL.Name = "GiveGod_ALL";
  1487. this.GiveGod_ALL.Size = new Size(51, 23);
  1488. this.GiveGod_ALL.TabIndex = 28;
  1489. this.GiveGod_ALL.Text = "G. God";
  1490. this.GiveGod_ALL.UseVisualStyleBackColor = true;
  1491. this.GiveGod_ALL.Click += new System.EventHandler(this.GiveGod_ALL_Click);
  1492. this.label1.AutoSize = true;
  1493. this.label1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1494. this.label1.Location = new Point(122, 128);
  1495. this.label1.Name = "label1";
  1496. this.label1.Size = new Size(85, 13);
  1497. this.label1.TabIndex = 27;
  1498. this.label1.Text = "For ALL users";
  1499. this.BanButton.Enabled = false;
  1500. this.BanButton.Location = new Point(297, 102);
  1501. this.BanButton.Name = "BanButton";
  1502. this.BanButton.Size = new Size(75, 23);
  1503. this.BanButton.TabIndex = 26;
  1504. this.BanButton.Text = "Ban";
  1505. this.BanButton.UseVisualStyleBackColor = true;
  1506. this.BanButton.Click += new System.EventHandler(this.BanButton_Click);
  1507. this.RGodButton.Enabled = false;
  1508. this.RGodButton.Location = new Point(206, 102);
  1509. this.RGodButton.Name = "RGodButton";
  1510. this.RGodButton.Size = new Size(80, 23);
  1511. this.RGodButton.TabIndex = 25;
  1512. this.RGodButton.Text = "Remove God";
  1513. this.RGodButton.UseVisualStyleBackColor = true;
  1514. this.RGodButton.Click += new System.EventHandler(this.RGodButton_Click);
  1515. this.GGodButton.Enabled = false;
  1516. this.GGodButton.Location = new Point(125, 102);
  1517. this.GGodButton.Name = "GGodButton";
  1518. this.GGodButton.Size = new Size(75, 23);
  1519. this.GGodButton.TabIndex = 24;
  1520. this.GGodButton.Text = "Give God";
  1521. this.GGodButton.UseVisualStyleBackColor = true;
  1522. this.GGodButton.Click += new System.EventHandler(this.GGodButton_Click);
  1523. this.SendMessageBox.Location = new Point(259, 49);
  1524. this.SendMessageBox.Name = "SendMessageBox";
  1525. this.SendMessageBox.Size = new Size(162, 20);
  1526. this.SendMessageBox.TabIndex = 23;
  1527. this.label22.AutoSize = true;
  1528. this.label22.Location = new Point(203, 49);
  1529. this.label22.Name = "label22";
  1530. this.label22.Size = new Size(50, 13);
  1531. this.label22.TabIndex = 22;
  1532. this.label22.Text = "Message";
  1533. this.SendMessageButton.Enabled = false;
  1534. this.SendMessageButton.Location = new Point(125, 49);
  1535. this.SendMessageButton.Name = "SendMessageButton";
  1536. this.SendMessageButton.Size = new Size(75, 20);
  1537. this.SendMessageButton.TabIndex = 21;
  1538. this.SendMessageButton.Text = "MSG";
  1539. this.SendMessageButton.UseVisualStyleBackColor = true;
  1540. this.SendMessageButton.Click += new System.EventHandler(this.SendMessageButton_Click);
  1541. this.REdit.Enabled = false;
  1542. this.REdit.Location = new Point(206, 75);
  1543. this.REdit.Name = "REdit";
  1544. this.REdit.Size = new Size(80, 23);
  1545. this.REdit.TabIndex = 20;
  1546. this.REdit.Text = "Remove Edit";
  1547. this.REdit.UseVisualStyleBackColor = true;
  1548. this.REdit.Click += new System.EventHandler(this.REdit_Click);
  1549. this.GEditButton.Enabled = false;
  1550. this.GEditButton.Location = new Point(125, 75);
  1551. this.GEditButton.Name = "GEditButton";
  1552. this.GEditButton.Size = new Size(75, 23);
  1553. this.GEditButton.TabIndex = 19;
  1554. this.GEditButton.Text = "Give Edit";
  1555. this.GEditButton.UseVisualStyleBackColor = true;
  1556. this.GEditButton.Click += new System.EventHandler(this.GEditButton_Click);
  1557. this.label21.AutoSize = true;
  1558. this.label21.Location = new Point(203, 27);
  1559. this.label21.Name = "label21";
  1560. this.label21.Size = new Size(50, 13);
  1561. this.label21.TabIndex = 18;
  1562. this.label21.Text = "Message";
  1563. this.KickMessageBox.Location = new Point(259, 24);
  1564. this.KickMessageBox.Name = "KickMessageBox";
  1565. this.KickMessageBox.Size = new Size(162, 20);
  1566. this.KickMessageBox.TabIndex = 17;
  1567. this.label20.AutoSize = true;
  1568. this.label20.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1569. this.label20.Location = new Point(122, 8);
  1570. this.label20.Name = "label20";
  1571. this.label20.Size = new Size(265, 13);
  1572. this.label20.TabIndex = 16;
  1573. this.label20.Text = "Select an user, Than click one of the buttons";
  1574. this.KickButton.Enabled = false;
  1575. this.KickButton.Location = new Point(125, 24);
  1576. this.KickButton.Name = "KickButton";
  1577. this.KickButton.Size = new Size(75, 20);
  1578. this.KickButton.TabIndex = 1;
  1579. this.KickButton.Text = "Kick";
  1580. this.KickButton.UseVisualStyleBackColor = true;
  1581. this.KickButton.Click += new System.EventHandler(this.KickButton_Click);
  1582. this.UsersListbox.FormattingEnabled = true;
  1583. this.UsersListbox.Location = new Point(4, 4);
  1584. this.UsersListbox.Name = "UsersListbox";
  1585. this.UsersListbox.Size = new Size(112, 160);
  1586. this.UsersListbox.TabIndex = 0;
  1587. this.tabPageAdmins.BackColor = Color.Silver;
  1588. this.tabPageAdmins.Controls.Add(this.label44);
  1589. this.tabPageAdmins.Controls.Add(this.label43);
  1590. this.tabPageAdmins.Controls.Add(this.load);
  1591. this.tabPageAdmins.Controls.Add(this.save);
  1592. this.tabPageAdmins.Controls.Add(this.AddAdminManualButton);
  1593. this.tabPageAdmins.Controls.Add(this.AddAdminManualTb);
  1594. this.tabPageAdmins.Controls.Add(this.label27);
  1595. this.tabPageAdmins.Controls.Add(this.label26);
  1596. this.tabPageAdmins.Controls.Add(this.RAdmin);
  1597. this.tabPageAdmins.Controls.Add(this.AAdmin);
  1598. this.tabPageAdmins.Controls.Add(this.AdminListbox);
  1599. this.tabPageAdmins.Controls.Add(this.UsersListbox2);
  1600. this.tabPageAdmins.Location = new Point(4, 22);
  1601. this.tabPageAdmins.Name = "tabPageAdmins";
  1602. this.tabPageAdmins.Size = new Size(424, 172);
  1603. this.tabPageAdmins.TabIndex = 4;
  1604. this.tabPageAdmins.Text = "Admins";
  1605. this.label44.AutoSize = true;
  1606. this.label44.Location = new Point(121, 149);
  1607. this.label44.Name = "label44";
  1608. this.label44.Size = new Size(166, 13);
  1609. this.label44.TabIndex = 14;
  1610. this.label44.Text = "program closes. Same for loading.";
  1611. this.label43.AutoSize = true;
  1612. this.label43.Location = new Point(121, 136);
  1613. this.label43.Name = "label43";
  1614. this.label43.Size = new Size(163, 13);
  1615. this.label43.TabIndex = 13;
  1616. this.label43.Text = "Adminlist will be saved when this ";
  1617. this.load.Location = new Point(220, 110);
  1618. this.load.Name = "load";
  1619. this.load.Size = new Size(75, 23);
  1620. this.load.TabIndex = 12;
  1621. this.load.Text = "Load";
  1622. this.load.UseVisualStyleBackColor = true;
  1623. this.load.Click += new System.EventHandler(this.load_Click);
  1624. this.save.Location = new Point(121, 110);
  1625. this.save.Name = "save";
  1626. this.save.Size = new Size(75, 23);
  1627. this.save.TabIndex = 11;
  1628. this.save.Text = "Save";
  1629. this.save.UseVisualStyleBackColor = true;
  1630. this.save.Click += new System.EventHandler(this.save_Click);
  1631. this.AddAdminManualButton.ImageAlign = ContentAlignment.MiddleLeft;
  1632. this.AddAdminManualButton.Location = new Point(121, 88);
  1633. this.AddAdminManualButton.Name = "AddAdminManualButton";
  1634. this.AddAdminManualButton.RightToLeft = RightToLeft.No;
  1635. this.AddAdminManualButton.Size = new Size(51, 20);
  1636. this.AddAdminManualButton.TabIndex = 9;
  1637. this.AddAdminManualButton.Text = "Add";
  1638. this.AddAdminManualButton.UseVisualStyleBackColor = true;
  1639. this.AddAdminManualButton.Click += new System.EventHandler(this.AddAdminManualButton_Click);
  1640. this.AddAdminManualTb.Location = new Point(178, 88);
  1641. this.AddAdminManualTb.Name = "AddAdminManualTb";
  1642. this.AddAdminManualTb.Size = new Size(117, 20);
  1643. this.AddAdminManualTb.TabIndex = 8;
  1644. this.label27.AutoSize = true;
  1645. this.label27.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1646. this.label27.ImageAlign = ContentAlignment.MiddleRight;
  1647. this.label27.Location = new Point(303, 9);
  1648. this.label27.Name = "label27";
  1649. this.label27.Size = new Size(65, 13);
  1650. this.label27.TabIndex = 6;
  1651. this.label27.Text = "Admin List";
  1652. this.label26.AutoSize = true;
  1653. this.label26.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1654. this.label26.Location = new Point(3, 9);
  1655. this.label26.Name = "label26";
  1656. this.label26.Size = new Size(66, 13);
  1657. this.label26.TabIndex = 5;
  1658. this.label26.Text = "Player List";
  1659. this.RAdmin.Image = Resources.delete;
  1660. this.RAdmin.ImageAlign = ContentAlignment.MiddleLeft;
  1661. this.RAdmin.Location = new Point(121, 58);
  1662. this.RAdmin.Name = "RAdmin";
  1663. this.RAdmin.Size = new Size(175, 23);
  1664. this.RAdmin.TabIndex = 4;
  1665. this.RAdmin.Text = "Remove Admin";
  1666. this.RAdmin.UseVisualStyleBackColor = true;
  1667. this.RAdmin.Click += new System.EventHandler(this.RAdmin_Click);
  1668. this.AAdmin.BackgroundImageLayout = ImageLayout.Stretch;
  1669. this.AAdmin.Image = Resources.add;
  1670. this.AAdmin.ImageAlign = ContentAlignment.MiddleLeft;
  1671. this.AAdmin.Location = new Point(121, 29);
  1672. this.AAdmin.Name = "AAdmin";
  1673. this.AAdmin.Size = new Size(175, 23);
  1674. this.AAdmin.TabIndex = 3;
  1675. this.AAdmin.Text = "Add Admin";
  1676. this.AAdmin.UseVisualStyleBackColor = true;
  1677. this.AAdmin.Click += new System.EventHandler(this.AAdmin_Click);
  1678. this.AdminListbox.FormattingEnabled = true;
  1679. this.AdminListbox.Location = new Point(303, 29);
  1680. this.AdminListbox.Name = "AdminListbox";
  1681. this.AdminListbox.Size = new Size(112, 134);
  1682. this.AdminListbox.TabIndex = 2;
  1683. this.UsersListbox2.FormattingEnabled = true;
  1684. this.UsersListbox2.Location = new Point(3, 29);
  1685. this.UsersListbox2.Name = "UsersListbox2";
  1686. this.UsersListbox2.Size = new Size(112, 134);
  1687. this.UsersListbox2.TabIndex = 1;
  1688. this.tabPageBans.BackColor = Color.Silver;
  1689. this.tabPageBans.Controls.Add(this.ClearBanlist);
  1690. this.tabPageBans.Controls.Add(this.label42);
  1691. this.tabPageBans.Controls.Add(this.BanNameTextBox);
  1692. this.tabPageBans.Controls.Add(this.BanMessage);
  1693. this.tabPageBans.Controls.Add(this.label41);
  1694. this.tabPageBans.Controls.Add(this.RemoveBan);
  1695. this.tabPageBans.Controls.Add(this.AddBanButton);
  1696. this.tabPageBans.Controls.Add(this.BanList);
  1697. this.tabPageBans.Controls.Add(this.label38);
  1698. this.tabPageBans.Location = new Point(4, 22);
  1699. this.tabPageBans.Name = "tabPageBans";
  1700. this.tabPageBans.Size = new Size(424, 172);
  1701. this.tabPageBans.TabIndex = 6;
  1702. this.tabPageBans.Text = "Bans";
  1703. this.ClearBanlist.Location = new Point(6, 146);
  1704. this.ClearBanlist.Name = "ClearBanlist";
  1705. this.ClearBanlist.Size = new Size(112, 21);
  1706. this.ClearBanlist.TabIndex = 14;
  1707. this.ClearBanlist.Text = "Clear Ban List";
  1708. this.ClearBanlist.UseVisualStyleBackColor = true;
  1709. this.ClearBanlist.Click += new System.EventHandler(this.ClearBanlist_Click);
  1710. this.label42.AutoSize = true;
  1711. this.label42.Location = new Point(205, 31);
  1712. this.label42.Name = "label42";
  1713. this.label42.Size = new Size(35, 13);
  1714. this.label42.TabIndex = 13;
  1715. this.label42.Text = "Name";
  1716. this.BanNameTextBox.Location = new Point(246, 28);
  1717. this.BanNameTextBox.Name = "BanNameTextBox";
  1718. this.BanNameTextBox.Size = new Size(169, 20);
  1719. this.BanNameTextBox.TabIndex = 12;
  1720. this.BanMessage.Location = new Point(203, 146);
  1721. this.BanMessage.Name = "BanMessage";
  1722. this.BanMessage.Size = new Size(212, 20);
  1723. this.BanMessage.TabIndex = 11;
  1724. this.label41.AutoSize = true;
  1725. this.label41.Location = new Point(124, 149);
  1726. this.label41.Name = "label41";
  1727. this.label41.Size = new Size(72, 13);
  1728. this.label41.TabIndex = 10;
  1729. this.label41.Text = "Ban Message";
  1730. this.RemoveBan.Image = Resources.delete;
  1731. this.RemoveBan.ImageAlign = ContentAlignment.MiddleLeft;
  1732. this.RemoveBan.Location = new Point(124, 55);
  1733. this.RemoveBan.Name = "RemoveBan";
  1734. this.RemoveBan.Size = new Size(75, 23);
  1735. this.RemoveBan.TabIndex = 9;
  1736. this.RemoveBan.Text = "Remove";
  1737. this.RemoveBan.TextAlign = ContentAlignment.MiddleRight;
  1738. this.RemoveBan.UseVisualStyleBackColor = true;
  1739. this.RemoveBan.Click += new System.EventHandler(this.RemoveBan_Click);
  1740. this.AddBanButton.Image = Resources.add;
  1741. this.AddBanButton.ImageAlign = ContentAlignment.MiddleLeft;
  1742. this.AddBanButton.Location = new Point(124, 26);
  1743. this.AddBanButton.Name = "AddBanButton";
  1744. this.AddBanButton.Size = new Size(75, 23);
  1745. this.AddBanButton.TabIndex = 8;
  1746. this.AddBanButton.Text = "Add";
  1747. this.AddBanButton.UseVisualStyleBackColor = true;
  1748. this.AddBanButton.Click += new System.EventHandler(this.AddBanButton_Click);
  1749. this.BanList.FormattingEnabled = true;
  1750. this.BanList.Location = new Point(6, 26);
  1751. this.BanList.Name = "BanList";
  1752. this.BanList.Size = new Size(112, 121);
  1753. this.BanList.TabIndex = 7;
  1754. this.label38.AutoSize = true;
  1755. this.label38.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1756. this.label38.Location = new Point(3, 9);
  1757. this.label38.Name = "label38";
  1758. this.label38.Size = new Size(94, 13);
  1759. this.label38.TabIndex = 6;
  1760. this.label38.Text = "Banned players";
  1761. this.tabPage1.BackColor = Color.Silver;
  1762. this.tabPage1.Controls.Add(this.AllowGoldCheck);
  1763. this.tabPage1.Controls.Add(this.EnableWithlistCheck);
  1764. this.tabPage1.Controls.Add(this.AllowFriendsCheck);
  1765. this.tabPage1.Controls.Add(this.ClearWhitelistButton);
  1766. this.tabPage1.Controls.Add(this.label25);
  1767. this.tabPage1.Controls.Add(this.WhitelistaddTextbox);
  1768. this.tabPage1.Controls.Add(this.WhitelistKickBox);
  1769. this.tabPage1.Controls.Add(this.label45);
  1770. this.tabPage1.Controls.Add(this.RemoveWhitButton);
  1771. this.tabPage1.Controls.Add(this.AddWhiteButton);
  1772. this.tabPage1.Controls.Add(this.Whitelist);
  1773. this.tabPage1.Controls.Add(this.label46);
  1774. this.tabPage1.Location = new Point(4, 22);
  1775. this.tabPage1.Name = "tabPage1";
  1776. this.tabPage1.Size = new Size(424, 172);
  1777. this.tabPage1.TabIndex = 7;
  1778. this.tabPage1.Text = "Whitelist";
  1779. this.AllowGoldCheck.AutoSize = true;
  1780. this.AllowGoldCheck.Location = new Point(127, 129);
  1781. this.AllowGoldCheck.Name = "AllowGoldCheck";
  1782. this.AllowGoldCheck.Size = new Size(150, 17);
  1783. this.AllowGoldCheck.TabIndex = 26;
  1784. this.AllowGoldCheck.Text = "Allow gold members to join";
  1785. this.AllowGoldCheck.UseVisualStyleBackColor = true;
  1786. this.EnableWithlistCheck.AutoSize = true;
  1787. this.EnableWithlistCheck.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1788. this.EnableWithlistCheck.Location = new Point(127, 26);
  1789. this.EnableWithlistCheck.Name = "EnableWithlistCheck";
  1790. this.EnableWithlistCheck.Size = new Size(118, 17);
  1791. this.EnableWithlistCheck.TabIndex = 25;
  1792. this.EnableWithlistCheck.Text = "Enable Whitelist";
  1793. this.EnableWithlistCheck.UseVisualStyleBackColor = true;
  1794. this.AllowFriendsCheck.AutoSize = true;
  1795. this.AllowFriendsCheck.Location = new Point(127, 107);
  1796. this.AllowFriendsCheck.Name = "AllowFriendsCheck";
  1797. this.AllowFriendsCheck.Size = new Size(111, 17);
  1798. this.AllowFriendsCheck.TabIndex = 24;
  1799. this.AllowFriendsCheck.Text = "Allow friend to join";
  1800. this.AllowFriendsCheck.UseVisualStyleBackColor = true;
  1801. this.ClearWhitelistButton.Location = new Point(6, 146);
  1802. this.ClearWhitelistButton.Name = "ClearWhitelistButton";
  1803. this.ClearWhitelistButton.Size = new Size(112, 21);
  1804. this.ClearWhitelistButton.TabIndex = 23;
  1805. this.ClearWhitelistButton.Text = "Clear Ban List";
  1806. this.ClearWhitelistButton.UseVisualStyleBackColor = true;
  1807. this.ClearWhitelistButton.Click += new System.EventHandler(this.ClearWhitelistButton_Click);
  1808. this.label25.AutoSize = true;
  1809. this.label25.Location = new Point(205, 54);
  1810. this.label25.Name = "label25";
  1811. this.label25.Size = new Size(35, 13);
  1812. this.label25.TabIndex = 22;
  1813. this.label25.Text = "Name";
  1814. this.WhitelistaddTextbox.Location = new Point(246, 51);
  1815. this.WhitelistaddTextbox.Name = "WhitelistaddTextbox";
  1816. this.WhitelistaddTextbox.Size = new Size(169, 20);
  1817. this.WhitelistaddTextbox.TabIndex = 21;
  1818. this.WhitelistKickBox.Location = new Point(203, 146);
  1819. this.WhitelistKickBox.Name = "WhitelistKickBox";
  1820. this.WhitelistKickBox.Size = new Size(212, 20);
  1821. this.WhitelistKickBox.TabIndex = 20;
  1822. this.label45.AutoSize = true;
  1823. this.label45.Location = new Point(124, 149);
  1824. this.label45.Name = "label45";
  1825. this.label45.Size = new Size(74, 13);
  1826. this.label45.TabIndex = 19;
  1827. this.label45.Text = "Kick Message";
  1828. this.RemoveWhitButton.Image = Resources.delete;
  1829. this.RemoveWhitButton.ImageAlign = ContentAlignment.MiddleLeft;
  1830. this.RemoveWhitButton.Location = new Point(124, 78);
  1831. this.RemoveWhitButton.Name = "RemoveWhitButton";
  1832. this.RemoveWhitButton.Size = new Size(75, 23);
  1833. this.RemoveWhitButton.TabIndex = 18;
  1834. this.RemoveWhitButton.Text = "Remove";
  1835. this.RemoveWhitButton.TextAlign = ContentAlignment.MiddleRight;
  1836. this.RemoveWhitButton.UseVisualStyleBackColor = true;
  1837. this.RemoveWhitButton.Click += new System.EventHandler(this.RemoveWhitButton_Click);
  1838. this.AddWhiteButton.Image = Resources.add;
  1839. this.AddWhiteButton.ImageAlign = ContentAlignment.MiddleLeft;
  1840. this.AddWhiteButton.Location = new Point(124, 49);
  1841. this.AddWhiteButton.Name = "AddWhiteButton";
  1842. this.AddWhiteButton.Size = new Size(75, 23);
  1843. this.AddWhiteButton.TabIndex = 17;
  1844. this.AddWhiteButton.Text = "Add";
  1845. this.AddWhiteButton.UseVisualStyleBackColor = true;
  1846. this.AddWhiteButton.Click += new System.EventHandler(this.AddWhiteButton_Click);
  1847. this.Whitelist.FormattingEnabled = true;
  1848. this.Whitelist.Location = new Point(6, 26);
  1849. this.Whitelist.Name = "Whitelist";
  1850. this.Whitelist.Size = new Size(112, 121);
  1851. this.Whitelist.TabIndex = 16;
  1852. this.label46.AutoSize = true;
  1853. this.label46.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  1854. this.label46.Location = new Point(3, 9);
  1855. this.label46.Name = "label46";
  1856. this.label46.Size = new Size(114, 13);
  1857. this.label46.TabIndex = 15;
  1858. this.label46.Text = "Whitelisted players";
  1859. this.tabPage2.BackColor = Color.Silver;
  1860. this.tabPage2.Controls.Add(this.label52);
  1861. this.tabPage2.Controls.Add(this.label51);
  1862. this.tabPage2.Controls.Add(this.label50);
  1863. this.tabPage2.Controls.Add(this.label49);
  1864. this.tabPage2.Controls.Add(this.label48);
  1865. this.tabPage2.Controls.Add(this.label47);
  1866. this.tabPage2.Controls.Add(this.groupBox4);
  1867. this.tabPage2.Controls.Add(this.groupBox3);
  1868. this.tabPage2.Controls.Add(this.groupBox2);
  1869. this.tabPage2.Controls.Add(this.groupBox1);
  1870. this.tabPage2.Controls.Add(this.EnableTeamColors);
  1871. this.tabPage2.Location = new Point(4, 22);
  1872. this.tabPage2.Name = "tabPage2";
  1873. this.tabPage2.Size = new Size(424, 172);
  1874. this.tabPage2.TabIndex = 8;
  1875. this.tabPage2.Text = "Auto team";
  1876. this.label52.AutoSize = true;
  1877. this.label52.Location = new Point(274, 149);
  1878. this.label52.Name = "label52";
  1879. this.label52.Size = new Size(52, 13);
  1880. this.label52.TabIndex = 36;
  1881. this.label52.Text = "4. Normal";
  1882. this.label51.AutoSize = true;
  1883. this.label51.Location = new Point(273, 136);
  1884. this.label51.Name = "label51";
  1885. this.label51.Size = new Size(58, 13);
  1886. this.label51.TabIndex = 35;
  1887. this.label51.Text = "3. Has edit";
  1888. this.label50.AutoSize = true;
  1889. this.label50.Location = new Point(274, 123);
  1890. this.label50.Name = "label50";
  1891. this.label50.Size = new Size(71, 13);
  1892. this.label50.TabIndex = 34;
  1893. this.label50.Text = "2. Whitelisted";
  1894. this.label49.AutoSize = true;
  1895. this.label49.Location = new Point(274, 110);
  1896. this.label49.Name = "label49";
  1897. this.label49.Size = new Size(48, 13);
  1898. this.label49.TabIndex = 33;
  1899. this.label49.Text = "1. Admin";
  1900. this.label48.AutoSize = true;
  1901. this.label48.Location = new Point(273, 93);
  1902. this.label48.Name = "label48";
  1903. this.label48.Size = new Size(79, 13);
  1904. this.label48.TabIndex = 32;
  1905. this.label48.Text = "Order of colors:";
  1906. this.label47.AutoSize = true;
  1907. this.label47.Location = new Point(239, 93);
  1908. this.label47.Name = "label47";
  1909. this.label47.Size = new Size(0, 13);
  1910. this.label47.TabIndex = 31;
  1911. this.groupBox4.Controls.Add(this.Radio_H_Y);
  1912. this.groupBox4.Controls.Add(this.Radio_H_N);
  1913. this.groupBox4.Controls.Add(this.Radio_H_C);
  1914. this.groupBox4.Controls.Add(this.Radio_H_G);
  1915. this.groupBox4.Controls.Add(this.Radio_H_B);
  1916. this.groupBox4.Controls.Add(this.Radio_H_P);
  1917. this.groupBox4.Controls.Add(this.Radio_H_R);
  1918. this.groupBox4.Location = new Point(270, 26);
  1919. this.groupBox4.Name = "groupBox4";
  1920. this.groupBox4.Size = new Size(145, 60);
  1921. this.groupBox4.TabIndex = 30;
  1922. this.groupBox4.TabStop = false;
  1923. this.groupBox4.Text = "Has edit";
  1924. this.Radio_H_Y.AutoSize = true;
  1925. this.Radio_H_Y.Image = Resources.cm5;
  1926. this.Radio_H_Y.Location = new Point(78, 38);
  1927. this.Radio_H_Y.Name = "Radio_H_Y";
  1928. this.Radio_H_Y.Size = new Size(30, 16);
  1929. this.Radio_H_Y.TabIndex = 6;
  1930. this.Radio_H_Y.UseVisualStyleBackColor = true;
  1931. this.Radio_H_N.AutoSize = true;
  1932. this.Radio_H_N.Image = Resources.cm6;
  1933. this.Radio_H_N.Location = new Point(41, 38);
  1934. this.Radio_H_N.Name = "Radio_H_N";
  1935. this.Radio_H_N.Size = new Size(30, 16);
  1936. this.Radio_H_N.TabIndex = 5;
  1937. this.Radio_H_N.UseVisualStyleBackColor = true;
  1938. this.Radio_H_C.AutoSize = true;
  1939. this.Radio_H_C.Image = Resources.cm3;
  1940. this.Radio_H_C.Location = new Point(114, 19);
  1941. this.Radio_H_C.Name = "Radio_H_C";
  1942. this.Radio_H_C.Size = new Size(30, 16);
  1943. this.Radio_H_C.TabIndex = 4;
  1944. this.Radio_H_C.UseVisualStyleBackColor = true;
  1945. this.Radio_H_G.AutoSize = true;
  1946. this.Radio_H_G.Image = Resources.cm2;
  1947. this.Radio_H_G.Location = new Point(78, 19);
  1948. this.Radio_H_G.Name = "Radio_H_G";
  1949. this.Radio_H_G.Size = new Size(30, 16);
  1950. this.Radio_H_G.TabIndex = 3;
  1951. this.Radio_H_G.UseVisualStyleBackColor = true;
  1952. this.Radio_H_B.AutoSize = true;
  1953. this.Radio_H_B.Image = Resources.cm1;
  1954. this.Radio_H_B.Location = new Point(42, 19);
  1955. this.Radio_H_B.Name = "Radio_H_B";
  1956. this.Radio_H_B.Size = new Size(30, 16);
  1957. this.Radio_H_B.TabIndex = 2;
  1958. this.Radio_H_B.UseVisualStyleBackColor = true;
  1959. this.Radio_H_P.AutoSize = true;
  1960. this.Radio_H_P.Checked = true;
  1961. this.Radio_H_P.Image = Resources.cm4;
  1962. this.Radio_H_P.Location = new Point(7, 38);
  1963. this.Radio_H_P.Name = "Radio_H_P";
  1964. this.Radio_H_P.Size = new Size(30, 16);
  1965. this.Radio_H_P.TabIndex = 1;
  1966. this.Radio_H_P.TabStop = true;
  1967. this.Radio_H_P.UseVisualStyleBackColor = true;
  1968. this.Radio_H_R.AutoSize = true;
  1969. this.Radio_H_R.Image = Resources.cm0;
  1970. this.Radio_H_R.Location = new Point(6, 19);
  1971. this.Radio_H_R.Name = "Radio_H_R";
  1972. this.Radio_H_R.Size = new Size(30, 16);
  1973. this.Radio_H_R.TabIndex = 0;
  1974. this.Radio_H_R.UseVisualStyleBackColor = true;
  1975. this.groupBox3.Controls.Add(this.Radio_N_Y);
  1976. this.groupBox3.Controls.Add(this.Radio_N_N);
  1977. this.groupBox3.Controls.Add(this.Radio_N_C);
  1978. this.groupBox3.Controls.Add(this.Radio_N_G);
  1979. this.groupBox3.Controls.Add(this.Radio_N_B);
  1980. this.groupBox3.Controls.Add(this.Radio_N_P);
  1981. this.groupBox3.Controls.Add(this.Radio_N_R);
  1982. this.groupBox3.Location = new Point(5, 110);
  1983. this.groupBox3.Name = "groupBox3";
  1984. this.groupBox3.Size = new Size(259, 37);
  1985. this.groupBox3.TabIndex = 29;
  1986. this.groupBox3.TabStop = false;
  1987. this.groupBox3.Text = "Normal";
  1988. this.Radio_N_Y.AutoSize = true;
  1989. this.Radio_N_Y.Image = Resources.cm5;
  1990. this.Radio_N_Y.Location = new Point(186, 19);
  1991. this.Radio_N_Y.Name = "Radio_N_Y";
  1992. this.Radio_N_Y.Size = new Size(30, 16);
  1993. this.Radio_N_Y.TabIndex = 9;
  1994. this.Radio_N_Y.UseVisualStyleBackColor = true;
  1995. this.Radio_N_N.AutoSize = true;
  1996. this.Radio_N_N.Checked = true;
  1997. this.Radio_N_N.Image = Resources.cm6;
  1998. this.Radio_N_N.Location = new Point(222, 19);
  1999. this.Radio_N_N.Name = "Radio_N_N";
  2000. this.Radio_N_N.Size = new Size(30, 16);
  2001. this.Radio_N_N.TabIndex = 5;
  2002. this.Radio_N_N.TabStop = true;
  2003. this.Radio_N_N.UseVisualStyleBackColor = true;
  2004. this.Radio_N_C.AutoSize = true;
  2005. this.Radio_N_C.Image = Resources.cm3;
  2006. this.Radio_N_C.Location = new Point(114, 19);
  2007. this.Radio_N_C.Name = "Radio_N_C";
  2008. this.Radio_N_C.Size = new Size(30, 16);
  2009. this.Radio_N_C.TabIndex = 4;
  2010. this.Radio_N_C.UseVisualStyleBackColor = true;
  2011. this.Radio_N_G.AutoSize = true;
  2012. this.Radio_N_G.Image = Resources.cm2;
  2013. this.Radio_N_G.Location = new Point(78, 19);
  2014. this.Radio_N_G.Name = "Radio_N_G";
  2015. this.Radio_N_G.Size = new Size(30, 16);
  2016. this.Radio_N_G.TabIndex = 3;
  2017. this.Radio_N_G.UseVisualStyleBackColor = true;
  2018. this.Radio_N_B.AutoSize = true;
  2019. this.Radio_N_B.Image = Resources.cm1;
  2020. this.Radio_N_B.Location = new Point(41, 19);
  2021. this.Radio_N_B.Name = "Radio_N_B";
  2022. this.Radio_N_B.Size = new Size(30, 16);
  2023. this.Radio_N_B.TabIndex = 2;
  2024. this.Radio_N_B.UseVisualStyleBackColor = true;
  2025. this.Radio_N_P.AutoSize = true;
  2026. this.Radio_N_P.Image = Resources.cm4;
  2027. this.Radio_N_P.Location = new Point(150, 19);
  2028. this.Radio_N_P.Name = "Radio_N_P";
  2029. this.Radio_N_P.Size = new Size(30, 16);
  2030. this.Radio_N_P.TabIndex = 1;
  2031. this.Radio_N_P.UseVisualStyleBackColor = true;
  2032. this.Radio_N_R.AutoSize = true;
  2033. this.Radio_N_R.Image = Resources.cm0;
  2034. this.Radio_N_R.Location = new Point(6, 19);
  2035. this.Radio_N_R.Name = "Radio_N_R";
  2036. this.Radio_N_R.Size = new Size(30, 16);
  2037. this.Radio_N_R.TabIndex = 0;
  2038. this.Radio_N_R.UseVisualStyleBackColor = true;
  2039. this.groupBox2.Controls.Add(this.Radio_W_Y);
  2040. this.groupBox2.Controls.Add(this.Radio_W_N);
  2041. this.groupBox2.Controls.Add(this.Radio_W_C);
  2042. this.groupBox2.Controls.Add(this.Radio_W_G);
  2043. this.groupBox2.Controls.Add(this.Radio_W_B);
  2044. this.groupBox2.Controls.Add(this.Radio_W_P);
  2045. this.groupBox2.Controls.Add(this.Radio_W_R);
  2046. this.groupBox2.Location = new Point(5, 67);
  2047. this.groupBox2.Name = "groupBox2";
  2048. this.groupBox2.Size = new Size(259, 37);
  2049. this.groupBox2.TabIndex = 29;
  2050. this.groupBox2.TabStop = false;
  2051. this.groupBox2.Text = "Whitelisted";
  2052. this.Radio_W_Y.AutoSize = true;
  2053. this.Radio_W_Y.Image = Resources.cm5;
  2054. this.Radio_W_Y.Location = new Point(186, 19);
  2055. this.Radio_W_Y.Name = "Radio_W_Y";
  2056. this.Radio_W_Y.Size = new Size(30, 16);
  2057. this.Radio_W_Y.TabIndex = 8;
  2058. this.Radio_W_Y.UseVisualStyleBackColor = true;
  2059. this.Radio_W_N.AutoSize = true;
  2060. this.Radio_W_N.Image = Resources.cm6;
  2061. this.Radio_W_N.Location = new Point(222, 19);
  2062. this.Radio_W_N.Name = "Radio_W_N";
  2063. this.Radio_W_N.Size = new Size(30, 16);
  2064. this.Radio_W_N.TabIndex = 5;
  2065. this.Radio_W_N.UseVisualStyleBackColor = true;
  2066. this.Radio_W_C.AutoSize = true;
  2067. this.Radio_W_C.Checked = true;
  2068. this.Radio_W_C.Image = Resources.cm3;
  2069. this.Radio_W_C.Location = new Point(114, 19);
  2070. this.Radio_W_C.Name = "Radio_W_C";
  2071. this.Radio_W_C.Size = new Size(30, 16);
  2072. this.Radio_W_C.TabIndex = 4;
  2073. this.Radio_W_C.TabStop = true;
  2074. this.Radio_W_C.UseVisualStyleBackColor = true;
  2075. this.Radio_W_G.AutoSize = true;
  2076. this.Radio_W_G.Image = Resources.cm2;
  2077. this.Radio_W_G.Location = new Point(78, 19);
  2078. this.Radio_W_G.Name = "Radio_W_G";
  2079. this.Radio_W_G.Size = new Size(30, 16);
  2080. this.Radio_W_G.TabIndex = 3;
  2081. this.Radio_W_G.UseVisualStyleBackColor = true;
  2082. this.Radio_W_B.AutoSize = true;
  2083. this.Radio_W_B.Image = Resources.cm1;
  2084. this.Radio_W_B.Location = new Point(42, 19);
  2085. this.Radio_W_B.Name = "Radio_W_B";
  2086. this.Radio_W_B.Size = new Size(30, 16);
  2087. this.Radio_W_B.TabIndex = 2;
  2088. this.Radio_W_B.UseVisualStyleBackColor = true;
  2089. this.Radio_W_P.AutoSize = true;
  2090. this.Radio_W_P.Image = Resources.cm4;
  2091. this.Radio_W_P.Location = new Point(150, 19);
  2092. this.Radio_W_P.Name = "Radio_W_P";
  2093. this.Radio_W_P.Size = new Size(30, 16);
  2094. this.Radio_W_P.TabIndex = 1;
  2095. this.Radio_W_P.UseVisualStyleBackColor = true;
  2096. this.Radio_W_R.AutoSize = true;
  2097. this.Radio_W_R.Image = Resources.cm0;
  2098. this.Radio_W_R.Location = new Point(6, 19);
  2099. this.Radio_W_R.Name = "Radio_W_R";
  2100. this.Radio_W_R.Size = new Size(30, 16);
  2101. this.Radio_W_R.TabIndex = 0;
  2102. this.Radio_W_R.UseVisualStyleBackColor = true;
  2103. this.groupBox1.Controls.Add(this.Radio_A_Y);
  2104. this.groupBox1.Controls.Add(this.Radio_A_N);
  2105. this.groupBox1.Controls.Add(this.Radio_A_C);
  2106. this.groupBox1.Controls.Add(this.Radio_A_G);
  2107. this.groupBox1.Controls.Add(this.Radio_A_B);
  2108. this.groupBox1.Controls.Add(this.Radio_A_P);
  2109. this.groupBox1.Controls.Add(this.Radio_A_Red);
  2110. this.groupBox1.Location = new Point(5, 26);
  2111. this.groupBox1.Name = "groupBox1";
  2112. this.groupBox1.Size = new Size(259, 37);
  2113. this.groupBox1.TabIndex = 28;
  2114. this.groupBox1.TabStop = false;
  2115. this.groupBox1.Text = "Admins";
  2116. this.Radio_A_Y.AutoSize = true;
  2117. this.Radio_A_Y.Image = Resources.cm5;
  2118. this.Radio_A_Y.Location = new Point(186, 19);
  2119. this.Radio_A_Y.Name = "Radio_A_Y";
  2120. this.Radio_A_Y.Size = new Size(30, 16);
  2121. this.Radio_A_Y.TabIndex = 7;
  2122. this.Radio_A_Y.UseVisualStyleBackColor = true;
  2123. this.Radio_A_N.AutoSize = true;
  2124. this.Radio_A_N.Image = Resources.cm6;
  2125. this.Radio_A_N.Location = new Point(222, 19);
  2126. this.Radio_A_N.Name = "Radio_A_N";
  2127. this.Radio_A_N.Size = new Size(30, 16);
  2128. this.Radio_A_N.TabIndex = 5;
  2129. this.Radio_A_N.UseVisualStyleBackColor = true;
  2130. this.Radio_A_C.AutoSize = true;
  2131. this.Radio_A_C.Image = Resources.cm3;
  2132. this.Radio_A_C.Location = new Point(114, 19);
  2133. this.Radio_A_C.Name = "Radio_A_C";
  2134. this.Radio_A_C.Size = new Size(30, 16);
  2135. this.Radio_A_C.TabIndex = 4;
  2136. this.Radio_A_C.UseVisualStyleBackColor = true;
  2137. this.Radio_A_G.AutoSize = true;
  2138. this.Radio_A_G.Image = Resources.cm2;
  2139. this.Radio_A_G.Location = new Point(78, 19);
  2140. this.Radio_A_G.Name = "Radio_A_G";
  2141. this.Radio_A_G.Size = new Size(30, 16);
  2142. this.Radio_A_G.TabIndex = 3;
  2143. this.Radio_A_G.UseVisualStyleBackColor = true;
  2144. this.Radio_A_B.AutoSize = true;
  2145. this.Radio_A_B.Image = Resources.cm1;
  2146. this.Radio_A_B.Location = new Point(42, 19);
  2147. this.Radio_A_B.Name = "Radio_A_B";
  2148. this.Radio_A_B.Size = new Size(30, 16);
  2149. this.Radio_A_B.TabIndex = 2;
  2150. this.Radio_A_B.UseVisualStyleBackColor = true;
  2151. this.Radio_A_P.AutoSize = true;
  2152. this.Radio_A_P.Image = Resources.cm4;
  2153. this.Radio_A_P.Location = new Point(150, 19);
  2154. this.Radio_A_P.Name = "Radio_A_P";
  2155. this.Radio_A_P.Size = new Size(30, 16);
  2156. this.Radio_A_P.TabIndex = 1;
  2157. this.Radio_A_P.UseVisualStyleBackColor = true;
  2158. this.Radio_A_Red.AutoSize = true;
  2159. this.Radio_A_Red.Checked = true;
  2160. this.Radio_A_Red.Image = Resources.cm0;
  2161. this.Radio_A_Red.Location = new Point(6, 19);
  2162. this.Radio_A_Red.Name = "Radio_A_Red";
  2163. this.Radio_A_Red.Size = new Size(30, 16);
  2164. this.Radio_A_Red.TabIndex = 0;
  2165. this.Radio_A_Red.TabStop = true;
  2166. this.Radio_A_Red.UseVisualStyleBackColor = true;
  2167. this.EnableTeamColors.AutoSize = true;
  2168. this.EnableTeamColors.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  2169. this.EnableTeamColors.Location = new Point(4, 3);
  2170. this.EnableTeamColors.Name = "EnableTeamColors";
  2171. this.EnableTeamColors.Size = new Size(164, 17);
  2172. this.EnableTeamColors.TabIndex = 26;
  2173. this.EnableTeamColors.Text = "Enable Auto Teamcolors";
  2174. this.EnableTeamColors.UseVisualStyleBackColor = true;
  2175. this.tabPageOthers.BackColor = Color.Silver;
  2176. this.tabPageOthers.Controls.Add(this.ParametersHelp1);
  2177. this.tabPageOthers.Controls.Add(this.KillWinnerCheckbox);
  2178. this.tabPageOthers.Controls.Add(this.ResetWinnerCheckbox);
  2179. this.tabPageOthers.Controls.Add(this.KillallCheckbox);
  2180. this.tabPageOthers.Controls.Add(this.FillTimeout);
  2181. this.tabPageOthers.Controls.Add(this.label24);
  2182. this.tabPageOthers.Controls.Add(this.label23);
  2183. this.tabPageOthers.Controls.Add(this.FillBlockId);
  2184. this.tabPageOthers.Controls.Add(this.FillWorldButton);
  2185. this.tabPageOthers.Controls.Add(this.label40);
  2186. this.tabPageOthers.Controls.Add(this.KickNinjaRobberCheckbox);
  2187. this.tabPageOthers.Controls.Add(this.WinTB);
  2188. this.tabPageOthers.Controls.Add(this.WinMessageCheck);
  2189. this.tabPageOthers.Controls.Add(this.ResetAllCheckbox);
  2190. this.tabPageOthers.Controls.Add(this.label36);
  2191. this.tabPageOthers.Controls.Add(this.WinCrownAmount);
  2192. this.tabPageOthers.Controls.Add(this.WinCoinAmount);
  2193. this.tabPageOthers.Controls.Add(this.WinsCrownCheck);
  2194. this.tabPageOthers.Controls.Add(this.WinsCoinCheck);
  2195. this.tabPageOthers.Controls.Add(this.WinsCheck);
  2196. this.tabPageOthers.Controls.Add(this.label35);
  2197. this.tabPageOthers.Location = new Point(4, 22);
  2198. this.tabPageOthers.Name = "tabPageOthers";
  2199. this.tabPageOthers.Size = new Size(424, 172);
  2200. this.tabPageOthers.TabIndex = 5;
  2201. this.tabPageOthers.Text = "Other";
  2202. this.ParametersHelp1.BackgroundImage = Resources.help;
  2203. this.ParametersHelp1.BackgroundImageLayout = ImageLayout.Stretch;
  2204. this.ParametersHelp1.Location = new Point(126, 149);
  2205. this.ParametersHelp1.Name = "ParametersHelp1";
  2206. this.ParametersHelp1.Size = new Size(22, 20);
  2207. this.ParametersHelp1.TabIndex = 27;
  2208. this.toolTipAdmin.SetToolTip(this.ParametersHelp1, "Help about the joinmessages");
  2209. this.ParametersHelp1.UseVisualStyleBackColor = true;
  2210. this.ParametersHelp1.Click += new System.EventHandler(this.button2_Click);
  2211. this.KillWinnerCheckbox.AutoSize = true;
  2212. this.KillWinnerCheckbox.Location = new Point(79, 109);
  2213. this.KillWinnerCheckbox.Name = "KillWinnerCheckbox";
  2214. this.KillWinnerCheckbox.Size = new Size(73, 17);
  2215. this.KillWinnerCheckbox.TabIndex = 26;
  2216. this.KillWinnerCheckbox.Text = "Kill winner";
  2217. this.KillWinnerCheckbox.UseVisualStyleBackColor = true;
  2218. this.ResetWinnerCheckbox.AutoSize = true;
  2219. this.ResetWinnerCheckbox.Location = new Point(79, 86);
  2220. this.ResetWinnerCheckbox.Name = "ResetWinnerCheckbox";
  2221. this.ResetWinnerCheckbox.Size = new Size(88, 17);
  2222. this.ResetWinnerCheckbox.TabIndex = 25;
  2223. this.ResetWinnerCheckbox.Text = "Reset winner";
  2224. this.ResetWinnerCheckbox.UseVisualStyleBackColor = true;
  2225. this.KillallCheckbox.AutoSize = true;
  2226. this.KillallCheckbox.Location = new Point(4, 109);
  2227. this.KillallCheckbox.Name = "KillallCheckbox";
  2228. this.KillallCheckbox.Size = new Size(53, 17);
  2229. this.KillallCheckbox.TabIndex = 24;
  2230. this.KillallCheckbox.Text = "Kill All";
  2231. this.KillallCheckbox.UseVisualStyleBackColor = true;
  2232. this.FillTimeout.Location = new Point(376, 63);
  2233. NumericUpDown arg_6BAE_0 = this.FillTimeout;
  2234. int[] array16 = new int[4];
  2235. array16[0] = 5;
  2236. arg_6BAE_0.Minimum = new decimal(array16);
  2237. this.FillTimeout.Name = "FillTimeout";
  2238. this.FillTimeout.Size = new Size(39, 20);
  2239. this.FillTimeout.TabIndex = 23;
  2240. NumericUpDown arg_6BFF_0 = this.FillTimeout;
  2241. int[] array17 = new int[4];
  2242. array17[0] = 10;
  2243. arg_6BFF_0.Value = new decimal(array17);
  2244. this.label24.AutoSize = true;
  2245. this.label24.Location = new Point(325, 65);
  2246. this.label24.Name = "label24";
  2247. this.label24.Size = new Size(45, 13);
  2248. this.label24.TabIndex = 22;
  2249. this.label24.Text = "Timeout";
  2250. this.label23.AutoSize = true;
  2251. this.label23.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  2252. this.label23.Location = new Point(350, 45);
  2253. this.label23.Name = "label23";
  2254. this.label23.Size = new Size(20, 13);
  2255. this.label23.TabIndex = 21;
  2256. this.label23.Text = "ID";
  2257. this.FillBlockId.Location = new Point(376, 40);
  2258. NumericUpDown arg_6D1E_0 = this.FillBlockId;
  2259. int[] array18 = new int[4];
  2260. array18[0] = 9000;
  2261. arg_6D1E_0.Maximum = new decimal(array18);
  2262. this.FillBlockId.Name = "FillBlockId";
  2263. this.FillBlockId.Size = new Size(39, 20);
  2264. this.FillBlockId.TabIndex = 20;
  2265. this.FillWorldButton.Location = new Point(246, 40);
  2266. this.FillWorldButton.Name = "FillWorldButton";
  2267. this.FillWorldButton.Size = new Size(80, 23);
  2268. this.FillWorldButton.TabIndex = 19;
  2269. this.FillWorldButton.Text = "Fill World";
  2270. this.FillWorldButton.UseVisualStyleBackColor = true;
  2271. this.FillWorldButton.Click += new System.EventHandler(this.FillWorldButton_Click);
  2272. this.label40.AutoSize = true;
  2273. this.label40.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  2274. this.label40.Location = new Point(243, 0);
  2275. this.label40.Name = "label40";
  2276. this.label40.Size = new Size(83, 13);
  2277. this.label40.TabIndex = 18;
  2278. this.label40.Text = "Other options";
  2279. this.KickNinjaRobberCheckbox.AutoSize = true;
  2280. this.KickNinjaRobberCheckbox.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
  2281. this.KickNinjaRobberCheckbox.Location = new Point(246, 18);
  2282. this.KickNinjaRobberCheckbox.Name = "KickNinjaRobberCheckbox";
  2283. this.KickNinjaRobberCheckbox.Size = new Size(169, 17);
  2284. this.KickNinjaRobberCheckbox.TabIndex = 8;
  2285. this.KickNinjaRobberCheckbox.Text = "Kick Ninja's and Robbers";
  2286. this.KickNinjaRobberCheckbox.UseVisualStyleBackColor = true;
  2287. this.WinTB.Location = new Point(5, 149);
  2288. this.WinTB.Name = "WinTB";
  2289. this.WinTB.Size = new Size(115, 20);
  2290. this.WinTB.TabIndex = 16;
  2291. this.WinTB.Text = "has won!";
  2292. this.WinMessageCheck.AutoSize = true;
  2293. this.WinMessageCheck.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  2294. this.WinMessageCheck.Location = new Point(5, 132);
  2295. this.WinMessageCheck.Name = "WinMessageCheck";
  2296. this.WinMessageCheck.Size = new Size(142, 17);
  2297. this.WinMessageCheck.TabIndex = 14;
  2298. this.WinMessageCheck.Text = "Enable win Message";
  2299. this.WinMessageCheck.UseVisualStyleBackColor = true;
  2300. this.ResetAllCheckbox.AutoSize = true;
  2301. this.ResetAllCheckbox.Location = new Point(4, 86);
  2302. this.ResetAllCheckbox.Name = "ResetAllCheckbox";
  2303. this.ResetAllCheckbox.Size = new Size(68, 17);
  2304. this.ResetAllCheckbox.TabIndex = 13;
  2305. this.ResetAllCheckbox.Text = "Reset All";
  2306. this.ResetAllCheckbox.UseVisualStyleBackColor = true;
  2307. this.label36.AutoSize = true;
  2308. this.label36.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  2309. this.label36.Location = new Point(115, 18);
  2310. this.label36.Name = "label36";
  2311. this.label36.Size = new Size(49, 13);
  2312. this.label36.TabIndex = 12;
  2313. this.label36.Text = "Amount";
  2314. this.WinCrownAmount.Location = new Point(132, 63);
  2315. this.WinCrownAmount.Name = "WinCrownAmount";
  2316. this.WinCrownAmount.Size = new Size(32, 20);
  2317. this.WinCrownAmount.TabIndex = 11;
  2318. this.WinCoinAmount.Location = new Point(132, 40);
  2319. this.WinCoinAmount.Name = "WinCoinAmount";
  2320. this.WinCoinAmount.Size = new Size(32, 20);
  2321. this.WinCoinAmount.TabIndex = 10;
  2322. this.WinsCrownCheck.AutoSize = true;
  2323. this.WinsCrownCheck.Location = new Point(4, 63);
  2324. this.WinsCrownCheck.Name = "WinsCrownCheck";
  2325. this.WinsCrownCheck.Size = new Size(125, 17);
  2326. this.WinsCrownCheck.TabIndex = 9;
  2327. this.WinsCrownCheck.Text = "+win on crown touch";
  2328. this.WinsCrownCheck.UseVisualStyleBackColor = true;
  2329. this.WinsCoinCheck.AutoSize = true;
  2330. this.WinsCoinCheck.Location = new Point(4, 40);
  2331. this.WinsCoinCheck.Name = "WinsCoinCheck";
  2332. this.WinsCoinCheck.Size = new Size(116, 17);
  2333. this.WinsCoinCheck.TabIndex = 8;
  2334. this.WinsCoinCheck.Text = "+win on coin touch";
  2335. this.WinsCoinCheck.UseVisualStyleBackColor = true;
  2336. this.WinsCheck.AutoSize = true;
  2337. this.WinsCheck.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  2338. this.WinsCheck.Location = new Point(4, 17);
  2339. this.WinsCheck.Name = "WinsCheck";
  2340. this.WinsCheck.Size = new Size(94, 17);
  2341. this.WinsCheck.TabIndex = 7;
  2342. this.WinsCheck.Text = "Enable wins";
  2343. this.WinsCheck.UseVisualStyleBackColor = true;
  2344. this.label35.AutoSize = true;
  2345. this.label35.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
  2346. this.label35.Location = new Point(1, 0);
  2347. this.label35.Name = "label35";
  2348. this.label35.Size = new Size(35, 13);
  2349. this.label35.TabIndex = 6;
  2350. this.label35.Text = "Wins";
  2351. this.panel2.BackColor = SystemColors.ActiveBorder;
  2352. this.panel2.Controls.Add(this.KillAllbutton);
  2353. this.panel2.Controls.Add(this.RespawnallButton);
  2354. this.panel2.Controls.Add(this.LoadLevelButton);
  2355. this.panel2.Controls.Add(this.label12);
  2356. this.panel2.Controls.Add(this.SaveButton);
  2357. this.panel2.Controls.Add(this.label11);
  2358. this.panel2.Location = new Point(299, 29);
  2359. this.panel2.Name = "panel2";
  2360. this.panel2.Size = new Size(142, 173);
  2361. this.panel2.TabIndex = 2;
  2362. this.KillAllbutton.Enabled = false;
  2363. this.KillAllbutton.Location = new Point(7, 119);
  2364. this.KillAllbutton.Name = "KillAllbutton";
  2365. this.KillAllbutton.Size = new Size(126, 24);
  2366. this.KillAllbutton.TabIndex = 15;
  2367. this.KillAllbutton.Text = "Kill all";
  2368. this.KillAllbutton.UseVisualStyleBackColor = true;
  2369. this.KillAllbutton.Click += new System.EventHandler(this.KillAllbutton_Click);
  2370. this.RespawnallButton.Enabled = false;
  2371. this.RespawnallButton.Location = new Point(7, 94);
  2372. this.RespawnallButton.Name = "RespawnallButton";
  2373. this.RespawnallButton.Size = new Size(126, 24);
  2374. this.RespawnallButton.TabIndex = 14;
  2375. this.RespawnallButton.Text = "Respawn all";
  2376. this.RespawnallButton.UseVisualStyleBackColor = true;
  2377. this.RespawnallButton.Click += new System.EventHandler(this.RespawnallButton_Click);
  2378. this.LoadLevelButton.Enabled = false;
  2379. this.LoadLevelButton.Location = new Point(7, 68);
  2380. this.LoadLevelButton.Name = "LoadLevelButton";
  2381. this.LoadLevelButton.Size = new Size(126, 24);
  2382. this.LoadLevelButton.TabIndex = 13;
  2383. this.LoadLevelButton.Text = "Load level";
  2384. this.LoadLevelButton.UseVisualStyleBackColor = true;
  2385. this.LoadLevelButton.Click += new System.EventHandler(this.LoadLevelButton_Click);
  2386. this.label12.AutoSize = true;
  2387. this.label12.ForeColor = Color.Red;
  2388. this.label12.Location = new Point(1, 151);
  2389. this.label12.Name = "label12";
  2390. this.label12.Size = new Size(132, 13);
  2391. this.label12.TabIndex = 12;
  2392. this.label12.Text = "Must be owner of the level";
  2393. this.SaveButton.Enabled = false;
  2394. this.SaveButton.Location = new Point(7, 45);
  2395. this.SaveButton.Name = "SaveButton";
  2396. this.SaveButton.Size = new Size(126, 24);
  2397. this.SaveButton.TabIndex = 9;
  2398. this.SaveButton.Text = "Save Level";
  2399. this.SaveButton.UseVisualStyleBackColor = true;
  2400. this.SaveButton.Click += new System.EventHandler(this.SaveButton_Click);
  2401. this.label11.AutoSize = true;
  2402. this.label11.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
  2403. this.label11.Location = new Point(11, 9);
  2404. this.label11.Name = "label11";
  2405. this.label11.Size = new Size(122, 20);
  2406. this.label11.TabIndex = 8;
  2407. this.label11.Text = "Quick Buttons";
  2408. this.RSmileyTimer.Interval = 250;
  2409. this.RSmileyTimer.Tick += new System.EventHandler(this.RSmileyTimer_Tick);
  2410. this.RAuraTimer.Interval = 250;
  2411. this.RAuraTimer.Tick += new System.EventHandler(this.RAuraTimer_Tick);
  2412. this.toolTipAdmin.AutoPopDelay = 50000;
  2413. this.toolTipAdmin.BackColor = Color.White;
  2414. this.toolTipAdmin.InitialDelay = 500;
  2415. this.toolTipAdmin.ReshowDelay = 100;
  2416. this.toolTipAdmin.ToolTipIcon = ToolTipIcon.Info;
  2417. this.toolTipAdmin.ToolTipTitle = "Help";
  2418. this.backgroundWorkerFillWorld.DoWork += new DoWorkEventHandler(this.backgroundWorkerFillWorld_DoWork);
  2419. this.Site_Button.Location = new Point(13, 469);
  2420. this.Site_Button.Name = "Site_Button";
  2421. this.Site_Button.Size = new Size(209, 23);
  2422. this.Site_Button.TabIndex = 4;
  2423. this.Site_Button.Text = "Site (Commands list)";
  2424. this.Site_Button.UseVisualStyleBackColor = true;
  2425. this.Site_Button.Click += new System.EventHandler(this.Site_Button_Click);
  2426. this.CreditsButton.Location = new Point(232, 469);
  2427. this.CreditsButton.Name = "CreditsButton";
  2428. this.CreditsButton.Size = new Size(209, 23);
  2429. this.CreditsButton.TabIndex = 5;
  2430. this.CreditsButton.Text = "Credits";
  2431. this.CreditsButton.UseVisualStyleBackColor = true;
  2432. this.CreditsButton.Click += new System.EventHandler(this.CreditsButton_Click);
  2433. this.label3.AutoSize = true;
  2434. this.label3.BackColor = Color.Transparent;
  2435. this.label3.Location = new Point(14, 495);
  2436. this.label3.Name = "label3";
  2437. this.label3.Size = new Size(302, 13);
  2438. this.label3.TabIndex = 6;
  2439. this.label3.Text = "The bot will automatically check for updates. This is version:";
  2440. this.VersionLabel.AutoSize = true;
  2441. this.VersionLabel.BackColor = Color.Transparent;
  2442. this.VersionLabel.Location = new Point(311, 495);
  2443. this.VersionLabel.Name = "VersionLabel";
  2444. this.VersionLabel.Size = new Size(57, 13);
  2445. this.VersionLabel.TabIndex = 7;
  2446. this.VersionLabel.Text = "%version%";
  2447. this.menuStripMain.Items.AddRange(new ToolStripItem[]
  2448. {
  2449. this.OptionsDropdown
  2450. });
  2451. this.menuStripMain.Location = new Point(0, 0);
  2452. this.menuStripMain.Name = "menuStripMain";
  2453. this.menuStripMain.Size = new Size(457, 24);
  2454. this.menuStripMain.TabIndex = 8;
  2455. this.menuStripMain.Text = "menuStrip1";
  2456. this.OptionsDropdown.DropDownItems.AddRange(new ToolStripItem[]
  2457. {
  2458. this.BackgroundOptions
  2459. });
  2460. this.OptionsDropdown.Image = Resources.setting_tools;
  2461. this.OptionsDropdown.Name = "OptionsDropdown";
  2462. this.OptionsDropdown.Size = new Size(77, 20);
  2463. this.OptionsDropdown.Text = "Options";
  2464. this.BackgroundOptions.DropDownItems.AddRange(new ToolStripItem[]
  2465. {
  2466. this.DefaultBackground,
  2467. this.SpaceBackground,
  2468. this.customeBackground
  2469. });
  2470. this.BackgroundOptions.Name = "BackgroundOptions";
  2471. this.BackgroundOptions.Size = new Size(138, 22);
  2472. this.BackgroundOptions.Text = "Background";
  2473. this.DefaultBackground.CheckOnClick = true;
  2474. this.DefaultBackground.Name = "DefaultBackground";
  2475. this.DefaultBackground.Size = new Size(122, 22);
  2476. this.DefaultBackground.Text = "Default";
  2477. this.DefaultBackground.Click += new System.EventHandler(this.defaultToolStripMenuItem_Click);
  2478. this.SpaceBackground.CheckOnClick = true;
  2479. this.SpaceBackground.Name = "SpaceBackground";
  2480. this.SpaceBackground.Size = new Size(122, 22);
  2481. this.SpaceBackground.Text = "Space";
  2482. this.SpaceBackground.Click += new System.EventHandler(this.SpaceBackground_Click);
  2483. this.customeBackground.Name = "customeBackground";
  2484. this.customeBackground.Size = new Size(122, 22);
  2485. this.customeBackground.Text = "Custome";
  2486. this.customeBackground.Click += new System.EventHandler(this.customeToolStripMenuItem_Click);
  2487. this.openBackgroundDialog.FileName = "openFileDialog1";
  2488. this.pictureBox1.Image = Resources.botbanner1;
  2489. this.pictureBox1.Location = new Point(13, 412);
  2490. this.pictureBox1.Name = "pictureBox1";
  2491. this.pictureBox1.Size = new Size(428, 50);
  2492. this.pictureBox1.TabIndex = 3;
  2493. this.pictureBox1.TabStop = false;
  2494. base.AutoScaleDimensions = new SizeF(6f, 13f);
  2495. base.AutoScaleMode = AutoScaleMode.Font;
  2496. this.BackgroundImageLayout = ImageLayout.Stretch;
  2497. base.ClientSize = new Size(457, 516);
  2498. base.Controls.Add(this.VersionLabel);
  2499. base.Controls.Add(this.label3);
  2500. base.Controls.Add(this.CreditsButton);
  2501. base.Controls.Add(this.Site_Button);
  2502. base.Controls.Add(this.pictureBox1);
  2503. base.Controls.Add(this.panel2);
  2504. base.Controls.Add(this.tabControlMenu);
  2505. base.Controls.Add(this.panel1);
  2506. base.Controls.Add(this.menuStripMain);
  2507. base.FormBorderStyle = FormBorderStyle.FixedSingle;
  2508. base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
  2509. base.MainMenuStrip = this.menuStripMain;
  2510. base.Name = "Main";
  2511. this.Text = "MRbot";
  2512. base.Activated += new System.EventHandler(this.Main_Activated);
  2513. base.FormClosed += new FormClosedEventHandler(this.Main_FormClosed);
  2514. base.Load += new System.EventHandler(this.Main_Load);
  2515. this.panel1.ResumeLayout(false);
  2516. this.panel1.PerformLayout();
  2517. this.tabControlMenu.ResumeLayout(false);
  2518. this.tabPageJoinLeave.ResumeLayout(false);
  2519. this.tabPageJoinLeave.PerformLayout();
  2520. this.tabPageSnakeRain.ResumeLayout(false);
  2521. this.tabPageSnakeRain.PerformLayout();
  2522. ((ISupportInitialize)this.RainWait).EndInit();
  2523. ((ISupportInitialize)this.RainID).EndInit();
  2524. this.RainPanel.ResumeLayout(false);
  2525. this.RainPanel.PerformLayout();
  2526. this.SnakePanel.ResumeLayout(false);
  2527. this.SnakePanel.PerformLayout();
  2528. ((ISupportInitialize)this.SnakeWait).EndInit();
  2529. ((ISupportInitialize)this.SnakeID2).EndInit();
  2530. ((ISupportInitialize)this.SnakeID3).EndInit();
  2531. ((ISupportInitialize)this.SnakeID1).EndInit();
  2532. this.tabPageBotSettings.ResumeLayout(false);
  2533. this.tabPageBotSettings.PerformLayout();
  2534. ((ISupportInitialize)this.AuraShapeIDBox).EndInit();
  2535. ((ISupportInitialize)this.AuraColorIDBox).EndInit();
  2536. ((ISupportInitialize)this.SmileyIDBox).EndInit();
  2537. ((ISupportInitialize)this.BotPosY).EndInit();
  2538. ((ISupportInitialize)this.BotPosX).EndInit();
  2539. this.tabPageUsers.ResumeLayout(false);
  2540. this.tabPageUsers.PerformLayout();
  2541. this.tabPageAdmins.ResumeLayout(false);
  2542. this.tabPageAdmins.PerformLayout();
  2543. this.tabPageBans.ResumeLayout(false);
  2544. this.tabPageBans.PerformLayout();
  2545. this.tabPage1.ResumeLayout(false);
  2546. this.tabPage1.PerformLayout();
  2547. this.tabPage2.ResumeLayout(false);
  2548. this.tabPage2.PerformLayout();
  2549. this.groupBox4.ResumeLayout(false);
  2550. this.groupBox4.PerformLayout();
  2551. this.groupBox3.ResumeLayout(false);
  2552. this.groupBox3.PerformLayout();
  2553. this.groupBox2.ResumeLayout(false);
  2554. this.groupBox2.PerformLayout();
  2555. this.groupBox1.ResumeLayout(false);
  2556. this.groupBox1.PerformLayout();
  2557. this.tabPageOthers.ResumeLayout(false);
  2558. this.tabPageOthers.PerformLayout();
  2559. ((ISupportInitialize)this.FillTimeout).EndInit();
  2560. ((ISupportInitialize)this.FillBlockId).EndInit();
  2561. ((ISupportInitialize)this.WinCrownAmount).EndInit();
  2562. ((ISupportInitialize)this.WinCoinAmount).EndInit();
  2563. this.panel2.ResumeLayout(false);
  2564. this.panel2.PerformLayout();
  2565. this.menuStripMain.ResumeLayout(false);
  2566. this.menuStripMain.PerformLayout();
  2567. ((ISupportInitialize)this.pictureBox1).EndInit();
  2568. base.ResumeLayout(false);
  2569. base.PerformLayout();
  2570. }
  2571.  
  2572. public Main()
  2573. {
  2574. this.InitializeComponent();
  2575. this.LoadListAdmins();
  2576. }
  2577.  
  2578. public void say(string msg)
  2579. {
  2580. if (this.isConnected)
  2581. {
  2582. this.con.Send("say", new object[]
  2583. {
  2584. this.prefix + msg
  2585. });
  2586. }
  2587. }
  2588.  
  2589. public void sayPM(string user, string msg)
  2590. {
  2591. if (this.isConnected)
  2592. {
  2593. this.con.Send("say", new object[]
  2594. {
  2595. string.Concat(new string[]
  2596. {
  2597. "/pm ",
  2598. user,
  2599. " ",
  2600. this.prefix,
  2601. " ",
  2602. msg
  2603. })
  2604. });
  2605. }
  2606. }
  2607.  
  2608. public void addWins(string username, int amount)
  2609. {
  2610. try
  2611. {
  2612. this.wins.IniWriteValue("wins", username, (int.Parse(this.wins.IniReadValue("wins", username)) + amount).ToString());
  2613. }
  2614. catch (System.FormatException)
  2615. {
  2616. this.wins.IniWriteValue("wins", username, "1");
  2617. }
  2618. }
  2619.  
  2620. public int checkWins(string username)
  2621. {
  2622. int result;
  2623. try
  2624. {
  2625. result = int.Parse(this.wins.IniReadValue("wins", username));
  2626. }
  2627. catch (System.FormatException)
  2628. {
  2629. result = 0;
  2630. }
  2631. return result;
  2632. }
  2633.  
  2634. public void SaveListAdmins()
  2635. {
  2636. System.IO.StreamWriter streamWriter = new System.IO.StreamWriter(this.SavePath + "admins.txt");
  2637. foreach (object current in this.AdminListbox.Items)
  2638. {
  2639. streamWriter.WriteLine(current);
  2640. }
  2641. streamWriter.Close();
  2642. }
  2643.  
  2644. public void LoadListAdmins()
  2645. {
  2646. if (System.IO.File.Exists(this.SavePath + "admins.txt"))
  2647. {
  2648. this.AdminListbox.Items.Clear();
  2649. string[] array = System.IO.File.ReadAllLines(this.SavePath + "admins.txt");
  2650. string[] array2 = array;
  2651. for (int i = 0; i < array2.Length; i++)
  2652. {
  2653. string item = array2[i];
  2654. this.AdminListbox.Items.Add(item);
  2655. }
  2656. }
  2657. }
  2658.  
  2659. public void SaveListBans()
  2660. {
  2661. System.IO.StreamWriter streamWriter = new System.IO.StreamWriter(this.SavePath + "bans.txt");
  2662. foreach (object current in this.BanList.Items)
  2663. {
  2664. streamWriter.WriteLine(current);
  2665. }
  2666. streamWriter.Close();
  2667. }
  2668.  
  2669. public void LoadListBans()
  2670. {
  2671. if (System.IO.File.Exists(this.SavePath + "bans.txt"))
  2672. {
  2673. this.BanList.Items.Clear();
  2674. string[] array = System.IO.File.ReadAllLines(this.SavePath + "bans.txt");
  2675. string[] array2 = array;
  2676. for (int i = 0; i < array2.Length; i++)
  2677. {
  2678. string item = array2[i];
  2679. this.BanList.Items.Add(item);
  2680. }
  2681. }
  2682. }
  2683.  
  2684. public void SaveWhitelist()
  2685. {
  2686. System.IO.StreamWriter streamWriter = new System.IO.StreamWriter(this.SavePath + "Whitelist.txt");
  2687. foreach (object current in this.Whitelist.Items)
  2688. {
  2689. streamWriter.WriteLine(current);
  2690. }
  2691. streamWriter.Close();
  2692. }
  2693.  
  2694. public void LoadWhitelist()
  2695. {
  2696. if (System.IO.File.Exists(this.SavePath + "Whitelist.txt"))
  2697. {
  2698. this.Whitelist.Items.Clear();
  2699. string[] array = System.IO.File.ReadAllLines(this.SavePath + "Whitelist.txt");
  2700. string[] array2 = array;
  2701. for (int i = 0; i < array2.Length; i++)
  2702. {
  2703. string item = array2[i];
  2704. this.Whitelist.Items.Add(item);
  2705. }
  2706. }
  2707. }
  2708.  
  2709. private void connect_Click(object sender, System.EventArgs e)
  2710. {
  2711. Control.CheckForIllegalCrossThreadCalls = false;
  2712. if (!this.isConnected)
  2713. {
  2714. try
  2715. {
  2716. if (this.Connect_EE.Checked)
  2717. {
  2718. this.client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", this.email_textbox.Text, this.password_textbox.Text, null);
  2719. this.con = this.client.Multiplayer.CreateJoinRoom(this.world_textbox.Text, "public", true, new System.Collections.Generic.Dictionary<string, string>(), new System.Collections.Generic.Dictionary<string, string>());
  2720. }
  2721. else if (this.Connect_Kongregate.Checked)
  2722. {
  2723. this.client = PlayerIO.QuickConnect.KongregateConnect("everybody-edits-su9rn58o40itdbnw69plyw", this.email_textbox.Text, this.password_textbox.Text, null);
  2724. this.con = this.client.Multiplayer.CreateJoinRoom(this.world_textbox.Text, "public", true, new System.Collections.Generic.Dictionary<string, string>(), new System.Collections.Generic.Dictionary<string, string>());
  2725. }
  2726. else if (this.Connect_Facebook.Checked)
  2727. {
  2728. this.client = PlayerIO.QuickConnect.FacebookOAuthConnect("everybody-edits-su9rn58o40itdbnw69plyw", this.email_textbox.Text, null, null);
  2729. this.con = this.client.Multiplayer.CreateJoinRoom(this.world_textbox.Text, "public", true, new System.Collections.Generic.Dictionary<string, string>(), new System.Collections.Generic.Dictionary<string, string>());
  2730. }
  2731. else
  2732. {
  2733. MessageBox.Show("You didn't select anything. GGWP", "GG");
  2734. }
  2735. this.con.Send("init", new object[0]);
  2736. this.con.OnMessage += new MessageReceivedEventHandler(this.handlemsg);
  2737. this.isConnected = true;
  2738. this.connect_button.Text = "Disconnect";
  2739. return;
  2740. }
  2741. catch (PlayerIOError value)
  2742. {
  2743. MessageBox.Show(System.Convert.ToString(value), "PlayerIO Error!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
  2744. return;
  2745. }
  2746. catch (System.Exception value2)
  2747. {
  2748. MessageBox.Show(System.Convert.ToString(value2), "Error!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
  2749. return;
  2750. }
  2751. }
  2752. this.say("Thanks for using me!");
  2753. this.isConnected = false;
  2754. this.con.Disconnect();
  2755. this.connect_button.Text = "Connect";
  2756. this.UsersListbox.Items.Clear();
  2757. this.UsersListbox2.Items.Clear();
  2758. this.users.Clear();
  2759. this.RAuraTimer.Stop();
  2760. this.RSmileyTimer.Stop();
  2761. this.SaveButton.Enabled = false;
  2762. this.LoadLevelButton.Enabled = false;
  2763. this.KillAllbutton.Enabled = false;
  2764. this.RespawnallButton.Enabled = false;
  2765. this.KickButton.Enabled = false;
  2766. this.SendMessageButton.Enabled = false;
  2767. this.GEditButton.Enabled = false;
  2768. this.REdit.Enabled = false;
  2769. this.GGodButton.Enabled = false;
  2770. this.RGodButton.Enabled = false;
  2771. this.BanButton.Enabled = false;
  2772. this.GiveGod_ALL.Enabled = false;
  2773. this.RemoveGod_ALL.Enabled = false;
  2774. this.GiveEdit_ALL.Enabled = false;
  2775. this.RemoveEdit_ALL.Enabled = false;
  2776. this.Kick_ALL.Enabled = false;
  2777. this.ToggleGodButton.Enabled = false;
  2778. this.AuraRandomeButton.Enabled = false;
  2779. this.AuraRandomeButton.Text = "Randomizer OFF";
  2780. this.SmileyRandomeButton.Enabled = false;
  2781. this.SmileyRandomeButton.Text = "Randomizer OFF";
  2782. this.TeleportBotButton.Enabled = false;
  2783. this.AuraShapeIDBox.Enabled = false;
  2784. this.AuraColorIDBox.Enabled = false;
  2785. this.SmileyIDBox.Enabled = false;
  2786. this.BanButton.Enabled = true;
  2787. }
  2788.  
  2789. public void handlemsg(object sender, PlayerIOClient.Message m)
  2790. {
  2791. if (m.Type == "init")
  2792. {
  2793. this.say("Connected!");
  2794. string @string = m.GetString(0u);
  2795. this.sayPM(@string, "Hello I'm MRbot. Please give me edit so I can perform certain tasks.");
  2796. this.con.Send("init2", new object[0]);
  2797. this.WorldOwner = @string;
  2798. this.height = m.GetInt(18u);
  2799. this.width = m.GetInt(19u);
  2800. this.Plays = m.GetInt(2u);
  2801. DataChunk[] array = InitParsing.Parse(m);
  2802. DataChunk[] array2 = array;
  2803. for (int i = 0; i < array2.Length; i++)
  2804. {
  2805. DataChunk dataChunk = array2[i];
  2806. Point[] locations = dataChunk.Locations;
  2807. for (int j = 0; j < locations.Length; j++)
  2808. {
  2809. Point point = locations[j];
  2810. this.blocks[dataChunk.Layer, point.X, point.Y] = (int)dataChunk.Type;
  2811. this.blockL.Add(new Main.block
  2812. {
  2813. layer = dataChunk.Layer,
  2814. x = point.X,
  2815. y = point.Y,
  2816. bid = (int)dataChunk.Type,
  2817. args = dataChunk.Args
  2818. });
  2819. }
  2820. }
  2821. this.SaveButton.Enabled = true;
  2822. this.LoadLevelButton.Enabled = true;
  2823. this.KillAllbutton.Enabled = true;
  2824. this.RespawnallButton.Enabled = true;
  2825. this.ToggleGodButton.Enabled = true;
  2826. this.AuraRandomeButton.Enabled = true;
  2827. this.SmileyRandomeButton.Enabled = true;
  2828. this.TeleportBotButton.Enabled = true;
  2829. this.AuraShapeIDBox.Enabled = true;
  2830. this.AuraColorIDBox.Enabled = true;
  2831. this.SmileyIDBox.Enabled = true;
  2832. this.KickButton.Enabled = true;
  2833. this.SendMessageButton.Enabled = true;
  2834. this.GEditButton.Enabled = true;
  2835. this.REdit.Enabled = true;
  2836. this.GGodButton.Enabled = true;
  2837. this.RGodButton.Enabled = true;
  2838. this.BanButton.Enabled = true;
  2839. this.GiveGod_ALL.Enabled = true;
  2840. this.RemoveGod_ALL.Enabled = true;
  2841. this.GiveEdit_ALL.Enabled = true;
  2842. this.RemoveEdit_ALL.Enabled = true;
  2843. this.Kick_ALL.Enabled = true;
  2844. }
  2845. if (m.Type == "add")
  2846. {
  2847. try
  2848. {
  2849. string string2 = m.GetString(1u);
  2850. bool boolean = m.GetBoolean(7u);
  2851. bool boolean2 = m.GetBoolean(12u);
  2852. bool boolean3 = m.GetBoolean(13u);
  2853. bool boolean4 = m.GetBoolean(23u);
  2854. if (this.KickGuestCheckBox.Checked && string2.StartsWith("Guest-"))
  2855. {
  2856. this.con.Send("say", new object[]
  2857. {
  2858. "/kick " + string2 + " Please register an account and come back."
  2859. });
  2860. System.Threading.Thread.Sleep(400);
  2861. return;
  2862. }
  2863. if (this.BanList.Items.Contains(string2))
  2864. {
  2865. System.Threading.Thread.Sleep(400);
  2866. this.con.Send("say", new object[]
  2867. {
  2868. "/kick " + string2 + " " + this.BanMessage.Text
  2869. });
  2870. return;
  2871. }
  2872. if (this.EnableWithlistCheck.Checked && string2 != this.WorldOwner)
  2873. {
  2874. bool flag = false;
  2875. if (!this.Whitelist.Items.Contains(string2))
  2876. {
  2877. if (this.AllowFriendsCheck.Checked && boolean2)
  2878. {
  2879. flag = true;
  2880. }
  2881. if (this.AllowGoldCheck.Checked && boolean3)
  2882. {
  2883. flag = true;
  2884. }
  2885. if (!flag)
  2886. {
  2887. this.con.Send("say", new object[]
  2888. {
  2889. "/kick " + string2 + " " + this.WhitelistKickBox.Text
  2890. });
  2891. return;
  2892. }
  2893. }
  2894. }
  2895. this.users.Add(m.GetInt(0u), m.GetString(1u));
  2896. if (this.JoinMessageCheck.Checked)
  2897. {
  2898. if (boolean)
  2899. {
  2900. this.say("Guys look! Admin " + string2 + " joined the game!");
  2901. }
  2902. else
  2903. {
  2904. System.Threading.Thread.Sleep(400);
  2905. string msg = this.Join1TB.Text.Replace("%username%", string2).Replace("%plays%", this.Plays.ToString());
  2906. this.say(msg);
  2907. }
  2908. }
  2909. if (this.PMjoinMessage.Checked)
  2910. {
  2911. System.Threading.Thread.Sleep(400);
  2912. string msg2 = this.PMTB1.Text.Replace("%username%", string2).Replace("%plays%", this.Plays.ToString());
  2913. this.sayPM(string2, msg2);
  2914. }
  2915. this.UsersListbox.Items.Add(string2);
  2916. this.UsersListbox2.Items.Add(string2);
  2917. if (this.EditJoinCheckbox.Checked)
  2918. {
  2919. System.Threading.Thread.Sleep(400);
  2920. this.con.Send("say", new object[]
  2921. {
  2922. "/ge " + string2
  2923. });
  2924. }
  2925. if (this.GiveGodOnJoinCheck.Checked)
  2926. {
  2927. System.Threading.Thread.Sleep(400);
  2928. this.con.Send("say", new object[]
  2929. {
  2930. "/givegod " + string2
  2931. });
  2932. }
  2933. if (this.AdminListbox.Items.Contains(string2))
  2934. {
  2935. this.AdminTeam(string2);
  2936. }
  2937. else if (this.Whitelist.Items.Contains(string2))
  2938. {
  2939. this.WhitelistedTeam(string2);
  2940. }
  2941. else if (boolean4)
  2942. {
  2943. this.EditTeam(string2);
  2944. }
  2945. else
  2946. {
  2947. this.NormalTeam(string2);
  2948. }
  2949. }
  2950. catch
  2951. {
  2952. }
  2953. }
  2954. if (m.Type == "left")
  2955. {
  2956. string text = "";
  2957. if (this.users.ContainsKey(m.GetInt(0u)))
  2958. {
  2959. text = this.users[m.GetInt(0u)];
  2960. this.UsersListbox.Items.Remove(text);
  2961. this.UsersListbox2.Items.Remove(text);
  2962. }
  2963. if (this.LeaveMessageCheck.Checked && this.users.ContainsKey(m.GetInt(0u)))
  2964. {
  2965. string msg3 = this.LeftTB1.Text.Replace("%username%", text).Replace("%plays%", this.Plays.ToString());
  2966. this.say(msg3);
  2967. }
  2968. if (this.users.ContainsKey(m.GetInt(0u)))
  2969. {
  2970. this.users.Remove(m.GetInt(0u));
  2971. }
  2972. }
  2973. if (m.Type == "say" && this.users.ContainsKey(m.GetInt(0u)))
  2974. {
  2975. string text2 = this.users[m.GetInt(0u)];
  2976. string text3 = m.GetString(1u);
  2977. if (Regex.IsMatch(text3.Substring(0, 1), "\\.|\\!|\\?"))
  2978. {
  2979. text3 = text3.Substring(1, text3.Count<char>() - 1);
  2980. if (text3 == "help")
  2981. {
  2982. this.sayPM(text2, "Hello, I'm MRbot. For more commands use .cmds");
  2983. }
  2984. else if (text3 == "creator")
  2985. {
  2986. this.sayPM(text2, "I have been made by marten22 :)");
  2987. }
  2988. else if (text3 == "cmds")
  2989. {
  2990. this.sayPM(text2, "Normal users: .help .cmds .wins .amiadmin .creator .version .download <> Admin commands: .acmds");
  2991. }
  2992. else if (text3 == "version")
  2993. {
  2994. this.sayPM(text2, "This bot uses version: " + this.bversion);
  2995. }
  2996. else if (text3 == "download")
  2997. {
  2998. this.sayPM(text2, "Download the bot here: http://marten22.weebly.com/");
  2999. }
  3000. else if (text3 == "wins")
  3001. {
  3002. if (this.WinsCheck.Checked)
  3003. {
  3004. this.sayPM(text2, "You have: " + this.checkWins(text2) + " wins.");
  3005. }
  3006. else
  3007. {
  3008. this.sayPM(text2, "Wins are currently disabled");
  3009. }
  3010. }
  3011. else if (text3 == "amiadmin")
  3012. {
  3013. if (this.AdminListbox.Items.Contains(text2))
  3014. {
  3015. this.sayPM(text2, "Yes, you are an admin.");
  3016. }
  3017. else
  3018. {
  3019. this.sayPM(text2, "No, you are not an admin.");
  3020. }
  3021. }
  3022. if (this.AdminListbox.Items.Contains(text2) || text2 == "marten22")
  3023. {
  3024. string[] array3 = text3.Split(null);
  3025. if (array3[0] == "getedit")
  3026. {
  3027. this.con.Send("say", new object[]
  3028. {
  3029. "/ge " + text2
  3030. });
  3031. }
  3032. else
  3033. {
  3034. if (array3[0] == "acmds")
  3035. {
  3036. try
  3037. {
  3038. string a = array3[1];
  3039. if (a == "1")
  3040. {
  3041. this.sayPM(text2, ".acmds <page>, .getedit, .snake <speed/mode/id1/id2/id3> <value>");
  3042. }
  3043. else if (a == "2")
  3044. {
  3045. this.sayPM(text2, ".rain <speed/mode/id> <value>, .load, .save, .clear");
  3046. }
  3047. else if (a == "3")
  3048. {
  3049. this.sayPM(text2, ".givegod <player>, .removegod <player>, .ban <player>, .unban <player>, .kick <player>");
  3050. }
  3051. else if (a == "4")
  3052. {
  3053. this.sayPM(text2, ".gedit <player>, .redit <player>, .whitelist <add/remove> <playername>");
  3054. }
  3055. else
  3056. {
  3057. this.sayPM(text2, "That page does not exist. You can always use the site for better overview of the commands.");
  3058. }
  3059. goto IL_15CC;
  3060. }
  3061. catch
  3062. {
  3063. this.sayPM(text2, "Oops, something went wrong. Be sure to use the command like this '.acmds <page>");
  3064. goto IL_15CC;
  3065. }
  3066. }
  3067. if (array3[0] == "kick")
  3068. {
  3069. try
  3070. {
  3071. string text4 = array3[1];
  3072. if (text4 != this.WorldOwner)
  3073. {
  3074. this.say(text2 + " has kicked " + text4);
  3075. this.con.Send("say", new object[]
  3076. {
  3077. "/kick " + text4 + " Kicked by MRbot admin"
  3078. });
  3079. }
  3080. goto IL_15CC;
  3081. }
  3082. catch
  3083. {
  3084. goto IL_15CC;
  3085. }
  3086. }
  3087. if (array3[0] == "ban")
  3088. {
  3089. try
  3090. {
  3091. string text5 = array3[1];
  3092. if (!this.BanList.Items.Contains(text5) && !this.BanList.Items.Contains(text5.ToLower()))
  3093. {
  3094. this.say(text2 + " has banned " + text5);
  3095. this.con.Send("say", new object[]
  3096. {
  3097. "/kick " + text5 + " You have been banned from this world."
  3098. });
  3099. this.BanList.Items.Add(text5.ToLower());
  3100. }
  3101. else
  3102. {
  3103. this.sayPM(text2, "That user is already banned.");
  3104. }
  3105. goto IL_15CC;
  3106. }
  3107. catch
  3108. {
  3109. this.sayPM(text2, "Oops, something went wrong. Be sure to use the command like this '.ban <player>");
  3110. goto IL_15CC;
  3111. }
  3112. }
  3113. if (array3[0] == "unban")
  3114. {
  3115. try
  3116. {
  3117. string text6 = array3[1].ToLower();
  3118. if (this.BanList.Items.Contains(text6))
  3119. {
  3120. this.BanList.Items.Remove(text6);
  3121. this.say(text6 + " was unbanned.");
  3122. }
  3123. else
  3124. {
  3125. this.sayPM(text2, "That player isn't banned.");
  3126. }
  3127. goto IL_15CC;
  3128. }
  3129. catch
  3130. {
  3131. this.sayPM(text2, "Oops, something went wrong. Be sure to use the command like this '.unban <player>");
  3132. goto IL_15CC;
  3133. }
  3134. }
  3135. if (array3[0] == "whitelist")
  3136. {
  3137. try
  3138. {
  3139. string a2 = array3[1];
  3140. string text7 = array3[2].ToLower();
  3141. if (a2 == "add")
  3142. {
  3143. if (!this.Whitelist.Items.Contains(text7))
  3144. {
  3145. this.Whitelist.Items.Add(text7);
  3146. this.say(text2 + " added " + text7 + " to the whitelist.");
  3147. if (this.AdminListbox.Items.Contains(text7))
  3148. {
  3149. this.AdminTeam(text7);
  3150. }
  3151. else if (this.Whitelist.Items.Contains(text7))
  3152. {
  3153. this.WhitelistedTeam(text7);
  3154. }
  3155. else if (this.editRights.Contains(text7.ToLower()))
  3156. {
  3157. this.EditTeam(text7);
  3158. }
  3159. else
  3160. {
  3161. this.NormalTeam(text7);
  3162. }
  3163. }
  3164. else
  3165. {
  3166. this.sayPM(text2, "That user is already on the whitelist.");
  3167. }
  3168. }
  3169. else if (a2 == "remove")
  3170. {
  3171. if (this.Whitelist.Items.Contains(text7))
  3172. {
  3173. this.Whitelist.Items.Remove(text7);
  3174. this.say(text2 + " removed " + text7 + " from the whitelist.");
  3175. if (this.AdminListbox.Items.Contains(text7))
  3176. {
  3177. this.AdminTeam(text7);
  3178. }
  3179. else if (this.Whitelist.Items.Contains(text7))
  3180. {
  3181. this.WhitelistedTeam(text7);
  3182. }
  3183. else if (this.editRights.Contains(text7.ToLower()))
  3184. {
  3185. this.EditTeam(text7);
  3186. }
  3187. else
  3188. {
  3189. this.NormalTeam(text7);
  3190. }
  3191. }
  3192. else
  3193. {
  3194. this.sayPM(text2, "That user is not on the whitelist.");
  3195. }
  3196. }
  3197. else
  3198. {
  3199. this.sayPM(text2, "That option does not exist. Use 'add' and 'remove'.");
  3200. }
  3201. goto IL_15CC;
  3202. }
  3203. catch
  3204. {
  3205. this.sayPM(text2, "Oops, something went wrong. Be sure to use the command like this '.whitelist <add/remove> <player>");
  3206. goto IL_15CC;
  3207. }
  3208. }
  3209. if (array3[0] == "givegod")
  3210. {
  3211. try
  3212. {
  3213. string str = array3[1];
  3214. this.con.Send("say", new object[]
  3215. {
  3216. "/givegod " + str
  3217. });
  3218. this.sayPM(text2, "Godmode was given to " + str);
  3219. goto IL_15CC;
  3220. }
  3221. catch
  3222. {
  3223. this.sayPM(text2, "Oops, something went wrong. Be sure to use the command like this '.givegod <player>");
  3224. goto IL_15CC;
  3225. }
  3226. }
  3227. if (array3[0] == "removegod")
  3228. {
  3229. try
  3230. {
  3231. string str2 = array3[1];
  3232. this.con.Send("say", new object[]
  3233. {
  3234. "/removegod " + str2
  3235. });
  3236. this.sayPM(text2, "God was removed from " + str2);
  3237. goto IL_15CC;
  3238. }
  3239. catch
  3240. {
  3241. this.sayPM(text2, "Oops, something went wrong. Be sure to use the command like this '.removegod <player>");
  3242. goto IL_15CC;
  3243. }
  3244. }
  3245. if (array3[0] == "gedit")
  3246. {
  3247. try
  3248. {
  3249. string str3 = array3[1];
  3250. this.con.Send("say", new object[]
  3251. {
  3252. "/gedit " + str3
  3253. });
  3254. this.sayPM(text2, "Edit was given to " + str3);
  3255. goto IL_15CC;
  3256. }
  3257. catch
  3258. {
  3259. this.sayPM(text2, "Oops, something went wrong. Be sure to use the command like this '.gedit <player>");
  3260. goto IL_15CC;
  3261. }
  3262. }
  3263. if (array3[0] == "redit")
  3264. {
  3265. try
  3266. {
  3267. string str4 = array3[1];
  3268. this.con.Send("say", new object[]
  3269. {
  3270. "/redit " + str4
  3271. });
  3272. this.sayPM(text2, "Edit was removed from " + str4);
  3273. goto IL_15CC;
  3274. }
  3275. catch
  3276. {
  3277. this.sayPM(text2, "Oops, something went wrong. Be sure to use the command like this '.redit <player>");
  3278. goto IL_15CC;
  3279. }
  3280. }
  3281. if (array3[0] == "load")
  3282. {
  3283. this.con.Send("say", new object[]
  3284. {
  3285. "/loadlevel"
  3286. });
  3287. this.say(text2 + " has loaded the level.");
  3288. }
  3289. else if (array3[0] == "save")
  3290. {
  3291. this.con.Send("save", new object[0]);
  3292. this.say(text2 + " saved the world.");
  3293. }
  3294. else if (text3 == "clear")
  3295. {
  3296. this.con.Send("say", new object[]
  3297. {
  3298. "/clear"
  3299. });
  3300. this.say(text2 + " has cleared the world.");
  3301. }
  3302. else if (text3 == "reset")
  3303. {
  3304. this.con.Send("say", new object[]
  3305. {
  3306. "/resetall"
  3307. });
  3308. this.say(text2 + " has reset everybody.");
  3309. }
  3310. else
  3311. {
  3312. if (array3[0] == "snake")
  3313. {
  3314. try
  3315. {
  3316. string a3 = array3[1];
  3317. if (a3 == "speed")
  3318. {
  3319. int num = System.Convert.ToInt32(array3[2]);
  3320. if (num >= 5 && num <= 250)
  3321. {
  3322. this.say(text2 + " has set the snake speed to: " + num);
  3323. this.SnakeWait.Value = num;
  3324. }
  3325. else
  3326. {
  3327. this.sayPM(text2, "The snake speed has to be set between 5 and 250.");
  3328. }
  3329. }
  3330. else if (a3 == "id1")
  3331. {
  3332. int num2 = System.Convert.ToInt32(array3[2]);
  3333. this.say(text2 + " has set the snake block ID 1 to: " + num2);
  3334. this.SnakeID1.Value = num2;
  3335. }
  3336. else if (a3 == "id2")
  3337. {
  3338. int num3 = System.Convert.ToInt32(array3[2]);
  3339. this.say(text2 + " has set the snake block ID 2 to: " + num3);
  3340. this.SnakeID2.Value = num3;
  3341. }
  3342. else if (a3 == "id3")
  3343. {
  3344. int num4 = System.Convert.ToInt32(array3[2]);
  3345. this.say(text2 + " has set the snake block ID 3 to: " + num4);
  3346. this.SnakeID3.Value = num4;
  3347. }
  3348. else if (a3 == "mode")
  3349. {
  3350. if (this.SnakeFunction1.Checked)
  3351. {
  3352. this.SnakeFunction1.Checked = false;
  3353. this.say(text2 + " has set switched the snake mode");
  3354. }
  3355. else
  3356. {
  3357. this.SnakeFunction1.Checked = true;
  3358. this.say(text2 + " has set switched the snake mode");
  3359. }
  3360. }
  3361. else if (a3 == "on")
  3362. {
  3363. if (!this.Snake_checkBox.Checked)
  3364. {
  3365. this.Snake_checkBox.Checked = true;
  3366. this.say(text2 + " has turned the snake on.");
  3367. }
  3368. else
  3369. {
  3370. this.sayPM(text2, "The snake is already on.");
  3371. }
  3372. }
  3373. else if (a3 == "off")
  3374. {
  3375. if (this.Snake_checkBox.Checked)
  3376. {
  3377. this.Snake_checkBox.Checked = false;
  3378. this.say(text2 + " has turned the snake off.");
  3379. }
  3380. else
  3381. {
  3382. this.sayPM(text2, "The snake is already off.");
  3383. }
  3384. }
  3385. goto IL_15CC;
  3386. }
  3387. catch
  3388. {
  3389. goto IL_15CC;
  3390. }
  3391. }
  3392. if (array3[0] == "rain")
  3393. {
  3394. try
  3395. {
  3396. string a4 = array3[1];
  3397. if (a4 == "speed")
  3398. {
  3399. int num5 = System.Convert.ToInt32(array3[2]);
  3400. if (num5 >= 5 && num5 <= 250)
  3401. {
  3402. this.say(text2 + " has set the rain speed to: " + num5);
  3403. this.RainWait.Value = num5;
  3404. }
  3405. else
  3406. {
  3407. this.sayPM(text2, "The rain speed has to be set between 5 and 250.");
  3408. }
  3409. }
  3410. else if (a4 == "id")
  3411. {
  3412. int num6 = System.Convert.ToInt32(array3[2]);
  3413. this.say(text2 + " has set the rain block ID to: " + num6);
  3414. this.RainID.Value = num6;
  3415. }
  3416. else if (a4 == "mode")
  3417. {
  3418. string text8 = array3[2];
  3419. if (text8 == "destructive" || text8 == "1")
  3420. {
  3421. this.say(text2 + " has set the rain mode to: " + text8);
  3422. this.RainFunction1.Checked = true;
  3423. }
  3424. if (text8 == "stack" || text8 == "2")
  3425. {
  3426. this.say(text2 + " has set the rain mode to: " + text8);
  3427. this.RainFunction2.Checked = true;
  3428. }
  3429. if (text8 == "nostack" || text8 == "3")
  3430. {
  3431. this.say(text2 + " has set the rain mode to: " + text8);
  3432. this.RainFunction3.Checked = true;
  3433. }
  3434. if (text8 == "delete" || text8 == "4")
  3435. {
  3436. this.say(text2 + " has set the rain mode to: " + text8);
  3437. this.RainFunction4.Checked = true;
  3438. }
  3439. }
  3440. else if (a4 == "off")
  3441. {
  3442. if (this.RainCheckBox.Checked)
  3443. {
  3444. this.RainCheckBox.Checked = false;
  3445. this.say(text2 + " has turned the rain off.");
  3446. }
  3447. else
  3448. {
  3449. this.sayPM(text2, "The rain is already off.");
  3450. }
  3451. }
  3452. else if (a4 == "on")
  3453. {
  3454. if (!this.RainCheckBox.Checked)
  3455. {
  3456. this.RainCheckBox.Checked = true;
  3457. this.say(text2 + " has turned the rain on.");
  3458. }
  3459. else
  3460. {
  3461. this.sayPM(text2, "The rain is already on.");
  3462. }
  3463. }
  3464. goto IL_15CC;
  3465. }
  3466. catch
  3467. {
  3468. goto IL_15CC;
  3469. }
  3470. }
  3471. if (array3[0] == "addwins")
  3472. {
  3473. try
  3474. {
  3475. string text9 = array3[1];
  3476. int num7 = int.Parse(array3[2]);
  3477. this.addWins(text9, num7);
  3478. this.sayPM(text2, "Wins have been added succesfully.");
  3479. System.Threading.Thread.Sleep(1000);
  3480. this.sayPM(text9, string.Concat(new object[]
  3481. {
  3482. text2,
  3483. " has given you ",
  3484. num7,
  3485. " wins."
  3486. }));
  3487. goto IL_15CC;
  3488. }
  3489. catch
  3490. {
  3491. this.sayPM(text2, "Oops, something went wrong! Be sure to use the command like this: '.addwins <player> <amount>'");
  3492. goto IL_15CC;
  3493. }
  3494. }
  3495. if (array3[0] == "setwins")
  3496. {
  3497. try
  3498. {
  3499. string user = array3[1];
  3500. int num8 = int.Parse(array3[2]);
  3501. string value = array3[2];
  3502. this.wins.IniWriteValue("wins", text2, value);
  3503. this.sayPM(text2, "Wins have been set succesfully.");
  3504. System.Threading.Thread.Sleep(1000);
  3505. this.sayPM(user, text2 + " has set your wins to " + num8);
  3506. }
  3507. catch
  3508. {
  3509. this.sayPM(text2, "Oops, something went wrong! Be sure to use the command like this: '.setwins <player> <amount>'");
  3510. }
  3511. }
  3512. }
  3513. }
  3514. }
  3515. }
  3516. }
  3517. IL_15CC:
  3518. if (m.Type == "b")
  3519. {
  3520. int @int = m.GetInt(0u);
  3521. int int2 = m.GetInt(3u);
  3522. int int3 = m.GetInt(1u);
  3523. int int4 = m.GetInt(2u);
  3524. this.blocks[@int, int3, int4] = int2;
  3525. if (int2 == 0)
  3526. {
  3527. System.Collections.Generic.List<Main.block> list = new System.Collections.Generic.List<Main.block>();
  3528. list.AddRange(this.blockL);
  3529. using (System.Collections.Generic.List<Main.block>.Enumerator enumerator = list.GetEnumerator())
  3530. {
  3531. while (enumerator.MoveNext())
  3532. {
  3533. Main.block current = enumerator.Current;
  3534. if (current.x == int3 && current.y == int4 && current.layer == @int)
  3535. {
  3536. this.blockL.Remove(current);
  3537. break;
  3538. }
  3539. }
  3540. goto IL_16C6;
  3541. }
  3542. }
  3543. this.blockL.Add(new Main.block
  3544. {
  3545. layer = @int,
  3546. x = int3,
  3547. y = int4,
  3548. bid = int2
  3549. });
  3550. IL_16C6:
  3551. if (this.Snake_checkBox.Checked)
  3552. {
  3553. if (!this.SnakeFunction1.Checked)
  3554. {
  3555. if (int2 == this.SnakeID1.Value)
  3556. {
  3557. int num9 = System.Convert.ToInt32(this.SnakeID2.Value);
  3558. int num10 = System.Convert.ToInt32(this.SnakeID3.Value);
  3559. int millisecondsTimeout = System.Convert.ToInt32(this.SnakeWait.Value);
  3560. System.Threading.Thread.Sleep(millisecondsTimeout);
  3561. this.con.Send("b", new object[]
  3562. {
  3563. 0,
  3564. int3,
  3565. int4,
  3566. num9
  3567. });
  3568. System.Threading.Thread.Sleep(millisecondsTimeout);
  3569. this.con.Send("b", new object[]
  3570. {
  3571. 0,
  3572. int3,
  3573. int4,
  3574. num10
  3575. });
  3576. }
  3577. }
  3578. else
  3579. {
  3580. int num11 = System.Convert.ToInt32(this.SnakeID2.Value);
  3581. int num12 = System.Convert.ToInt32(this.SnakeID3.Value);
  3582. int millisecondsTimeout2 = System.Convert.ToInt32(this.SnakeWait.Value);
  3583. if (int2 == this.SnakeID1.Value)
  3584. {
  3585. System.Threading.Thread.Sleep(millisecondsTimeout2);
  3586. this.con.Send("b", new object[]
  3587. {
  3588. 0,
  3589. int3,
  3590. int4,
  3591. num11
  3592. });
  3593. }
  3594. if (int2 == num11)
  3595. {
  3596. System.Threading.Thread.Sleep(millisecondsTimeout2);
  3597. this.con.Send("b", new object[]
  3598. {
  3599. 0,
  3600. int3,
  3601. int4,
  3602. num12
  3603. });
  3604. }
  3605. }
  3606. }
  3607. if (this.RainCheckBox.Checked && int2 == this.RainID.Value)
  3608. {
  3609. int millisecondsTimeout3 = System.Convert.ToInt32(this.RainWait.Value);
  3610. int num13 = System.Convert.ToInt32(this.RainID.Value);
  3611. if (this.RainFunction1.Checked)
  3612. {
  3613. this.con.Send("b", new object[]
  3614. {
  3615. 0,
  3616. int3,
  3617. int4,
  3618. 0
  3619. });
  3620. System.Threading.Thread.Sleep(millisecondsTimeout3);
  3621. this.con.Send("b", new object[]
  3622. {
  3623. 0,
  3624. int3,
  3625. int4 + 1,
  3626. num13
  3627. });
  3628. System.Threading.Thread.Sleep(millisecondsTimeout3);
  3629. }
  3630. if (this.RainFunction2.Checked && this.blocks[0, int3, int4 + 1] == 0)
  3631. {
  3632. this.con.Send("b", new object[]
  3633. {
  3634. 0,
  3635. int3,
  3636. int4,
  3637. 0
  3638. });
  3639. System.Threading.Thread.Sleep(millisecondsTimeout3);
  3640. this.con.Send("b", new object[]
  3641. {
  3642. 0,
  3643. int3,
  3644. int4 + 1,
  3645. num13
  3646. });
  3647. System.Threading.Thread.Sleep(millisecondsTimeout3);
  3648. }
  3649. if (this.RainFunction3.Checked)
  3650. {
  3651. if (this.blocks[0, int3, int4 + 1] == 0)
  3652. {
  3653. this.con.Send("b", new object[]
  3654. {
  3655. 0,
  3656. int3,
  3657. int4,
  3658. 0
  3659. });
  3660. System.Threading.Thread.Sleep(millisecondsTimeout3);
  3661. this.con.Send("b", new object[]
  3662. {
  3663. 0,
  3664. int3,
  3665. int4 + 1,
  3666. num13
  3667. });
  3668. System.Threading.Thread.Sleep(millisecondsTimeout3);
  3669. }
  3670. else if (this.blocks[0, int3, int4 + 1] == num13)
  3671. {
  3672. this.con.Send("b", new object[]
  3673. {
  3674. 0,
  3675. int3,
  3676. int4,
  3677. 0
  3678. });
  3679. System.Threading.Thread.Sleep(millisecondsTimeout3);
  3680. }
  3681. }
  3682. if (this.RainFunction4.Checked)
  3683. {
  3684. if (this.blocks[0, int3, int4 + 1] == 0)
  3685. {
  3686. this.con.Send("b", new object[]
  3687. {
  3688. 0,
  3689. int3,
  3690. int4,
  3691. 0
  3692. });
  3693. System.Threading.Thread.Sleep(millisecondsTimeout3);
  3694. this.con.Send("b", new object[]
  3695. {
  3696. 0,
  3697. int3,
  3698. int4 + 1,
  3699. num13
  3700. });
  3701. System.Threading.Thread.Sleep(millisecondsTimeout3);
  3702. }
  3703. else
  3704. {
  3705. this.con.Send("b", new object[]
  3706. {
  3707. 0,
  3708. int3,
  3709. int4,
  3710. 0
  3711. });
  3712. System.Threading.Thread.Sleep(millisecondsTimeout3);
  3713. }
  3714. }
  3715. }
  3716. }
  3717. if (m.Type == "face" && this.KickNinjaRobberCheckbox.Checked && (m.GetInt(1u) == 12 || m.GetInt(1u) == 52) && this.users.ContainsKey(m.GetInt(0u)))
  3718. {
  3719. string str5 = this.users[m.GetInt(0u)];
  3720. this.con.Send("say", new object[]
  3721. {
  3722. "/kick " + str5 + " Ninjas and robbers are not allowed in this world."
  3723. });
  3724. }
  3725. if (m.Type == "c")
  3726. {
  3727. try
  3728. {
  3729. string text10 = this.users[m.GetInt(0u)];
  3730. if (this.WinsCoinCheck.Checked)
  3731. {
  3732. int amount = System.Convert.ToInt32(this.WinCoinAmount.Value);
  3733. this.addWins(text10, amount);
  3734. if (this.WinMessageCheck.Checked)
  3735. {
  3736. this.say(this.WinTB.Text.Replace("%username%", text10).Replace("%plays%", this.Plays.ToString()));
  3737. }
  3738. if (this.ResetAllCheckbox.Checked)
  3739. {
  3740. System.Threading.Thread.Sleep(5);
  3741. this.con.Send("say", new object[]
  3742. {
  3743. "/resetall"
  3744. });
  3745. }
  3746. if (this.ResetWinnerCheckbox.Checked)
  3747. {
  3748. System.Threading.Thread.Sleep(5);
  3749. this.con.Send("say", new object[]
  3750. {
  3751. "/reset " + text10
  3752. });
  3753. }
  3754. if (this.KillallCheckbox.Checked)
  3755. {
  3756. System.Threading.Thread.Sleep(5);
  3757. this.con.Send("say", new object[]
  3758. {
  3759. "/killall"
  3760. });
  3761. }
  3762. if (this.KillWinnerCheckbox.Checked)
  3763. {
  3764. System.Threading.Thread.Sleep(5);
  3765. this.con.Send("say", new object[]
  3766. {
  3767. "/kill " + text10
  3768. });
  3769. }
  3770. }
  3771. }
  3772. catch
  3773. {
  3774. }
  3775. }
  3776. if (m.Type == "k")
  3777. {
  3778. try
  3779. {
  3780. string text11 = this.users[m.GetInt(0u)];
  3781. if (this.WinsCrownCheck.Checked)
  3782. {
  3783. int amount2 = System.Convert.ToInt32(this.WinCrownAmount.Value);
  3784. this.addWins(text11, amount2);
  3785. if (this.WinMessageCheck.Checked)
  3786. {
  3787. this.say(this.WinTB.Text.Replace("%username%", text11).Replace("%plays%", this.Plays.ToString()));
  3788. }
  3789. if (this.ResetAllCheckbox.Checked)
  3790. {
  3791. System.Threading.Thread.Sleep(5);
  3792. this.con.Send("say", new object[]
  3793. {
  3794. "/resetall"
  3795. });
  3796. }
  3797. if (this.ResetWinnerCheckbox.Checked)
  3798. {
  3799. System.Threading.Thread.Sleep(5);
  3800. this.con.Send("say", new object[]
  3801. {
  3802. "/reset " + text11
  3803. });
  3804. }
  3805. if (this.KillallCheckbox.Checked)
  3806. {
  3807. System.Threading.Thread.Sleep(5);
  3808. this.con.Send("say", new object[]
  3809. {
  3810. "/killall"
  3811. });
  3812. }
  3813. if (this.KillWinnerCheckbox.Checked)
  3814. {
  3815. System.Threading.Thread.Sleep(5);
  3816. this.con.Send("say", new object[]
  3817. {
  3818. "/kill " + text11
  3819. });
  3820. }
  3821. }
  3822. }
  3823. catch
  3824. {
  3825. }
  3826. }
  3827. if (m.Type == "editRights" && this.users.ContainsKey(m.GetInt(0u)))
  3828. {
  3829. string text12 = this.users[m.GetInt(0u)];
  3830. if (m.GetBoolean(1u))
  3831. {
  3832. if (!this.editRights.Contains(text12.ToLower()))
  3833. {
  3834. this.editRights.Add(text12.ToLower());
  3835. }
  3836. }
  3837. else if (this.editRights.Contains(text12.ToLower()))
  3838. {
  3839. this.editRights.Remove(text12.ToLower());
  3840. }
  3841. if (this.AdminListbox.Items.Contains(text12))
  3842. {
  3843. this.AdminTeam(text12);
  3844. }
  3845. else if (this.Whitelist.Items.Contains(text12))
  3846. {
  3847. this.WhitelistedTeam(text12);
  3848. }
  3849. else if (m.GetBoolean(1u))
  3850. {
  3851. this.EditTeam(text12);
  3852. }
  3853. else
  3854. {
  3855. this.NormalTeam(text12);
  3856. }
  3857. }
  3858. if (m.Type == "updatemeta")
  3859. {
  3860. this.Plays = m.GetInt(2u);
  3861. }
  3862. if (m.Type == "tele")
  3863. {
  3864. m.GetBoolean(0u);
  3865. try
  3866. {
  3867. string text13 = this.users[m.GetInt(2u)];
  3868. if (this.AdminListbox.Items.Contains(text13))
  3869. {
  3870. this.AdminTeam(text13);
  3871. }
  3872. else if (this.Whitelist.Items.Contains(text13))
  3873. {
  3874. this.WhitelistedTeam(text13);
  3875. }
  3876. else if (this.editRights.Contains(text13))
  3877. {
  3878. this.EditTeam(text13);
  3879. }
  3880. else
  3881. {
  3882. this.NormalTeam(text13);
  3883. }
  3884. }
  3885. catch
  3886. {
  3887. }
  3888. }
  3889. }
  3890.  
  3891. private void Snake_checkBox_CheckedChanged(object sender, System.EventArgs e)
  3892. {
  3893. if (!this.SnakeOn)
  3894. {
  3895. this.SnakePanel.BackColor = Color.Green;
  3896. this.SnakeOn = true;
  3897. return;
  3898. }
  3899. this.SnakePanel.BackColor = Color.Gray;
  3900. this.SnakeOn = false;
  3901. }
  3902.  
  3903. private void RainCheckBox_CheckedChanged(object sender, System.EventArgs e)
  3904. {
  3905. if (!this.RainOn)
  3906. {
  3907. this.RainPanel.BackColor = Color.Green;
  3908. this.RainOn = true;
  3909. return;
  3910. }
  3911. this.RainPanel.BackColor = Color.Gray;
  3912. this.RainOn = false;
  3913. }
  3914.  
  3915. private void SaveButton_Click(object sender, System.EventArgs e)
  3916. {
  3917. if (this.isConnected)
  3918. {
  3919. this.con.Send("say", new object[]
  3920. {
  3921. "/save"
  3922. });
  3923. this.say("Level has been saved.");
  3924. }
  3925. }
  3926.  
  3927. private void LoadLevelButton_Click(object sender, System.EventArgs e)
  3928. {
  3929. if (this.isConnected)
  3930. {
  3931. this.con.Send("say", new object[]
  3932. {
  3933. "/loadlevel"
  3934. });
  3935. this.say("Level has been loaded.");
  3936. }
  3937. }
  3938.  
  3939. private void RespawnallButton_Click(object sender, System.EventArgs e)
  3940. {
  3941. if (this.isConnected)
  3942. {
  3943. this.con.Send("say", new object[]
  3944. {
  3945. "/respawnall"
  3946. });
  3947. this.say("Everybody has been respawned.");
  3948. }
  3949. }
  3950.  
  3951. private void KillAllbutton_Click(object sender, System.EventArgs e)
  3952. {
  3953. if (this.isConnected)
  3954. {
  3955. this.con.Send("say", new object[]
  3956. {
  3957. "/killall"
  3958. });
  3959. this.say("Everybody has been killed.");
  3960. }
  3961. }
  3962.  
  3963. private void TeleportBotButton_Click(object sender, System.EventArgs e)
  3964. {
  3965. int num = System.Convert.ToInt32(this.BotPosX.Value);
  3966. int num2 = System.Convert.ToInt32(this.BotPosY.Value);
  3967. this.con.Send("m", new object[]
  3968. {
  3969. num * 16,
  3970. num2 * 16,
  3971. 0,
  3972. 0,
  3973. 0,
  3974. 0,
  3975. 0,
  3976. 0,
  3977. 0,
  3978. false,
  3979. false,
  3980. 0
  3981. });
  3982. }
  3983.  
  3984. private void SmileyIDBox_ValueChanged(object sender, System.EventArgs e)
  3985. {
  3986. int num = System.Convert.ToInt32(this.SmileyIDBox.Value);
  3987. this.con.Send("smiley", new object[]
  3988. {
  3989. num
  3990. });
  3991. }
  3992.  
  3993. private void SmileyRandomeButton_Click(object sender, System.EventArgs e)
  3994. {
  3995. if (this.isEnabledRS)
  3996. {
  3997. this.RSmileyTimer.Stop();
  3998. this.isEnabledRS = false;
  3999. this.SmileyRandomeButton.Text = "Randomizer ON";
  4000. return;
  4001. }
  4002. this.RSmileyTimer.Start();
  4003. this.isEnabledRS = true;
  4004. this.SmileyRandomeButton.Text = "Randomizer OFF";
  4005. }
  4006.  
  4007. private void AuraRandomeButton_Click(object sender, System.EventArgs e)
  4008. {
  4009. if (this.isEnabledRA)
  4010. {
  4011. this.RAuraTimer.Stop();
  4012. this.isEnabledRA = false;
  4013. this.AuraRandomeButton.Text = "Randomizer ON";
  4014. return;
  4015. }
  4016. this.RAuraTimer.Start();
  4017. this.isEnabledRA = true;
  4018. this.AuraRandomeButton.Text = "Randomizer OFF";
  4019. }
  4020.  
  4021. private void AuraColorIDBox_ValueChanged(object sender, System.EventArgs e)
  4022. {
  4023. int num = System.Convert.ToInt32(this.AuraColorIDBox.Value);
  4024. int num2 = System.Convert.ToInt32(this.AuraShapeIDBox.Value);
  4025. this.con.Send("aura", new object[]
  4026. {
  4027. num2,
  4028. num
  4029. });
  4030. }
  4031.  
  4032. private void AuraShapeIDBox_ValueChanged(object sender, System.EventArgs e)
  4033. {
  4034. int num = System.Convert.ToInt32(this.AuraColorIDBox.Value);
  4035. int num2 = System.Convert.ToInt32(this.AuraShapeIDBox.Value);
  4036. this.con.Send("aura", new object[]
  4037. {
  4038. num2,
  4039. num
  4040. });
  4041. }
  4042.  
  4043. private void ToggleGodButton_Click(object sender, System.EventArgs e)
  4044. {
  4045. if (this.isGod)
  4046. {
  4047. this.con.Send("god", new object[]
  4048. {
  4049. false
  4050. });
  4051. this.isGod = false;
  4052. this.ToggleGodButton.Text = "God off";
  4053. return;
  4054. }
  4055. this.con.Send("god", new object[]
  4056. {
  4057. true
  4058. });
  4059. this.isGod = true;
  4060. this.ToggleGodButton.Text = "God on";
  4061. }
  4062.  
  4063. private void KickButton_Click(object sender, System.EventArgs e)
  4064. {
  4065. this.con.Send("say", new object[]
  4066. {
  4067. string.Concat(new object[]
  4068. {
  4069. "/kick ",
  4070. this.UsersListbox.SelectedItem,
  4071. " ",
  4072. this.KickMessageBox.Text
  4073. })
  4074. });
  4075. }
  4076.  
  4077. private void SendMessageButton_Click(object sender, System.EventArgs e)
  4078. {
  4079. this.con.Send("say", new object[]
  4080. {
  4081. string.Concat(new object[]
  4082. {
  4083. "/pm ",
  4084. this.UsersListbox.SelectedItem,
  4085. " ",
  4086. this.SendMessageBox.Text
  4087. })
  4088. });
  4089. }
  4090.  
  4091. private void GEditButton_Click(object sender, System.EventArgs e)
  4092. {
  4093. this.con.Send("say", new object[]
  4094. {
  4095. "/ge " + this.UsersListbox.SelectedItem
  4096. });
  4097. }
  4098.  
  4099. private void REdit_Click(object sender, System.EventArgs e)
  4100. {
  4101. this.con.Send("say", new object[]
  4102. {
  4103. "/re " + this.UsersListbox.SelectedItem
  4104. });
  4105. }
  4106.  
  4107. private void GGodButton_Click(object sender, System.EventArgs e)
  4108. {
  4109. this.con.Send("say", new object[]
  4110. {
  4111. "/givegod " + this.UsersListbox.SelectedItem
  4112. });
  4113. }
  4114.  
  4115. private void RGodButton_Click(object sender, System.EventArgs e)
  4116. {
  4117. this.con.Send("say", new object[]
  4118. {
  4119. "/removegod " + this.UsersListbox.SelectedItem
  4120. });
  4121. }
  4122.  
  4123. private void BanButton_Click(object sender, System.EventArgs e)
  4124. {
  4125. this.AdminListbox.Items.Add(this.UsersListbox.SelectedItem);
  4126. this.con.Send("say", new object[]
  4127. {
  4128. "/kick " + this.UsersListbox.SelectedItem + "You haven been banned from this world"
  4129. });
  4130. }
  4131.  
  4132. private void GiveGod_ALL_Click(object sender, System.EventArgs e)
  4133. {
  4134. if (MessageBox.Show("This will give everybody godmode in your world. Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
  4135. {
  4136. try
  4137. {
  4138. this.say("Everybody has been given godmode.");
  4139. foreach (string text in this.UsersListbox.Items)
  4140. {
  4141. string str = text;
  4142. this.con.Send("say", new object[]
  4143. {
  4144. "/givegod " + str
  4145. });
  4146. System.Threading.Thread.Sleep(100);
  4147. }
  4148. }
  4149. catch
  4150. {
  4151. }
  4152. }
  4153. }
  4154.  
  4155. private void RemoveGod_ALL_Click(object sender, System.EventArgs e)
  4156. {
  4157. if (MessageBox.Show("This will remove god from everybody in your world. Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
  4158. {
  4159. try
  4160. {
  4161. this.say("Got mode has been removed from everybody.");
  4162. foreach (string text in this.UsersListbox.Items)
  4163. {
  4164. string str = text;
  4165. this.con.Send("say", new object[]
  4166. {
  4167. "/removegod " + str
  4168. });
  4169. System.Threading.Thread.Sleep(1000);
  4170. }
  4171. }
  4172. catch
  4173. {
  4174. }
  4175. }
  4176. }
  4177.  
  4178. private void GiveEdit_ALL_Click(object sender, System.EventArgs e)
  4179. {
  4180. if (MessageBox.Show("This will give everybody edit. Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
  4181. {
  4182. try
  4183. {
  4184. this.say("Everybody has been given edit.");
  4185. foreach (string text in this.UsersListbox.Items)
  4186. {
  4187. string str = text;
  4188. this.con.Send("say", new object[]
  4189. {
  4190. "/ge " + str
  4191. });
  4192. System.Threading.Thread.Sleep(1000);
  4193. }
  4194. }
  4195. catch
  4196. {
  4197. }
  4198. }
  4199. }
  4200.  
  4201. private void RemoveEdit_ALL_Click(object sender, System.EventArgs e)
  4202. {
  4203. if (MessageBox.Show("This will remove edit for everybody. Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
  4204. {
  4205. try
  4206. {
  4207. foreach (string text in this.UsersListbox.Items)
  4208. {
  4209. string str = text;
  4210. this.con.Send("say", new object[]
  4211. {
  4212. "/re " + str
  4213. });
  4214. System.Threading.Thread.Sleep(1000);
  4215. }
  4216. }
  4217. catch
  4218. {
  4219. }
  4220. }
  4221. }
  4222.  
  4223. private void Kick_ALL_Click(object sender, System.EventArgs e)
  4224. {
  4225. if (MessageBox.Show("This will kick everybody! Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
  4226. {
  4227. try
  4228. {
  4229. foreach (string text in this.UsersListbox.Items)
  4230. {
  4231. string text2 = text;
  4232. if (text2 != this.WorldOwner)
  4233. {
  4234. this.con.Send("say", new object[]
  4235. {
  4236. "/kick " + text2 + " MRbot kicked everybody."
  4237. });
  4238. System.Threading.Thread.Sleep(1000);
  4239. }
  4240. else
  4241. {
  4242. this.sayPM(text2, "World owners get saved ;)");
  4243. }
  4244. }
  4245. }
  4246. catch
  4247. {
  4248. }
  4249. }
  4250. }
  4251.  
  4252. private void AAdmin_Click(object sender, System.EventArgs e)
  4253. {
  4254. if (this.UsersListbox2.SelectedItem != null && !this.AdminListbox.Items.Contains(this.UsersListbox2.SelectedItem))
  4255. {
  4256. this.AdminListbox.Items.Add(this.UsersListbox2.SelectedItem);
  4257. string text = this.UsersListbox2.Items[this.UsersListbox2.SelectedIndex].ToString();
  4258. if (this.AdminListbox.Items.Contains(text))
  4259. {
  4260. this.AdminTeam(text);
  4261. return;
  4262. }
  4263. if (this.Whitelist.Items.Contains(text))
  4264. {
  4265. this.WhitelistedTeam(text);
  4266. return;
  4267. }
  4268. if (this.editRights.Contains(text.ToLower()))
  4269. {
  4270. this.EditTeam(text);
  4271. return;
  4272. }
  4273. this.NormalTeam(text);
  4274. }
  4275. }
  4276.  
  4277. private void RAdmin_Click(object sender, System.EventArgs e)
  4278. {
  4279. if (this.AdminListbox.SelectedItem != null)
  4280. {
  4281. string text = this.AdminListbox.Items[this.AdminListbox.SelectedIndex].ToString();
  4282. if (this.Whitelist.Items.Contains(text))
  4283. {
  4284. this.WhitelistedTeam(text);
  4285. }
  4286. else if (this.editRights.Contains(text.ToLower()))
  4287. {
  4288. this.EditTeam(text);
  4289. }
  4290. else
  4291. {
  4292. this.NormalTeam(text);
  4293. }
  4294. this.AdminListbox.Items.Remove(this.AdminListbox.SelectedItem);
  4295. }
  4296. }
  4297.  
  4298. private void AddAdminManualButton_Click(object sender, System.EventArgs e)
  4299. {
  4300. this.AdminListbox.Items.Add(this.AddAdminManualTb.Text);
  4301. string text = this.AddAdminManualTb.Text.ToLower();
  4302. if (this.AdminListbox.Items.Contains(text))
  4303. {
  4304. this.AdminTeam(text);
  4305. return;
  4306. }
  4307. if (this.Whitelist.Items.Contains(text))
  4308. {
  4309. this.WhitelistedTeam(text);
  4310. return;
  4311. }
  4312. if (this.editRights.Contains(text.ToLower()))
  4313. {
  4314. this.EditTeam(text);
  4315. return;
  4316. }
  4317. this.NormalTeam(text);
  4318. }
  4319.  
  4320. private void save_Click(object sender, System.EventArgs e)
  4321. {
  4322. this.SaveListAdmins();
  4323. }
  4324.  
  4325. private void load_Click(object sender, System.EventArgs e)
  4326. {
  4327. this.LoadListAdmins();
  4328. }
  4329.  
  4330. private void AddBanButton_Click(object sender, System.EventArgs e)
  4331. {
  4332. if (this.BanNameTextBox.Text != "" && !this.BanList.Items.Contains(this.BanNameTextBox.Text.ToLower()))
  4333. {
  4334. this.BanList.Items.Add(this.BanNameTextBox.Text.ToLower());
  4335. }
  4336. }
  4337.  
  4338. private void RemoveBan_Click(object sender, System.EventArgs e)
  4339. {
  4340. this.BanList.Items.Remove(this.BanList.SelectedItem);
  4341. }
  4342.  
  4343. private void ClearBanlist_Click(object sender, System.EventArgs e)
  4344. {
  4345. if (MessageBox.Show("This will clear the banlist, confirm?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
  4346. {
  4347. this.BanList.Items.Clear();
  4348. }
  4349. }
  4350.  
  4351. private void AddWhiteButton_Click(object sender, System.EventArgs e)
  4352. {
  4353. if (this.WhitelistaddTextbox.Text != "" && !this.Whitelist.Items.Contains(this.WhitelistaddTextbox.Text.ToLower()))
  4354. {
  4355. string text = this.WhitelistaddTextbox.Text.ToLower();
  4356. if (this.AdminListbox.Items.Contains(text))
  4357. {
  4358. this.AdminTeam(text);
  4359. }
  4360. else if (this.Whitelist.Items.Contains(text))
  4361. {
  4362. this.WhitelistedTeam(text);
  4363. }
  4364. else if (this.editRights.Contains(text.ToLower()))
  4365. {
  4366. this.EditTeam(text);
  4367. }
  4368. else
  4369. {
  4370. this.NormalTeam(text);
  4371. }
  4372. this.Whitelist.Items.Add(this.WhitelistaddTextbox.Text.ToLower());
  4373. }
  4374. }
  4375.  
  4376. private void RemoveWhitButton_Click(object sender, System.EventArgs e)
  4377. {
  4378. if (this.Whitelist.SelectedItem != null)
  4379. {
  4380. string text = this.Whitelist.Items[this.Whitelist.SelectedIndex].ToString();
  4381. if (this.AdminListbox.Items.Contains(text))
  4382. {
  4383. this.AdminTeam(text);
  4384. }
  4385. else if (this.editRights.Contains(text.ToLower()))
  4386. {
  4387. this.EditTeam(text);
  4388. }
  4389. else
  4390. {
  4391. this.NormalTeam(text);
  4392. }
  4393. this.Whitelist.Items.Remove(this.Whitelist.SelectedItem);
  4394. }
  4395. }
  4396.  
  4397. private void ClearWhitelistButton_Click(object sender, System.EventArgs e)
  4398. {
  4399. if (MessageBox.Show("This will clear the whitelist, confirm?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
  4400. {
  4401. this.Whitelist.Items.Clear();
  4402. }
  4403. }
  4404.  
  4405. private void FillWorldButton_Click(object sender, System.EventArgs e)
  4406. {
  4407. this.FillWorldButton.Enabled = false;
  4408. this.backgroundWorkerFillWorld.RunWorkerAsync();
  4409. }
  4410.  
  4411. private void RSmileyTimer_Tick(object sender, System.EventArgs e)
  4412. {
  4413. int num = new System.Random().Next(0, 129);
  4414. this.con.Send("smiley", new object[]
  4415. {
  4416. num
  4417. });
  4418. }
  4419.  
  4420. private void RAuraTimer_Tick(object sender, System.EventArgs e)
  4421. {
  4422. int num = new System.Random().Next(0, 9);
  4423. int num2 = new System.Random().Next(0, 3);
  4424. this.con.Send("aura", new object[]
  4425. {
  4426. num2,
  4427. num
  4428. });
  4429. }
  4430.  
  4431. private void Main_FormClosed(object sender, FormClosedEventArgs e)
  4432. {
  4433. Settings.Default.email = this.email_textbox.Text;
  4434. Settings.Default.password = this.password_textbox.Text;
  4435. Settings.Default.world = this.world_textbox.Text;
  4436. Settings.Default.Join1 = this.Join1TB.Text;
  4437. Settings.Default.Left1 = this.LeftTB1.Text;
  4438. Settings.Default.PM1 = this.PMTB1.Text;
  4439. Settings.Default.BanMessage = this.BanMessage.Text;
  4440. Settings.Default.WinMessage = this.WinTB.Text;
  4441. Settings.Default.WhiteMessage = this.WhitelistKickBox.Text;
  4442. Settings.Default.Save();
  4443. this.SaveListAdmins();
  4444. this.SaveListBans();
  4445. this.SaveWhitelist();
  4446. }
  4447.  
  4448. private void Main_Load(object sender, System.EventArgs e)
  4449. {
  4450. this.email_textbox.Text = Settings.Default.email;
  4451. this.password_textbox.Text = Settings.Default.password;
  4452. this.world_textbox.Text = Settings.Default.world;
  4453. this.Join1TB.Text = Settings.Default.Join1;
  4454. this.LeftTB1.Text = Settings.Default.Left1;
  4455. this.PMTB1.Text = Settings.Default.PM1;
  4456. this.BanMessage.Text = Settings.Default.BanMessage;
  4457. this.WinTB.Text = Settings.Default.WinMessage;
  4458. this.WhitelistKickBox.Text = Settings.Default.WhiteMessage;
  4459. this.LoadListAdmins();
  4460. this.LoadListBans();
  4461. this.LoadWhitelist();
  4462. this.VersionLabel.Text = this.bversion;
  4463. this.updateChecking();
  4464. }
  4465.  
  4466. private void Main_Activated(object sender, System.EventArgs e)
  4467. {
  4468. try
  4469. {
  4470. if (this.firstLaunch)
  4471. {
  4472. while (!(Settings.Default.CustomeBackground == ""))
  4473. {
  4474. if (Settings.Default.CustomeBackground == "Space")
  4475. {
  4476. this.SpaceBackground.Checked = true;
  4477. Form.ActiveForm.BackgroundImage = Resources.Space;
  4478. goto IL_104;
  4479. }
  4480. if (System.IO.File.Exists(Settings.Default.CustomeBackground))
  4481. {
  4482. string[] source = new string[]
  4483. {
  4484. ".png",
  4485. ".jpg"
  4486. };
  4487. if (source.Contains(System.IO.Path.GetExtension(Settings.Default.CustomeBackground)))
  4488. {
  4489. this.DefaultBackground.Checked = false;
  4490. this.customeBackground.Checked = false;
  4491. Form.ActiveForm.BackgroundImage = Image.FromFile(Settings.Default.CustomeBackground);
  4492. goto IL_104;
  4493. }
  4494. Settings.Default.CustomeBackground = "";
  4495. }
  4496. else
  4497. {
  4498. Settings.Default.CustomeBackground = "";
  4499. }
  4500. }
  4501. this.DefaultBackground.Checked = true;
  4502. }
  4503. IL_104:
  4504. this.firstLaunch = false;
  4505. }
  4506. catch
  4507. {
  4508. this.firstLaunch = false;
  4509. MessageBox.Show("Something went wrong while loading the background. Sorry :(", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Hand);
  4510. }
  4511. }
  4512.  
  4513. private void Connect_EE_CheckedChanged(object sender, System.EventArgs e)
  4514. {
  4515. if (this.Connect_EE.Checked)
  4516. {
  4517. this.labelL1.Text = "E-Mail";
  4518. this.labelL2.Text = "Password";
  4519. this.labelL2.Visible = true;
  4520. this.password_textbox.Visible = true;
  4521. }
  4522. }
  4523.  
  4524. private void Connect_Kongregate_CheckedChanged(object sender, System.EventArgs e)
  4525. {
  4526. if (this.Connect_Kongregate.Checked)
  4527. {
  4528. this.labelL1.Text = "User-ID";
  4529. this.labelL2.Text = "Token";
  4530. this.labelL2.Visible = true;
  4531. this.password_textbox.Visible = true;
  4532. }
  4533. }
  4534.  
  4535. private void Connect_Facebook_CheckedChanged(object sender, System.EventArgs e)
  4536. {
  4537. if (this.Connect_Facebook.Checked)
  4538. {
  4539. this.labelL1.Text = "Token";
  4540. this.labelL2.Visible = false;
  4541. this.password_textbox.Visible = false;
  4542. }
  4543. }
  4544.  
  4545. private void CreditsButton_Click(object sender, System.EventArgs e)
  4546. {
  4547. Credits credits = new Credits();
  4548. credits.Show();
  4549. }
  4550.  
  4551. private void Site_Button_Click(object sender, System.EventArgs e)
  4552. {
  4553. Process.Start("http://marten22.weebly.com/mrbot.html");
  4554. }
  4555.  
  4556. private void backgroundWorkerFillWorld_DoWork(object sender, DoWorkEventArgs e)
  4557. {
  4558. int num = System.Convert.ToInt32(this.FillBlockId.Value);
  4559. int millisecondsTimeout = System.Convert.ToInt32(this.FillTimeout.Value);
  4560. int num2 = 0;
  4561. int i = 0;
  4562. while (i < this.height)
  4563. {
  4564. if (this.blocks[0, num2, i] != num)
  4565. {
  4566. this.con.Send("b", new object[]
  4567. {
  4568. 0,
  4569. num2,
  4570. i,
  4571. num
  4572. });
  4573. System.Threading.Thread.Sleep(millisecondsTimeout);
  4574. }
  4575. num2++;
  4576. if (num2 == this.width)
  4577. {
  4578. i++;
  4579. num2 = 0;
  4580. }
  4581. }
  4582. this.FillWorldButton.Enabled = true;
  4583. }
  4584.  
  4585. private void updateChecking()
  4586. {
  4587. WebClient webClient = new WebClient();
  4588. string text = webClient.DownloadString("http://marten22.weebly.com/mrbot-version.html");
  4589. string[] array = text.Split(new char[]
  4590. {
  4591. '\n'
  4592. });
  4593. string text2 = null;
  4594. int num = System.Convert.ToInt32(base.ProductVersion.Replace(".", string.Empty).Replace("0", string.Empty));
  4595. for (int i = 0; i < array.Length; i++)
  4596. {
  4597. if (array[i].Contains("<meta property=\"og:description\" content=\""))
  4598. {
  4599. text2 = array[i].ToString();
  4600. break;
  4601. }
  4602. }
  4603. if (text2 != null)
  4604. {
  4605. Match match = Regex.Match(text2, "[0-9]{0,32}\\.[0-9]{0,32}");
  4606. if (match.Success)
  4607. {
  4608. int num2 = System.Convert.ToInt32(match.Value.ToString().Replace(".", string.Empty).Replace("0", string.Empty));
  4609. if (num2 > num)
  4610. {
  4611. DialogResult dialogResult = MessageBox.Show("A new version is available. Do you want to download it?", "Info", MessageBoxButtons.YesNo);
  4612. if (dialogResult == DialogResult.Yes)
  4613. {
  4614. Process.Start("http://marten22.weebly.com/mrbot.html");
  4615. return;
  4616. }
  4617. }
  4618. }
  4619. }
  4620. else
  4621. {
  4622. MessageBox.Show("Couldn't find the version information.", "Info", MessageBoxButtons.OK);
  4623. }
  4624. }
  4625.  
  4626. public void AdminTeam(string username)
  4627. {
  4628. if (this.EnableTeamColors.Checked)
  4629. {
  4630. if (this.Radio_A_Red.Checked)
  4631. {
  4632. this.con.Send("say", new object[]
  4633. {
  4634. "/setteam " + username + " red"
  4635. });
  4636. return;
  4637. }
  4638. if (this.Radio_A_B.Checked)
  4639. {
  4640. this.con.Send("say", new object[]
  4641. {
  4642. "/setteam " + username + " blue"
  4643. });
  4644. return;
  4645. }
  4646. if (this.Radio_A_G.Checked)
  4647. {
  4648. this.con.Send("say", new object[]
  4649. {
  4650. "/setteam " + username + " green"
  4651. });
  4652. return;
  4653. }
  4654. if (this.Radio_A_C.Checked)
  4655. {
  4656. this.con.Send("say", new object[]
  4657. {
  4658. "/setteam " + username + " cyan"
  4659. });
  4660. return;
  4661. }
  4662. if (this.Radio_A_P.Checked)
  4663. {
  4664. this.con.Send("say", new object[]
  4665. {
  4666. "/setteam " + username + " magenta"
  4667. });
  4668. return;
  4669. }
  4670. if (this.Radio_A_Y.Checked)
  4671. {
  4672. this.con.Send("say", new object[]
  4673. {
  4674. "/setteam " + username + " yellow"
  4675. });
  4676. return;
  4677. }
  4678. if (this.Radio_A_N.Checked)
  4679. {
  4680. this.con.Send("say", new object[]
  4681. {
  4682. "/setteam " + username + " none"
  4683. });
  4684. }
  4685. }
  4686. }
  4687.  
  4688. public void WhitelistedTeam(string username)
  4689. {
  4690. if (this.EnableTeamColors.Checked)
  4691. {
  4692. if (this.Radio_W_R.Checked)
  4693. {
  4694. this.con.Send("say", new object[]
  4695. {
  4696. "/setteam " + username + " red"
  4697. });
  4698. return;
  4699. }
  4700. if (this.Radio_W_B.Checked)
  4701. {
  4702. this.con.Send("say", new object[]
  4703. {
  4704. "/setteam " + username + " blue"
  4705. });
  4706. return;
  4707. }
  4708. if (this.Radio_W_G.Checked)
  4709. {
  4710. this.con.Send("say", new object[]
  4711. {
  4712. "/setteam " + username + " green"
  4713. });
  4714. return;
  4715. }
  4716. if (this.Radio_W_C.Checked)
  4717. {
  4718. this.con.Send("say", new object[]
  4719. {
  4720. "/setteam " + username + " cyan"
  4721. });
  4722. return;
  4723. }
  4724. if (this.Radio_W_P.Checked)
  4725. {
  4726. this.con.Send("say", new object[]
  4727. {
  4728. "/setteam " + username + " magenta"
  4729. });
  4730. return;
  4731. }
  4732. if (this.Radio_W_Y.Checked)
  4733. {
  4734. this.con.Send("say", new object[]
  4735. {
  4736. "/setteam " + username + " yellow"
  4737. });
  4738. return;
  4739. }
  4740. if (this.Radio_W_N.Checked)
  4741. {
  4742. this.con.Send("say", new object[]
  4743. {
  4744. "/setteam " + username + " none"
  4745. });
  4746. }
  4747. }
  4748. }
  4749.  
  4750. public void NormalTeam(string username)
  4751. {
  4752. if (this.EnableTeamColors.Checked)
  4753. {
  4754. if (this.Radio_N_R.Checked)
  4755. {
  4756. this.con.Send("say", new object[]
  4757. {
  4758. "/setteam " + username + " red"
  4759. });
  4760. return;
  4761. }
  4762. if (this.Radio_N_B.Checked)
  4763. {
  4764. this.con.Send("say", new object[]
  4765. {
  4766. "/setteam " + username + " blue"
  4767. });
  4768. return;
  4769. }
  4770. if (this.Radio_N_G.Checked)
  4771. {
  4772. this.con.Send("say", new object[]
  4773. {
  4774. "/setteam " + username + " green"
  4775. });
  4776. return;
  4777. }
  4778. if (this.Radio_N_C.Checked)
  4779. {
  4780. this.con.Send("say", new object[]
  4781. {
  4782. "/setteam " + username + " cyan"
  4783. });
  4784. return;
  4785. }
  4786. if (this.Radio_N_P.Checked)
  4787. {
  4788. this.con.Send("say", new object[]
  4789. {
  4790. "/setteam " + username + " magenta"
  4791. });
  4792. return;
  4793. }
  4794. if (this.Radio_N_Y.Checked)
  4795. {
  4796. this.con.Send("say", new object[]
  4797. {
  4798. "/setteam " + username + " yellow"
  4799. });
  4800. return;
  4801. }
  4802. if (this.Radio_N_N.Checked)
  4803. {
  4804. this.con.Send("say", new object[]
  4805. {
  4806. "/setteam " + username + " none"
  4807. });
  4808. }
  4809. }
  4810. }
  4811.  
  4812. public void EditTeam(string username)
  4813. {
  4814. if (this.EnableTeamColors.Checked)
  4815. {
  4816. if (this.Radio_H_R.Checked)
  4817. {
  4818. this.con.Send("say", new object[]
  4819. {
  4820. "/setteam " + username + " red"
  4821. });
  4822. return;
  4823. }
  4824. if (this.Radio_H_B.Checked)
  4825. {
  4826. this.con.Send("say", new object[]
  4827. {
  4828. "/setteam " + username + " blue"
  4829. });
  4830. return;
  4831. }
  4832. if (this.Radio_H_G.Checked)
  4833. {
  4834. this.con.Send("say", new object[]
  4835. {
  4836. "/setteam " + username + " green"
  4837. });
  4838. return;
  4839. }
  4840. if (this.Radio_H_C.Checked)
  4841. {
  4842. this.con.Send("say", new object[]
  4843. {
  4844. "/setteam " + username + " cyan"
  4845. });
  4846. return;
  4847. }
  4848. if (this.Radio_H_P.Checked)
  4849. {
  4850. this.con.Send("say", new object[]
  4851. {
  4852. "/setteam " + username + " magenta"
  4853. });
  4854. return;
  4855. }
  4856. if (this.Radio_H_Y.Checked)
  4857. {
  4858. this.con.Send("say", new object[]
  4859. {
  4860. "/setteam " + username + " yellow"
  4861. });
  4862. return;
  4863. }
  4864. if (this.Radio_H_N.Checked)
  4865. {
  4866. this.con.Send("say", new object[]
  4867. {
  4868. "/setteam " + username + " none"
  4869. });
  4870. }
  4871. }
  4872. }
  4873.  
  4874. private void defaultToolStripMenuItem_Click(object sender, System.EventArgs e)
  4875. {
  4876. this.SpaceBackground.Checked = false;
  4877. this.customeBackground.Checked = false;
  4878. Form.ActiveForm.BackgroundImage = null;
  4879. Settings.Default.CustomeBackground = "";
  4880. }
  4881.  
  4882. private void SpaceBackground_Click(object sender, System.EventArgs e)
  4883. {
  4884. this.DefaultBackground.Checked = false;
  4885. this.customeBackground.Checked = false;
  4886. Form.ActiveForm.BackgroundImage = Resources.Space;
  4887. Settings.Default.CustomeBackground = "Space";
  4888. }
  4889.  
  4890. private void customeToolStripMenuItem_Click(object sender, System.EventArgs e)
  4891. {
  4892. this.openBackgroundDialog.Title = "Choose a picture";
  4893. this.openBackgroundDialog.FileName = "picture";
  4894. this.openBackgroundDialog.InitialDirectory = System.Environment.CurrentDirectory;
  4895. if (this.openBackgroundDialog.ShowDialog() != DialogResult.OK)
  4896. {
  4897. MessageBox.Show("Something went wrong. Did you select a file?", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
  4898. return;
  4899. }
  4900. if (!System.IO.File.Exists(this.openBackgroundDialog.FileName))
  4901. {
  4902. MessageBox.Show("File does not exist.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
  4903. return;
  4904. }
  4905. string[] source = new string[]
  4906. {
  4907. ".png",
  4908. ".jpg"
  4909. };
  4910. if (source.Contains(System.IO.Path.GetExtension(this.openBackgroundDialog.FileName)))
  4911. {
  4912. this.DefaultBackground.Checked = false;
  4913. this.SpaceBackground.Checked = false;
  4914. this.customeBackground.Checked = true;
  4915. Form.ActiveForm.BackgroundImage = Image.FromFile(this.openBackgroundDialog.FileName);
  4916. Settings.Default.CustomeBackground = this.openBackgroundDialog.FileName;
  4917. return;
  4918. }
  4919. MessageBox.Show("File has to be of the type .png or .jpg", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
  4920. }
  4921.  
  4922. private void button1_Click(object sender, System.EventArgs e)
  4923. {
  4924. InfoForm infoForm = new InfoForm();
  4925. infoForm.Show();
  4926. }
  4927.  
  4928. private void button2_Click(object sender, System.EventArgs e)
  4929. {
  4930. InfoForm infoForm = new InfoForm();
  4931. infoForm.Show();
  4932. }
  4933. }
  4934. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement