Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using EEbot;
- using EEbot.Properties;
- using Ini;
- using parsing;
- using PlayerIOClient;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Drawing;
- using System.IO;
- using System.Linq;
- using System.Net;
- using System.Text.RegularExpressions;
- using System.Threading;
- using System.Windows.Forms;
- namespace WindowsFormsApplication1
- {
- public class Main : Form
- {
- public class block
- {
- public int layer
- {
- get;
- set;
- }
- public int x
- {
- get;
- set;
- }
- public int y
- {
- get;
- set;
- }
- public int bid
- {
- get;
- set;
- }
- public object[] args
- {
- get;
- set;
- }
- }
- private IContainer components;
- private Panel panel1;
- private TextBox email_textbox;
- private Label label2;
- private Label labelL1;
- private Label labelL2;
- private TextBox password_textbox;
- private Button connect_button;
- private Label label4;
- private TextBox world_textbox;
- private TabControl tabControlMenu;
- private TabPage tabPageJoinLeave;
- private TabPage tabPageSnakeRain;
- private Label label6;
- private NumericUpDown SnakeID2;
- private NumericUpDown SnakeID3;
- private NumericUpDown SnakeID1;
- private Label label5;
- private Label label7;
- private NumericUpDown SnakeWait;
- private Label label8;
- private CheckBox Snake_checkBox;
- private CheckBox SnakeFunction1;
- private TextBox Join1TB;
- private CheckBox JoinMessageCheck;
- private TextBox LeftTB1;
- private CheckBox LeaveMessageCheck;
- private Panel SnakePanel;
- private Panel panel2;
- private Label label12;
- private Button SaveButton;
- private Label label11;
- private Button KillAllbutton;
- private Button RespawnallButton;
- private Button LoadLevelButton;
- private TabPage tabPageBotSettings;
- private PictureBox pictureBox1;
- private Label label13;
- private NumericUpDown BotPosX;
- private Label label15;
- private Label label14;
- private NumericUpDown BotPosY;
- private Button TeleportBotButton;
- private NumericUpDown SmileyIDBox;
- private Label label18;
- private Label label17;
- private Button ToggleGodButton;
- private Label label19;
- private TabPage tabPageUsers;
- private ListBox UsersListbox;
- private TextBox SendMessageBox;
- private Label label22;
- private Button SendMessageButton;
- private Button REdit;
- private Button GEditButton;
- private Label label21;
- private TextBox KickMessageBox;
- private Label label20;
- private Button KickButton;
- private Button RGodButton;
- private Button GGodButton;
- private TabPage tabPageAdmins;
- private ListBox AdminListbox;
- private ListBox UsersListbox2;
- private Label label27;
- private Label label26;
- private Button RAdmin;
- private Button AAdmin;
- private Button AddAdminManualButton;
- private TextBox AddAdminManualTb;
- private Button SmileyRandomeButton;
- private System.Windows.Forms.Timer RSmileyTimer;
- private Label label30;
- private Button AuraRandomeButton;
- private Label label29;
- private NumericUpDown AuraShapeIDBox;
- private NumericUpDown AuraColorIDBox;
- private Label label28;
- private System.Windows.Forms.Timer RAuraTimer;
- private NumericUpDown RainWait;
- private Label label34;
- private NumericUpDown RainID;
- private Label label33;
- private Panel RainPanel;
- private CheckBox RainCheckBox;
- private Label label32;
- private Label label31;
- private RadioButton RainFunction4;
- private RadioButton RainFunction3;
- private RadioButton RainFunction1;
- private RadioButton RainFunction2;
- private TabPage tabPageOthers;
- private CheckBox ResetAllCheckbox;
- private Label label36;
- private NumericUpDown WinCrownAmount;
- private NumericUpDown WinCoinAmount;
- private CheckBox WinsCrownCheck;
- private CheckBox WinsCoinCheck;
- private CheckBox WinsCheck;
- private Label label35;
- private TextBox WinTB;
- private CheckBox WinMessageCheck;
- private ToolTip toolTipAdmin;
- private Label label16;
- private Button load;
- private Button save;
- private CheckBox KickGuestCheckBox;
- private TabPage tabPageBans;
- private CheckBox EditJoinCheckbox;
- private CheckBox KickNinjaRobberCheckbox;
- private TextBox PMTB1;
- private CheckBox PMjoinMessage;
- private Label label40;
- private Button RemoveBan;
- private Button AddBanButton;
- private ListBox BanList;
- private Label label38;
- private Label label41;
- private TextBox BanMessage;
- private Button BanButton;
- private Label label42;
- private TextBox BanNameTextBox;
- private CheckBox GiveGodOnJoinCheck;
- private Label label44;
- private Label label43;
- private Button ClearBanlist;
- private Label label23;
- private NumericUpDown FillBlockId;
- private Button FillWorldButton;
- private NumericUpDown FillTimeout;
- private Label label24;
- public BackgroundWorker backgroundWorkerFillWorld;
- private RadioButton Connect_Facebook;
- private RadioButton Connect_Kongregate;
- private RadioButton Connect_EE;
- private Button GiveEdit_ALL;
- private Button RemoveGod_ALL;
- private Button GiveGod_ALL;
- private Label label1;
- private Button Kick_ALL;
- private Button RemoveEdit_ALL;
- private Button Site_Button;
- private Button CreditsButton;
- private Label label3;
- private Label VersionLabel;
- private TabPage tabPage1;
- private Button ClearWhitelistButton;
- private Label label25;
- private TextBox WhitelistaddTextbox;
- private TextBox WhitelistKickBox;
- private Label label45;
- private Button RemoveWhitButton;
- private Button AddWhiteButton;
- private ListBox Whitelist;
- private Label label46;
- private CheckBox EnableWithlistCheck;
- private CheckBox AllowFriendsCheck;
- private CheckBox AllowGoldCheck;
- private TabPage tabPage2;
- private CheckBox EnableTeamColors;
- private GroupBox groupBox4;
- private RadioButton Radio_H_N;
- private RadioButton Radio_H_C;
- private RadioButton Radio_H_G;
- private RadioButton Radio_H_B;
- private RadioButton Radio_H_P;
- private RadioButton Radio_H_R;
- private GroupBox groupBox3;
- private RadioButton Radio_N_N;
- private RadioButton Radio_N_C;
- private RadioButton Radio_N_G;
- private RadioButton Radio_N_B;
- private RadioButton Radio_N_P;
- private RadioButton Radio_N_R;
- private GroupBox groupBox2;
- private RadioButton Radio_W_N;
- private RadioButton Radio_W_C;
- private RadioButton Radio_W_G;
- private RadioButton Radio_W_B;
- private RadioButton Radio_W_P;
- private RadioButton Radio_W_R;
- private GroupBox groupBox1;
- private RadioButton Radio_A_N;
- private RadioButton Radio_A_C;
- private RadioButton Radio_A_G;
- private RadioButton Radio_A_B;
- private RadioButton Radio_A_P;
- private RadioButton Radio_A_Red;
- private Label label47;
- private RadioButton Radio_A_Y;
- private RadioButton Radio_W_Y;
- private RadioButton Radio_N_Y;
- private RadioButton Radio_H_Y;
- private Label label52;
- private Label label51;
- private Label label50;
- private Label label49;
- private Label label48;
- private CheckBox KillWinnerCheckbox;
- private CheckBox ResetWinnerCheckbox;
- private CheckBox KillallCheckbox;
- private MenuStrip menuStripMain;
- private ToolStripMenuItem OptionsDropdown;
- private ToolStripMenuItem BackgroundOptions;
- private ToolStripMenuItem DefaultBackground;
- private ToolStripMenuItem SpaceBackground;
- private ToolStripMenuItem customeBackground;
- private OpenFileDialog openBackgroundDialog;
- private Button ParametersHelp2;
- private Label label55;
- private Label label53;
- private Label label39;
- private Label label10;
- private Label label54;
- private Label label9;
- private Label label56;
- private Button ParametersHelp1;
- public Connection con;
- public Client client;
- public bool isConnected;
- public bool isGod;
- public bool isEnabledRS;
- public bool isEnabledRA;
- public System.Collections.Generic.List<Main.block> blockL = new System.Collections.Generic.List<Main.block>();
- public int[,,] blocks = new int[2, 400, 650];
- public int height;
- public int width;
- public string prefix = "[MRbot]: ";
- public string bversion = Application.ProductVersion;
- public string WorldOwner;
- public bool SnakeOn;
- public bool RainOn;
- public System.Collections.Generic.Dictionary<int, string> users = new System.Collections.Generic.Dictionary<int, string>();
- public string SavePath = ".\\";
- public IniFile wins = new IniFile(System.Environment.CurrentDirectory + "\\wins");
- public System.Collections.Generic.List<string> editRights = new System.Collections.Generic.List<string>();
- public bool firstLaunch = true;
- public int Plays;
- protected override void Dispose(bool disposing)
- {
- if (disposing && this.components != null)
- {
- this.components.Dispose();
- }
- base.Dispose(disposing);
- }
- private void InitializeComponent()
- {
- this.components = new Container();
- ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Main));
- this.panel1 = new Panel();
- this.Connect_Facebook = new RadioButton();
- this.Connect_Kongregate = new RadioButton();
- this.Connect_EE = new RadioButton();
- this.connect_button = new Button();
- this.label4 = new Label();
- this.world_textbox = new TextBox();
- this.labelL2 = new Label();
- this.password_textbox = new TextBox();
- this.email_textbox = new TextBox();
- this.label2 = new Label();
- this.labelL1 = new Label();
- this.tabControlMenu = new TabControl();
- this.tabPageJoinLeave = new TabPage();
- this.label56 = new Label();
- this.ParametersHelp2 = new Button();
- this.label55 = new Label();
- this.label53 = new Label();
- this.label39 = new Label();
- this.label10 = new Label();
- this.label54 = new Label();
- this.label9 = new Label();
- this.GiveGodOnJoinCheck = new CheckBox();
- this.PMTB1 = new TextBox();
- this.PMjoinMessage = new CheckBox();
- this.EditJoinCheckbox = new CheckBox();
- this.KickGuestCheckBox = new CheckBox();
- this.LeftTB1 = new TextBox();
- this.LeaveMessageCheck = new CheckBox();
- this.Join1TB = new TextBox();
- this.JoinMessageCheck = new CheckBox();
- this.tabPageSnakeRain = new TabPage();
- this.RainFunction2 = new RadioButton();
- this.RainFunction4 = new RadioButton();
- this.RainFunction3 = new RadioButton();
- this.RainFunction1 = new RadioButton();
- this.RainWait = new NumericUpDown();
- this.label34 = new Label();
- this.RainID = new NumericUpDown();
- this.label33 = new Label();
- this.RainPanel = new Panel();
- this.RainCheckBox = new CheckBox();
- this.label32 = new Label();
- this.label31 = new Label();
- this.SnakeFunction1 = new CheckBox();
- this.SnakePanel = new Panel();
- this.Snake_checkBox = new CheckBox();
- this.SnakeWait = new NumericUpDown();
- this.label8 = new Label();
- this.label7 = new Label();
- this.label6 = new Label();
- this.SnakeID2 = new NumericUpDown();
- this.SnakeID3 = new NumericUpDown();
- this.SnakeID1 = new NumericUpDown();
- this.label5 = new Label();
- this.tabPageBotSettings = new TabPage();
- this.label16 = new Label();
- this.label30 = new Label();
- this.AuraRandomeButton = new Button();
- this.label29 = new Label();
- this.AuraShapeIDBox = new NumericUpDown();
- this.AuraColorIDBox = new NumericUpDown();
- this.label28 = new Label();
- this.SmileyRandomeButton = new Button();
- this.ToggleGodButton = new Button();
- this.label19 = new Label();
- this.SmileyIDBox = new NumericUpDown();
- this.label18 = new Label();
- this.label17 = new Label();
- this.BotPosY = new NumericUpDown();
- this.TeleportBotButton = new Button();
- this.BotPosX = new NumericUpDown();
- this.label15 = new Label();
- this.label14 = new Label();
- this.label13 = new Label();
- this.tabPageUsers = new TabPage();
- this.Kick_ALL = new Button();
- this.RemoveEdit_ALL = new Button();
- this.GiveEdit_ALL = new Button();
- this.RemoveGod_ALL = new Button();
- this.GiveGod_ALL = new Button();
- this.label1 = new Label();
- this.BanButton = new Button();
- this.RGodButton = new Button();
- this.GGodButton = new Button();
- this.SendMessageBox = new TextBox();
- this.label22 = new Label();
- this.SendMessageButton = new Button();
- this.REdit = new Button();
- this.GEditButton = new Button();
- this.label21 = new Label();
- this.KickMessageBox = new TextBox();
- this.label20 = new Label();
- this.KickButton = new Button();
- this.UsersListbox = new ListBox();
- this.tabPageAdmins = new TabPage();
- this.label44 = new Label();
- this.label43 = new Label();
- this.load = new Button();
- this.save = new Button();
- this.AddAdminManualButton = new Button();
- this.AddAdminManualTb = new TextBox();
- this.label27 = new Label();
- this.label26 = new Label();
- this.RAdmin = new Button();
- this.AAdmin = new Button();
- this.AdminListbox = new ListBox();
- this.UsersListbox2 = new ListBox();
- this.tabPageBans = new TabPage();
- this.ClearBanlist = new Button();
- this.label42 = new Label();
- this.BanNameTextBox = new TextBox();
- this.BanMessage = new TextBox();
- this.label41 = new Label();
- this.RemoveBan = new Button();
- this.AddBanButton = new Button();
- this.BanList = new ListBox();
- this.label38 = new Label();
- this.tabPage1 = new TabPage();
- this.AllowGoldCheck = new CheckBox();
- this.EnableWithlistCheck = new CheckBox();
- this.AllowFriendsCheck = new CheckBox();
- this.ClearWhitelistButton = new Button();
- this.label25 = new Label();
- this.WhitelistaddTextbox = new TextBox();
- this.WhitelistKickBox = new TextBox();
- this.label45 = new Label();
- this.RemoveWhitButton = new Button();
- this.AddWhiteButton = new Button();
- this.Whitelist = new ListBox();
- this.label46 = new Label();
- this.tabPage2 = new TabPage();
- this.label52 = new Label();
- this.label51 = new Label();
- this.label50 = new Label();
- this.label49 = new Label();
- this.label48 = new Label();
- this.label47 = new Label();
- this.groupBox4 = new GroupBox();
- this.Radio_H_Y = new RadioButton();
- this.Radio_H_N = new RadioButton();
- this.Radio_H_C = new RadioButton();
- this.Radio_H_G = new RadioButton();
- this.Radio_H_B = new RadioButton();
- this.Radio_H_P = new RadioButton();
- this.Radio_H_R = new RadioButton();
- this.groupBox3 = new GroupBox();
- this.Radio_N_Y = new RadioButton();
- this.Radio_N_N = new RadioButton();
- this.Radio_N_C = new RadioButton();
- this.Radio_N_G = new RadioButton();
- this.Radio_N_B = new RadioButton();
- this.Radio_N_P = new RadioButton();
- this.Radio_N_R = new RadioButton();
- this.groupBox2 = new GroupBox();
- this.Radio_W_Y = new RadioButton();
- this.Radio_W_N = new RadioButton();
- this.Radio_W_C = new RadioButton();
- this.Radio_W_G = new RadioButton();
- this.Radio_W_B = new RadioButton();
- this.Radio_W_P = new RadioButton();
- this.Radio_W_R = new RadioButton();
- this.groupBox1 = new GroupBox();
- this.Radio_A_Y = new RadioButton();
- this.Radio_A_N = new RadioButton();
- this.Radio_A_C = new RadioButton();
- this.Radio_A_G = new RadioButton();
- this.Radio_A_B = new RadioButton();
- this.Radio_A_P = new RadioButton();
- this.Radio_A_Red = new RadioButton();
- this.EnableTeamColors = new CheckBox();
- this.tabPageOthers = new TabPage();
- this.ParametersHelp1 = new Button();
- this.KillWinnerCheckbox = new CheckBox();
- this.ResetWinnerCheckbox = new CheckBox();
- this.KillallCheckbox = new CheckBox();
- this.FillTimeout = new NumericUpDown();
- this.label24 = new Label();
- this.label23 = new Label();
- this.FillBlockId = new NumericUpDown();
- this.FillWorldButton = new Button();
- this.label40 = new Label();
- this.KickNinjaRobberCheckbox = new CheckBox();
- this.WinTB = new TextBox();
- this.WinMessageCheck = new CheckBox();
- this.ResetAllCheckbox = new CheckBox();
- this.label36 = new Label();
- this.WinCrownAmount = new NumericUpDown();
- this.WinCoinAmount = new NumericUpDown();
- this.WinsCrownCheck = new CheckBox();
- this.WinsCoinCheck = new CheckBox();
- this.WinsCheck = new CheckBox();
- this.label35 = new Label();
- this.panel2 = new Panel();
- this.KillAllbutton = new Button();
- this.RespawnallButton = new Button();
- this.LoadLevelButton = new Button();
- this.label12 = new Label();
- this.SaveButton = new Button();
- this.label11 = new Label();
- this.RSmileyTimer = new System.Windows.Forms.Timer(this.components);
- this.RAuraTimer = new System.Windows.Forms.Timer(this.components);
- this.toolTipAdmin = new ToolTip(this.components);
- this.backgroundWorkerFillWorld = new BackgroundWorker();
- this.Site_Button = new Button();
- this.CreditsButton = new Button();
- this.label3 = new Label();
- this.VersionLabel = new Label();
- this.menuStripMain = new MenuStrip();
- this.OptionsDropdown = new ToolStripMenuItem();
- this.BackgroundOptions = new ToolStripMenuItem();
- this.DefaultBackground = new ToolStripMenuItem();
- this.SpaceBackground = new ToolStripMenuItem();
- this.customeBackground = new ToolStripMenuItem();
- this.openBackgroundDialog = new OpenFileDialog();
- this.pictureBox1 = new PictureBox();
- this.panel1.SuspendLayout();
- this.tabControlMenu.SuspendLayout();
- this.tabPageJoinLeave.SuspendLayout();
- this.tabPageSnakeRain.SuspendLayout();
- ((ISupportInitialize)this.RainWait).BeginInit();
- ((ISupportInitialize)this.RainID).BeginInit();
- this.RainPanel.SuspendLayout();
- this.SnakePanel.SuspendLayout();
- ((ISupportInitialize)this.SnakeWait).BeginInit();
- ((ISupportInitialize)this.SnakeID2).BeginInit();
- ((ISupportInitialize)this.SnakeID3).BeginInit();
- ((ISupportInitialize)this.SnakeID1).BeginInit();
- this.tabPageBotSettings.SuspendLayout();
- ((ISupportInitialize)this.AuraShapeIDBox).BeginInit();
- ((ISupportInitialize)this.AuraColorIDBox).BeginInit();
- ((ISupportInitialize)this.SmileyIDBox).BeginInit();
- ((ISupportInitialize)this.BotPosY).BeginInit();
- ((ISupportInitialize)this.BotPosX).BeginInit();
- this.tabPageUsers.SuspendLayout();
- this.tabPageAdmins.SuspendLayout();
- this.tabPageBans.SuspendLayout();
- this.tabPage1.SuspendLayout();
- this.tabPage2.SuspendLayout();
- this.groupBox4.SuspendLayout();
- this.groupBox3.SuspendLayout();
- this.groupBox2.SuspendLayout();
- this.groupBox1.SuspendLayout();
- this.tabPageOthers.SuspendLayout();
- ((ISupportInitialize)this.FillTimeout).BeginInit();
- ((ISupportInitialize)this.FillBlockId).BeginInit();
- ((ISupportInitialize)this.WinCrownAmount).BeginInit();
- ((ISupportInitialize)this.WinCoinAmount).BeginInit();
- this.panel2.SuspendLayout();
- this.menuStripMain.SuspendLayout();
- ((ISupportInitialize)this.pictureBox1).BeginInit();
- base.SuspendLayout();
- this.panel1.BackColor = SystemColors.ActiveBorder;
- this.panel1.Controls.Add(this.Connect_Facebook);
- this.panel1.Controls.Add(this.Connect_Kongregate);
- this.panel1.Controls.Add(this.Connect_EE);
- this.panel1.Controls.Add(this.connect_button);
- this.panel1.Controls.Add(this.label4);
- this.panel1.Controls.Add(this.world_textbox);
- this.panel1.Controls.Add(this.labelL2);
- this.panel1.Controls.Add(this.password_textbox);
- this.panel1.Controls.Add(this.email_textbox);
- this.panel1.Controls.Add(this.label2);
- this.panel1.Controls.Add(this.labelL1);
- this.panel1.Location = new Point(13, 29);
- this.panel1.Name = "panel1";
- this.panel1.Size = new Size(279, 173);
- this.panel1.TabIndex = 0;
- this.Connect_Facebook.AutoSize = true;
- this.Connect_Facebook.Location = new Point(174, 26);
- this.Connect_Facebook.Name = "Connect_Facebook";
- this.Connect_Facebook.Size = new Size(96, 17);
- this.Connect_Facebook.TabIndex = 10;
- this.Connect_Facebook.Text = "Facebook.com";
- this.Connect_Facebook.UseVisualStyleBackColor = true;
- this.Connect_Facebook.CheckedChanged += new System.EventHandler(this.Connect_Facebook_CheckedChanged);
- this.Connect_Kongregate.AutoSize = true;
- this.Connect_Kongregate.Location = new Point(66, 26);
- this.Connect_Kongregate.Name = "Connect_Kongregate";
- this.Connect_Kongregate.Size = new Size(102, 17);
- this.Connect_Kongregate.TabIndex = 9;
- this.Connect_Kongregate.Text = "kongregate.com";
- this.Connect_Kongregate.UseVisualStyleBackColor = true;
- this.Connect_Kongregate.CheckedChanged += new System.EventHandler(this.Connect_Kongregate_CheckedChanged);
- this.Connect_EE.AutoSize = true;
- this.Connect_EE.Checked = true;
- this.Connect_EE.Location = new Point(8, 26);
- this.Connect_EE.Name = "Connect_EE";
- this.Connect_EE.Size = new Size(60, 17);
- this.Connect_EE.TabIndex = 8;
- this.Connect_EE.TabStop = true;
- this.Connect_EE.Text = "ee.com";
- this.Connect_EE.UseVisualStyleBackColor = true;
- this.Connect_EE.CheckedChanged += new System.EventHandler(this.Connect_EE_CheckedChanged);
- this.connect_button.Location = new Point(7, 127);
- this.connect_button.Name = "connect_button";
- this.connect_button.Size = new Size(263, 37);
- this.connect_button.TabIndex = 7;
- this.connect_button.Text = "Connect";
- this.connect_button.UseVisualStyleBackColor = true;
- this.connect_button.Click += new System.EventHandler(this.connect_Click);
- this.label4.AutoSize = true;
- this.label4.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label4.Location = new Point(5, 104);
- this.label4.Name = "label4";
- this.label4.Size = new Size(57, 13);
- this.label4.TabIndex = 6;
- this.label4.Text = "World ID";
- this.world_textbox.Location = new Point(78, 101);
- this.world_textbox.Name = "world_textbox";
- this.world_textbox.Size = new Size(192, 20);
- this.world_textbox.TabIndex = 5;
- this.labelL2.AutoSize = true;
- this.labelL2.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.labelL2.Location = new Point(4, 78);
- this.labelL2.Name = "labelL2";
- this.labelL2.Size = new Size(61, 13);
- this.labelL2.TabIndex = 4;
- this.labelL2.Text = "Password";
- this.password_textbox.Location = new Point(78, 75);
- this.password_textbox.Name = "password_textbox";
- this.password_textbox.PasswordChar = '•';
- this.password_textbox.Size = new Size(192, 20);
- this.password_textbox.TabIndex = 3;
- this.email_textbox.Location = new Point(78, 49);
- this.email_textbox.Name = "email_textbox";
- this.email_textbox.Size = new Size(192, 20);
- this.email_textbox.TabIndex = 2;
- this.label2.AutoSize = true;
- this.label2.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label2.Location = new Point(3, 2);
- this.label2.Name = "label2";
- this.label2.Size = new Size(148, 20);
- this.label2.TabIndex = 1;
- this.label2.Text = "Login information";
- this.labelL1.AutoSize = true;
- this.labelL1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.labelL1.Location = new Point(3, 52);
- this.labelL1.Name = "labelL1";
- this.labelL1.Size = new Size(42, 13);
- this.labelL1.TabIndex = 0;
- this.labelL1.Text = "E-Mail";
- this.tabControlMenu.Controls.Add(this.tabPageJoinLeave);
- this.tabControlMenu.Controls.Add(this.tabPageSnakeRain);
- this.tabControlMenu.Controls.Add(this.tabPageBotSettings);
- this.tabControlMenu.Controls.Add(this.tabPageUsers);
- this.tabControlMenu.Controls.Add(this.tabPageAdmins);
- this.tabControlMenu.Controls.Add(this.tabPageBans);
- this.tabControlMenu.Controls.Add(this.tabPage1);
- this.tabControlMenu.Controls.Add(this.tabPage2);
- this.tabControlMenu.Controls.Add(this.tabPageOthers);
- this.tabControlMenu.HotTrack = true;
- this.tabControlMenu.Location = new Point(12, 208);
- this.tabControlMenu.Name = "tabControlMenu";
- this.tabControlMenu.SelectedIndex = 0;
- this.tabControlMenu.Size = new Size(432, 198);
- this.tabControlMenu.TabIndex = 1;
- this.tabPageJoinLeave.BackColor = Color.Silver;
- this.tabPageJoinLeave.Controls.Add(this.label56);
- this.tabPageJoinLeave.Controls.Add(this.ParametersHelp2);
- this.tabPageJoinLeave.Controls.Add(this.label55);
- this.tabPageJoinLeave.Controls.Add(this.label53);
- this.tabPageJoinLeave.Controls.Add(this.label39);
- this.tabPageJoinLeave.Controls.Add(this.label10);
- this.tabPageJoinLeave.Controls.Add(this.label54);
- this.tabPageJoinLeave.Controls.Add(this.label9);
- this.tabPageJoinLeave.Controls.Add(this.GiveGodOnJoinCheck);
- this.tabPageJoinLeave.Controls.Add(this.PMTB1);
- this.tabPageJoinLeave.Controls.Add(this.PMjoinMessage);
- this.tabPageJoinLeave.Controls.Add(this.EditJoinCheckbox);
- this.tabPageJoinLeave.Controls.Add(this.KickGuestCheckBox);
- this.tabPageJoinLeave.Controls.Add(this.LeftTB1);
- this.tabPageJoinLeave.Controls.Add(this.LeaveMessageCheck);
- this.tabPageJoinLeave.Controls.Add(this.Join1TB);
- this.tabPageJoinLeave.Controls.Add(this.JoinMessageCheck);
- this.tabPageJoinLeave.Location = new Point(4, 22);
- this.tabPageJoinLeave.Name = "tabPageJoinLeave";
- this.tabPageJoinLeave.Padding = new Padding(3);
- this.tabPageJoinLeave.Size = new Size(424, 172);
- this.tabPageJoinLeave.TabIndex = 0;
- this.tabPageJoinLeave.Text = "Join / Leave";
- this.label56.AutoSize = true;
- this.label56.Location = new Point(283, 42);
- this.label56.Name = "label56";
- this.label56.Size = new Size(53, 13);
- this.label56.TabIndex = 27;
- this.label56.Text = "- %plays%";
- this.ParametersHelp2.BackgroundImage = Resources.help;
- this.ParametersHelp2.BackgroundImageLayout = ImageLayout.Stretch;
- this.ParametersHelp2.Location = new Point(375, 13);
- this.ParametersHelp2.Name = "ParametersHelp2";
- this.ParametersHelp2.Size = new Size(22, 20);
- this.ParametersHelp2.TabIndex = 26;
- this.toolTipAdmin.SetToolTip(this.ParametersHelp2, "Help about the joinmessages");
- this.ParametersHelp2.UseVisualStyleBackColor = true;
- this.ParametersHelp2.Click += new System.EventHandler(this.button1_Click);
- this.label55.AutoSize = true;
- this.label55.Location = new Point(283, 29);
- this.label55.Name = "label55";
- this.label55.Size = new Size(75, 13);
- this.label55.TabIndex = 25;
- this.label55.Text = "- %username%";
- this.label53.AutoSize = true;
- this.label53.Location = new Point(314, 106);
- this.label53.Name = "label53";
- this.label53.Size = new Size(16, 13);
- this.label53.TabIndex = 24;
- this.label53.Text = "â–¼";
- this.label39.AutoSize = true;
- this.label39.Location = new Point(285, 119);
- this.label39.Name = "label39";
- this.label39.Size = new Size(75, 13);
- this.label39.TabIndex = 23;
- this.label39.Text = "Hello test1999";
- this.label10.AutoSize = true;
- this.label10.Location = new Point(284, 89);
- this.label10.Name = "label10";
- this.label10.Size = new Size(96, 13);
- this.label10.TabIndex = 22;
- this.label10.Text = "Hello %username%";
- this.label54.AutoSize = true;
- this.label54.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label54.Location = new Point(284, 76);
- this.label54.Name = "label54";
- this.label54.Size = new Size(58, 13);
- this.label54.TabIndex = 21;
- this.label54.Text = "Example:";
- this.label9.AutoSize = true;
- this.label9.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label9.Location = new Point(283, 13);
- this.label9.Name = "label9";
- this.label9.Size = new Size(73, 13);
- this.label9.TabIndex = 17;
- this.label9.Text = "parameters:";
- this.GiveGodOnJoinCheck.AutoSize = true;
- this.GiveGodOnJoinCheck.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
- this.GiveGodOnJoinCheck.Location = new Point(278, 149);
- this.GiveGodOnJoinCheck.Name = "GiveGodOnJoinCheck";
- this.GiveGodOnJoinCheck.Size = new Size(119, 17);
- this.GiveGodOnJoinCheck.TabIndex = 16;
- this.GiveGodOnJoinCheck.Text = "Give god on join";
- this.GiveGodOnJoinCheck.UseVisualStyleBackColor = true;
- this.PMTB1.Location = new Point(6, 125);
- this.PMTB1.Name = "PMTB1";
- this.PMTB1.Size = new Size(266, 20);
- this.PMTB1.TabIndex = 13;
- this.PMjoinMessage.AutoSize = true;
- this.PMjoinMessage.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
- this.PMjoinMessage.Location = new Point(6, 102);
- this.PMjoinMessage.Name = "PMjoinMessage";
- this.PMjoinMessage.Size = new Size(143, 17);
- this.PMjoinMessage.TabIndex = 12;
- this.PMjoinMessage.Text = "PM to player on join.";
- this.PMjoinMessage.UseVisualStyleBackColor = true;
- this.EditJoinCheckbox.AutoSize = true;
- this.EditJoinCheckbox.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
- this.EditJoinCheckbox.Location = new Point(153, 149);
- this.EditJoinCheckbox.Name = "EditJoinCheckbox";
- this.EditJoinCheckbox.Size = new Size(119, 17);
- this.EditJoinCheckbox.TabIndex = 11;
- this.EditJoinCheckbox.Text = "Give edit on join";
- this.EditJoinCheckbox.UseVisualStyleBackColor = true;
- this.KickGuestCheckBox.AutoSize = true;
- this.KickGuestCheckBox.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
- this.KickGuestCheckBox.Location = new Point(6, 149);
- this.KickGuestCheckBox.Name = "KickGuestCheckBox";
- this.KickGuestCheckBox.Size = new Size(128, 17);
- this.KickGuestCheckBox.TabIndex = 10;
- this.KickGuestCheckBox.Text = "Kick guest on join";
- this.KickGuestCheckBox.UseVisualStyleBackColor = true;
- this.LeftTB1.Location = new Point(6, 76);
- this.LeftTB1.Name = "LeftTB1";
- this.LeftTB1.Size = new Size(266, 20);
- this.LeftTB1.TabIndex = 7;
- this.LeaveMessageCheck.AutoSize = true;
- this.LeaveMessageCheck.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
- this.LeaveMessageCheck.Location = new Point(6, 53);
- this.LeaveMessageCheck.Name = "LeaveMessageCheck";
- this.LeaveMessageCheck.Size = new Size(115, 17);
- this.LeaveMessageCheck.TabIndex = 6;
- this.LeaveMessageCheck.Text = "Leave Message";
- this.LeaveMessageCheck.UseVisualStyleBackColor = true;
- this.Join1TB.Location = new Point(6, 26);
- this.Join1TB.Name = "Join1TB";
- this.Join1TB.Size = new Size(266, 20);
- this.Join1TB.TabIndex = 3;
- this.JoinMessageCheck.AutoSize = true;
- this.JoinMessageCheck.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
- this.JoinMessageCheck.Location = new Point(6, 3);
- this.JoinMessageCheck.Name = "JoinMessageCheck";
- this.JoinMessageCheck.Size = new Size(103, 17);
- this.JoinMessageCheck.TabIndex = 2;
- this.JoinMessageCheck.Text = "Join Message";
- this.JoinMessageCheck.UseVisualStyleBackColor = true;
- this.tabPageSnakeRain.BackColor = Color.Silver;
- this.tabPageSnakeRain.Controls.Add(this.RainFunction2);
- this.tabPageSnakeRain.Controls.Add(this.RainFunction4);
- this.tabPageSnakeRain.Controls.Add(this.RainFunction3);
- this.tabPageSnakeRain.Controls.Add(this.RainFunction1);
- this.tabPageSnakeRain.Controls.Add(this.RainWait);
- this.tabPageSnakeRain.Controls.Add(this.label34);
- this.tabPageSnakeRain.Controls.Add(this.RainID);
- this.tabPageSnakeRain.Controls.Add(this.label33);
- this.tabPageSnakeRain.Controls.Add(this.RainPanel);
- this.tabPageSnakeRain.Controls.Add(this.label32);
- this.tabPageSnakeRain.Controls.Add(this.label31);
- this.tabPageSnakeRain.Controls.Add(this.SnakeFunction1);
- this.tabPageSnakeRain.Controls.Add(this.SnakePanel);
- this.tabPageSnakeRain.Controls.Add(this.SnakeWait);
- this.tabPageSnakeRain.Controls.Add(this.label8);
- this.tabPageSnakeRain.Controls.Add(this.label7);
- this.tabPageSnakeRain.Controls.Add(this.label6);
- this.tabPageSnakeRain.Controls.Add(this.SnakeID2);
- this.tabPageSnakeRain.Controls.Add(this.SnakeID3);
- this.tabPageSnakeRain.Controls.Add(this.SnakeID1);
- this.tabPageSnakeRain.Controls.Add(this.label5);
- this.tabPageSnakeRain.Location = new Point(4, 22);
- this.tabPageSnakeRain.Name = "tabPageSnakeRain";
- this.tabPageSnakeRain.Padding = new Padding(3);
- this.tabPageSnakeRain.Size = new Size(424, 172);
- this.tabPageSnakeRain.TabIndex = 1;
- this.tabPageSnakeRain.Text = "Snake / Rain";
- this.RainFunction2.AutoSize = true;
- this.RainFunction2.Location = new Point(320, 33);
- this.RainFunction2.Name = "RainFunction2";
- this.RainFunction2.Size = new Size(53, 17);
- this.RainFunction2.TabIndex = 20;
- this.RainFunction2.Text = "Stack";
- this.RainFunction2.UseVisualStyleBackColor = true;
- this.RainFunction4.AutoSize = true;
- this.RainFunction4.Location = new Point(320, 79);
- this.RainFunction4.Name = "RainFunction4";
- this.RainFunction4.Size = new Size(101, 17);
- this.RainFunction4.TabIndex = 19;
- this.RainFunction4.Text = "Delete on touch";
- this.RainFunction4.UseVisualStyleBackColor = true;
- this.RainFunction3.AutoSize = true;
- this.RainFunction3.Location = new Point(320, 56);
- this.RainFunction3.Name = "RainFunction3";
- this.RainFunction3.Size = new Size(86, 17);
- this.RainFunction3.TabIndex = 18;
- this.RainFunction3.Text = "Do not stack";
- this.RainFunction3.UseVisualStyleBackColor = true;
- this.RainFunction1.AutoSize = true;
- this.RainFunction1.Checked = true;
- this.RainFunction1.Location = new Point(320, 10);
- this.RainFunction1.Name = "RainFunction1";
- this.RainFunction1.Size = new Size(79, 17);
- this.RainFunction1.TabIndex = 17;
- this.RainFunction1.TabStop = true;
- this.RainFunction1.Text = "Destructive";
- this.RainFunction1.UseVisualStyleBackColor = true;
- this.RainWait.Location = new Point(232, 75);
- NumericUpDown arg_204E_0 = this.RainWait;
- int[] array = new int[4];
- array[0] = 250;
- arg_204E_0.Maximum = new decimal(array);
- NumericUpDown arg_206A_0 = this.RainWait;
- int[] array2 = new int[4];
- array2[0] = 5;
- arg_206A_0.Minimum = new decimal(array2);
- this.RainWait.Name = "RainWait";
- this.RainWait.Size = new Size(47, 20);
- this.RainWait.TabIndex = 16;
- NumericUpDown arg_20B7_0 = this.RainWait;
- int[] array3 = new int[4];
- array3[0] = 5;
- arg_20B7_0.Value = new decimal(array3);
- this.label34.AutoSize = true;
- this.label34.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label34.Location = new Point(229, 56);
- this.label34.Name = "label34";
- this.label34.Size = new Size(64, 16);
- this.label34.TabIndex = 15;
- this.label34.Text = "Timeout";
- this.RainID.Location = new Point(232, 33);
- NumericUpDown arg_2172_0 = this.RainID;
- int[] array4 = new int[4];
- array4[0] = 9000;
- arg_2172_0.Maximum = new decimal(array4);
- this.RainID.Name = "RainID";
- this.RainID.Size = new Size(47, 20);
- this.RainID.TabIndex = 14;
- this.label33.AutoSize = true;
- this.label33.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label33.Location = new Point(229, 16);
- this.label33.Name = "label33";
- this.label33.Size = new Size(56, 13);
- this.label33.TabIndex = 13;
- this.label33.Text = "Block ID";
- this.RainPanel.BackColor = Color.Gray;
- this.RainPanel.Controls.Add(this.RainCheckBox);
- this.RainPanel.Location = new Point(232, 112);
- this.RainPanel.Name = "RainPanel";
- this.RainPanel.Size = new Size(174, 48);
- this.RainPanel.TabIndex = 11;
- this.RainCheckBox.AutoSize = true;
- this.RainCheckBox.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.RainCheckBox.Location = new Point(17, 10);
- this.RainCheckBox.Name = "RainCheckBox";
- this.RainCheckBox.Size = new Size(108, 24);
- this.RainCheckBox.TabIndex = 6;
- this.RainCheckBox.Text = "Enable rain";
- this.RainCheckBox.UseVisualStyleBackColor = true;
- this.RainCheckBox.CheckedChanged += new System.EventHandler(this.RainCheckBox_CheckedChanged);
- this.label32.AutoSize = true;
- this.label32.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label32.Location = new Point(229, 3);
- this.label32.Name = "label32";
- this.label32.Size = new Size(80, 13);
- this.label32.TabIndex = 12;
- this.label32.Text = "Rain Options";
- this.label31.AutoSize = true;
- this.label31.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label31.Location = new Point(3, 3);
- this.label31.Name = "label31";
- this.label31.Size = new Size(90, 13);
- this.label31.TabIndex = 11;
- this.label31.Text = "Snake Options";
- this.SnakeFunction1.AutoSize = true;
- this.SnakeFunction1.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.SnakeFunction1.Location = new Point(74, 71);
- this.SnakeFunction1.Name = "SnakeFunction1";
- this.SnakeFunction1.Size = new Size(106, 24);
- this.SnakeFunction1.TabIndex = 9;
- this.SnakeFunction1.Text = "Longer Tail";
- this.SnakeFunction1.UseVisualStyleBackColor = true;
- this.SnakePanel.BackColor = Color.Gray;
- this.SnakePanel.Controls.Add(this.Snake_checkBox);
- this.SnakePanel.Location = new Point(6, 112);
- this.SnakePanel.Name = "SnakePanel";
- this.SnakePanel.Size = new Size(174, 48);
- this.SnakePanel.TabIndex = 10;
- this.Snake_checkBox.AutoSize = true;
- this.Snake_checkBox.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.Snake_checkBox.Location = new Point(15, 10);
- this.Snake_checkBox.Name = "Snake_checkBox";
- this.Snake_checkBox.Size = new Size(125, 24);
- this.Snake_checkBox.TabIndex = 6;
- this.Snake_checkBox.Text = "Enable snake";
- this.Snake_checkBox.UseVisualStyleBackColor = true;
- this.Snake_checkBox.CheckedChanged += new System.EventHandler(this.Snake_checkBox_CheckedChanged);
- this.SnakeWait.Location = new Point(6, 75);
- NumericUpDown arg_25FE_0 = this.SnakeWait;
- int[] array5 = new int[4];
- array5[0] = 250;
- arg_25FE_0.Maximum = new decimal(array5);
- NumericUpDown arg_261D_0 = this.SnakeWait;
- int[] array6 = new int[4];
- array6[0] = 5;
- arg_261D_0.Minimum = new decimal(array6);
- this.SnakeWait.Name = "SnakeWait";
- this.SnakeWait.Size = new Size(47, 20);
- this.SnakeWait.TabIndex = 8;
- NumericUpDown arg_266C_0 = this.SnakeWait;
- int[] array7 = new int[4];
- array7[0] = 5;
- arg_266C_0.Value = new decimal(array7);
- this.label8.AutoSize = true;
- this.label8.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label8.Location = new Point(3, 56);
- this.label8.Name = "label8";
- this.label8.Size = new Size(64, 16);
- this.label8.TabIndex = 7;
- this.label8.Text = "Timeout";
- this.label7.AutoSize = true;
- this.label7.Font = new Font("Stencil Std", 9.749999f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label7.Location = new Point(138, 33);
- this.label7.Name = "label7";
- this.label7.Size = new Size(20, 17);
- this.label7.TabIndex = 5;
- this.label7.Text = "â–º";
- this.label6.AutoSize = true;
- this.label6.Font = new Font("Stencil Std", 9.749999f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label6.Location = new Point(59, 33);
- this.label6.Name = "label6";
- this.label6.Size = new Size(20, 17);
- this.label6.TabIndex = 4;
- this.label6.Text = "â–º";
- this.SnakeID2.Location = new Point(85, 33);
- NumericUpDown arg_281C_0 = this.SnakeID2;
- int[] array8 = new int[4];
- array8[0] = 9000;
- arg_281C_0.Maximum = new decimal(array8);
- this.SnakeID2.Name = "SnakeID2";
- this.SnakeID2.Size = new Size(47, 20);
- this.SnakeID2.TabIndex = 3;
- this.SnakeID3.Location = new Point(164, 33);
- NumericUpDown arg_2886_0 = this.SnakeID3;
- int[] array9 = new int[4];
- array9[0] = 9000;
- arg_2886_0.Maximum = new decimal(array9);
- this.SnakeID3.Name = "SnakeID3";
- this.SnakeID3.Size = new Size(47, 20);
- this.SnakeID3.TabIndex = 2;
- this.SnakeID1.Location = new Point(6, 33);
- NumericUpDown arg_28EC_0 = this.SnakeID1;
- int[] array10 = new int[4];
- array10[0] = 9000;
- arg_28EC_0.Maximum = new decimal(array10);
- this.SnakeID1.Name = "SnakeID1";
- this.SnakeID1.Size = new Size(47, 20);
- this.SnakeID1.TabIndex = 1;
- this.label5.AutoSize = true;
- this.label5.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label5.Location = new Point(3, 16);
- this.label5.Name = "label5";
- this.label5.Size = new Size(65, 13);
- this.label5.TabIndex = 0;
- this.label5.Text = "Block ID's";
- this.tabPageBotSettings.BackColor = Color.Silver;
- this.tabPageBotSettings.Controls.Add(this.label16);
- this.tabPageBotSettings.Controls.Add(this.label30);
- this.tabPageBotSettings.Controls.Add(this.AuraRandomeButton);
- this.tabPageBotSettings.Controls.Add(this.label29);
- this.tabPageBotSettings.Controls.Add(this.AuraShapeIDBox);
- this.tabPageBotSettings.Controls.Add(this.AuraColorIDBox);
- this.tabPageBotSettings.Controls.Add(this.label28);
- this.tabPageBotSettings.Controls.Add(this.SmileyRandomeButton);
- this.tabPageBotSettings.Controls.Add(this.ToggleGodButton);
- this.tabPageBotSettings.Controls.Add(this.label19);
- this.tabPageBotSettings.Controls.Add(this.SmileyIDBox);
- this.tabPageBotSettings.Controls.Add(this.label18);
- this.tabPageBotSettings.Controls.Add(this.label17);
- this.tabPageBotSettings.Controls.Add(this.BotPosY);
- this.tabPageBotSettings.Controls.Add(this.TeleportBotButton);
- this.tabPageBotSettings.Controls.Add(this.BotPosX);
- this.tabPageBotSettings.Controls.Add(this.label15);
- this.tabPageBotSettings.Controls.Add(this.label14);
- this.tabPageBotSettings.Controls.Add(this.label13);
- this.tabPageBotSettings.Location = new Point(4, 22);
- this.tabPageBotSettings.Name = "tabPageBotSettings";
- this.tabPageBotSettings.Size = new Size(424, 172);
- this.tabPageBotSettings.TabIndex = 2;
- this.tabPageBotSettings.Text = "Bot Settings";
- this.label16.AutoSize = true;
- this.label16.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label16.Location = new Point(151, 7);
- this.label16.Name = "label16";
- this.label16.Size = new Size(46, 13);
- this.label16.TabIndex = 27;
- this.label16.Text = "Toggle";
- this.label30.AutoSize = true;
- this.label30.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label30.Location = new Point(8, 115);
- this.label30.Name = "label30";
- this.label30.Size = new Size(77, 20);
- this.label30.TabIndex = 26;
- this.label30.Text = "Shape ID";
- this.AuraRandomeButton.Enabled = false;
- this.AuraRandomeButton.Location = new Point(154, 89);
- this.AuraRandomeButton.Name = "AuraRandomeButton";
- this.AuraRandomeButton.Size = new Size(78, 43);
- this.AuraRandomeButton.TabIndex = 25;
- this.AuraRandomeButton.Text = "Randomizer ON";
- this.AuraRandomeButton.UseVisualStyleBackColor = true;
- this.AuraRandomeButton.Click += new System.EventHandler(this.AuraRandomeButton_Click);
- this.label29.AutoSize = true;
- this.label29.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label29.Location = new Point(8, 89);
- this.label29.Name = "label29";
- this.label29.Size = new Size(67, 20);
- this.label29.TabIndex = 24;
- this.label29.Text = "Color ID";
- this.AuraShapeIDBox.Enabled = false;
- this.AuraShapeIDBox.Location = new Point(98, 115);
- NumericUpDown arg_2DE7_0 = this.AuraShapeIDBox;
- int[] array11 = new int[4];
- array11[0] = 129;
- arg_2DE7_0.Maximum = new decimal(array11);
- this.AuraShapeIDBox.Name = "AuraShapeIDBox";
- this.AuraShapeIDBox.Size = new Size(50, 20);
- this.AuraShapeIDBox.TabIndex = 23;
- this.AuraShapeIDBox.ValueChanged += new System.EventHandler(this.AuraShapeIDBox_ValueChanged);
- this.AuraColorIDBox.Enabled = false;
- this.AuraColorIDBox.Location = new Point(98, 89);
- NumericUpDown arg_2E72_0 = this.AuraColorIDBox;
- int[] array12 = new int[4];
- array12[0] = 129;
- arg_2E72_0.Maximum = new decimal(array12);
- this.AuraColorIDBox.Name = "AuraColorIDBox";
- this.AuraColorIDBox.Size = new Size(50, 20);
- this.AuraColorIDBox.TabIndex = 22;
- this.AuraColorIDBox.ValueChanged += new System.EventHandler(this.AuraColorIDBox_ValueChanged);
- this.label28.AutoSize = true;
- this.label28.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label28.Location = new Point(9, 73);
- this.label28.Name = "label28";
- this.label28.Size = new Size(100, 13);
- this.label28.TabIndex = 21;
- this.label28.Text = "Bot aura options";
- this.SmileyRandomeButton.Enabled = false;
- this.SmileyRandomeButton.Location = new Point(154, 24);
- this.SmileyRandomeButton.Name = "SmileyRandomeButton";
- this.SmileyRandomeButton.Size = new Size(78, 43);
- this.SmileyRandomeButton.TabIndex = 20;
- this.SmileyRandomeButton.Text = "Randomizer ON";
- this.SmileyRandomeButton.UseVisualStyleBackColor = true;
- this.SmileyRandomeButton.Click += new System.EventHandler(this.SmileyRandomeButton_Click);
- this.ToggleGodButton.Enabled = false;
- this.ToggleGodButton.Location = new Point(254, 24);
- this.ToggleGodButton.Name = "ToggleGodButton";
- this.ToggleGodButton.Size = new Size(80, 43);
- this.ToggleGodButton.TabIndex = 19;
- this.ToggleGodButton.Text = "God on";
- this.ToggleGodButton.UseVisualStyleBackColor = true;
- this.ToggleGodButton.Click += new System.EventHandler(this.ToggleGodButton_Click);
- this.label19.AutoSize = true;
- this.label19.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label19.Location = new Point(251, 7);
- this.label19.Name = "label19";
- this.label19.Size = new Size(73, 13);
- this.label19.TabIndex = 18;
- this.label19.Text = "Toggle God";
- this.SmileyIDBox.Enabled = false;
- this.SmileyIDBox.Location = new Point(42, 24);
- NumericUpDown arg_3109_0 = this.SmileyIDBox;
- int[] array13 = new int[4];
- array13[0] = 129;
- arg_3109_0.Maximum = new decimal(array13);
- this.SmileyIDBox.Name = "SmileyIDBox";
- this.SmileyIDBox.Size = new Size(50, 20);
- this.SmileyIDBox.TabIndex = 17;
- this.SmileyIDBox.ValueChanged += new System.EventHandler(this.SmileyIDBox_ValueChanged);
- this.label18.AutoSize = true;
- this.label18.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label18.Location = new Point(8, 24);
- this.label18.Name = "label18";
- this.label18.Size = new Size(26, 20);
- this.label18.TabIndex = 16;
- this.label18.Text = "ID";
- this.label17.AutoSize = true;
- this.label17.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label17.Location = new Point(9, 7);
- this.label17.Name = "label17";
- this.label17.Size = new Size(109, 13);
- this.label17.TabIndex = 15;
- this.label17.Text = "Bot smiley options";
- this.BotPosY.Location = new Point(365, 47);
- NumericUpDown arg_3285_0 = this.BotPosY;
- int[] array14 = new int[4];
- array14[0] = 1000;
- arg_3285_0.Maximum = new decimal(array14);
- this.BotPosY.Name = "BotPosY";
- this.BotPosY.Size = new Size(50, 20);
- this.BotPosY.TabIndex = 6;
- this.TeleportBotButton.Enabled = false;
- this.TeleportBotButton.Location = new Point(344, 73);
- this.TeleportBotButton.Name = "TeleportBotButton";
- this.TeleportBotButton.Size = new Size(71, 35);
- this.TeleportBotButton.TabIndex = 5;
- this.TeleportBotButton.Text = "Teleport to location";
- this.TeleportBotButton.UseVisualStyleBackColor = true;
- this.TeleportBotButton.Click += new System.EventHandler(this.TeleportBotButton_Click);
- this.BotPosX.Location = new Point(365, 24);
- NumericUpDown arg_3375_0 = this.BotPosX;
- int[] array15 = new int[4];
- array15[0] = 1000;
- arg_3375_0.Maximum = new decimal(array15);
- this.BotPosX.Name = "BotPosX";
- this.BotPosX.Size = new Size(50, 20);
- this.BotPosX.TabIndex = 4;
- this.label15.AutoSize = true;
- this.label15.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label15.Location = new Point(340, 44);
- this.label15.Name = "label15";
- this.label15.Size = new Size(20, 20);
- this.label15.TabIndex = 3;
- this.label15.Text = "Y";
- this.label14.AutoSize = true;
- this.label14.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label14.Location = new Point(340, 24);
- this.label14.Name = "label14";
- this.label14.Size = new Size(20, 20);
- this.label14.TabIndex = 2;
- this.label14.Text = "X";
- this.label13.AutoSize = true;
- this.label13.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label13.Location = new Point(341, 7);
- this.label13.Name = "label13";
- this.label13.Size = new Size(74, 13);
- this.label13.TabIndex = 1;
- this.label13.Text = "Bot position";
- this.tabPageUsers.BackColor = Color.Silver;
- this.tabPageUsers.Controls.Add(this.Kick_ALL);
- this.tabPageUsers.Controls.Add(this.RemoveEdit_ALL);
- this.tabPageUsers.Controls.Add(this.GiveEdit_ALL);
- this.tabPageUsers.Controls.Add(this.RemoveGod_ALL);
- this.tabPageUsers.Controls.Add(this.GiveGod_ALL);
- this.tabPageUsers.Controls.Add(this.label1);
- this.tabPageUsers.Controls.Add(this.BanButton);
- this.tabPageUsers.Controls.Add(this.RGodButton);
- this.tabPageUsers.Controls.Add(this.GGodButton);
- this.tabPageUsers.Controls.Add(this.SendMessageBox);
- this.tabPageUsers.Controls.Add(this.label22);
- this.tabPageUsers.Controls.Add(this.SendMessageButton);
- this.tabPageUsers.Controls.Add(this.REdit);
- this.tabPageUsers.Controls.Add(this.GEditButton);
- this.tabPageUsers.Controls.Add(this.label21);
- this.tabPageUsers.Controls.Add(this.KickMessageBox);
- this.tabPageUsers.Controls.Add(this.label20);
- this.tabPageUsers.Controls.Add(this.KickButton);
- this.tabPageUsers.Controls.Add(this.UsersListbox);
- this.tabPageUsers.Location = new Point(4, 22);
- this.tabPageUsers.Name = "tabPageUsers";
- this.tabPageUsers.Size = new Size(424, 172);
- this.tabPageUsers.TabIndex = 3;
- this.tabPageUsers.Text = "Users";
- this.Kick_ALL.Enabled = false;
- this.Kick_ALL.Location = new Point(348, 144);
- this.Kick_ALL.Name = "Kick_ALL";
- this.Kick_ALL.Size = new Size(67, 23);
- this.Kick_ALL.TabIndex = 32;
- this.Kick_ALL.Text = "KICK!";
- this.Kick_ALL.UseVisualStyleBackColor = true;
- this.Kick_ALL.Click += new System.EventHandler(this.Kick_ALL_Click);
- this.RemoveEdit_ALL.Enabled = false;
- this.RemoveEdit_ALL.Location = new Point(292, 144);
- this.RemoveEdit_ALL.Name = "RemoveEdit_ALL";
- this.RemoveEdit_ALL.Size = new Size(50, 23);
- this.RemoveEdit_ALL.TabIndex = 31;
- this.RemoveEdit_ALL.Text = "R. Edit";
- this.RemoveEdit_ALL.UseVisualStyleBackColor = true;
- this.RemoveEdit_ALL.Click += new System.EventHandler(this.RemoveEdit_ALL_Click);
- this.GiveEdit_ALL.Enabled = false;
- this.GiveEdit_ALL.Location = new Point(238, 144);
- this.GiveEdit_ALL.Name = "GiveEdit_ALL";
- this.GiveEdit_ALL.Size = new Size(48, 23);
- this.GiveEdit_ALL.TabIndex = 30;
- this.GiveEdit_ALL.Text = "G. Edit";
- this.GiveEdit_ALL.UseVisualStyleBackColor = true;
- this.GiveEdit_ALL.Click += new System.EventHandler(this.GiveEdit_ALL_Click);
- this.RemoveGod_ALL.Enabled = false;
- this.RemoveGod_ALL.Location = new Point(182, 144);
- this.RemoveGod_ALL.Name = "RemoveGod_ALL";
- this.RemoveGod_ALL.Size = new Size(50, 23);
- this.RemoveGod_ALL.TabIndex = 29;
- this.RemoveGod_ALL.Text = "R. God";
- this.RemoveGod_ALL.UseVisualStyleBackColor = true;
- this.RemoveGod_ALL.Click += new System.EventHandler(this.RemoveGod_ALL_Click);
- this.GiveGod_ALL.Enabled = false;
- this.GiveGod_ALL.Location = new Point(125, 144);
- this.GiveGod_ALL.Name = "GiveGod_ALL";
- this.GiveGod_ALL.Size = new Size(51, 23);
- this.GiveGod_ALL.TabIndex = 28;
- this.GiveGod_ALL.Text = "G. God";
- this.GiveGod_ALL.UseVisualStyleBackColor = true;
- this.GiveGod_ALL.Click += new System.EventHandler(this.GiveGod_ALL_Click);
- this.label1.AutoSize = true;
- this.label1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label1.Location = new Point(122, 128);
- this.label1.Name = "label1";
- this.label1.Size = new Size(85, 13);
- this.label1.TabIndex = 27;
- this.label1.Text = "For ALL users";
- this.BanButton.Enabled = false;
- this.BanButton.Location = new Point(297, 102);
- this.BanButton.Name = "BanButton";
- this.BanButton.Size = new Size(75, 23);
- this.BanButton.TabIndex = 26;
- this.BanButton.Text = "Ban";
- this.BanButton.UseVisualStyleBackColor = true;
- this.BanButton.Click += new System.EventHandler(this.BanButton_Click);
- this.RGodButton.Enabled = false;
- this.RGodButton.Location = new Point(206, 102);
- this.RGodButton.Name = "RGodButton";
- this.RGodButton.Size = new Size(80, 23);
- this.RGodButton.TabIndex = 25;
- this.RGodButton.Text = "Remove God";
- this.RGodButton.UseVisualStyleBackColor = true;
- this.RGodButton.Click += new System.EventHandler(this.RGodButton_Click);
- this.GGodButton.Enabled = false;
- this.GGodButton.Location = new Point(125, 102);
- this.GGodButton.Name = "GGodButton";
- this.GGodButton.Size = new Size(75, 23);
- this.GGodButton.TabIndex = 24;
- this.GGodButton.Text = "Give God";
- this.GGodButton.UseVisualStyleBackColor = true;
- this.GGodButton.Click += new System.EventHandler(this.GGodButton_Click);
- this.SendMessageBox.Location = new Point(259, 49);
- this.SendMessageBox.Name = "SendMessageBox";
- this.SendMessageBox.Size = new Size(162, 20);
- this.SendMessageBox.TabIndex = 23;
- this.label22.AutoSize = true;
- this.label22.Location = new Point(203, 49);
- this.label22.Name = "label22";
- this.label22.Size = new Size(50, 13);
- this.label22.TabIndex = 22;
- this.label22.Text = "Message";
- this.SendMessageButton.Enabled = false;
- this.SendMessageButton.Location = new Point(125, 49);
- this.SendMessageButton.Name = "SendMessageButton";
- this.SendMessageButton.Size = new Size(75, 20);
- this.SendMessageButton.TabIndex = 21;
- this.SendMessageButton.Text = "MSG";
- this.SendMessageButton.UseVisualStyleBackColor = true;
- this.SendMessageButton.Click += new System.EventHandler(this.SendMessageButton_Click);
- this.REdit.Enabled = false;
- this.REdit.Location = new Point(206, 75);
- this.REdit.Name = "REdit";
- this.REdit.Size = new Size(80, 23);
- this.REdit.TabIndex = 20;
- this.REdit.Text = "Remove Edit";
- this.REdit.UseVisualStyleBackColor = true;
- this.REdit.Click += new System.EventHandler(this.REdit_Click);
- this.GEditButton.Enabled = false;
- this.GEditButton.Location = new Point(125, 75);
- this.GEditButton.Name = "GEditButton";
- this.GEditButton.Size = new Size(75, 23);
- this.GEditButton.TabIndex = 19;
- this.GEditButton.Text = "Give Edit";
- this.GEditButton.UseVisualStyleBackColor = true;
- this.GEditButton.Click += new System.EventHandler(this.GEditButton_Click);
- this.label21.AutoSize = true;
- this.label21.Location = new Point(203, 27);
- this.label21.Name = "label21";
- this.label21.Size = new Size(50, 13);
- this.label21.TabIndex = 18;
- this.label21.Text = "Message";
- this.KickMessageBox.Location = new Point(259, 24);
- this.KickMessageBox.Name = "KickMessageBox";
- this.KickMessageBox.Size = new Size(162, 20);
- this.KickMessageBox.TabIndex = 17;
- this.label20.AutoSize = true;
- this.label20.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label20.Location = new Point(122, 8);
- this.label20.Name = "label20";
- this.label20.Size = new Size(265, 13);
- this.label20.TabIndex = 16;
- this.label20.Text = "Select an user, Than click one of the buttons";
- this.KickButton.Enabled = false;
- this.KickButton.Location = new Point(125, 24);
- this.KickButton.Name = "KickButton";
- this.KickButton.Size = new Size(75, 20);
- this.KickButton.TabIndex = 1;
- this.KickButton.Text = "Kick";
- this.KickButton.UseVisualStyleBackColor = true;
- this.KickButton.Click += new System.EventHandler(this.KickButton_Click);
- this.UsersListbox.FormattingEnabled = true;
- this.UsersListbox.Location = new Point(4, 4);
- this.UsersListbox.Name = "UsersListbox";
- this.UsersListbox.Size = new Size(112, 160);
- this.UsersListbox.TabIndex = 0;
- this.tabPageAdmins.BackColor = Color.Silver;
- this.tabPageAdmins.Controls.Add(this.label44);
- this.tabPageAdmins.Controls.Add(this.label43);
- this.tabPageAdmins.Controls.Add(this.load);
- this.tabPageAdmins.Controls.Add(this.save);
- this.tabPageAdmins.Controls.Add(this.AddAdminManualButton);
- this.tabPageAdmins.Controls.Add(this.AddAdminManualTb);
- this.tabPageAdmins.Controls.Add(this.label27);
- this.tabPageAdmins.Controls.Add(this.label26);
- this.tabPageAdmins.Controls.Add(this.RAdmin);
- this.tabPageAdmins.Controls.Add(this.AAdmin);
- this.tabPageAdmins.Controls.Add(this.AdminListbox);
- this.tabPageAdmins.Controls.Add(this.UsersListbox2);
- this.tabPageAdmins.Location = new Point(4, 22);
- this.tabPageAdmins.Name = "tabPageAdmins";
- this.tabPageAdmins.Size = new Size(424, 172);
- this.tabPageAdmins.TabIndex = 4;
- this.tabPageAdmins.Text = "Admins";
- this.label44.AutoSize = true;
- this.label44.Location = new Point(121, 149);
- this.label44.Name = "label44";
- this.label44.Size = new Size(166, 13);
- this.label44.TabIndex = 14;
- this.label44.Text = "program closes. Same for loading.";
- this.label43.AutoSize = true;
- this.label43.Location = new Point(121, 136);
- this.label43.Name = "label43";
- this.label43.Size = new Size(163, 13);
- this.label43.TabIndex = 13;
- this.label43.Text = "Adminlist will be saved when this ";
- this.load.Location = new Point(220, 110);
- this.load.Name = "load";
- this.load.Size = new Size(75, 23);
- this.load.TabIndex = 12;
- this.load.Text = "Load";
- this.load.UseVisualStyleBackColor = true;
- this.load.Click += new System.EventHandler(this.load_Click);
- this.save.Location = new Point(121, 110);
- this.save.Name = "save";
- this.save.Size = new Size(75, 23);
- this.save.TabIndex = 11;
- this.save.Text = "Save";
- this.save.UseVisualStyleBackColor = true;
- this.save.Click += new System.EventHandler(this.save_Click);
- this.AddAdminManualButton.ImageAlign = ContentAlignment.MiddleLeft;
- this.AddAdminManualButton.Location = new Point(121, 88);
- this.AddAdminManualButton.Name = "AddAdminManualButton";
- this.AddAdminManualButton.RightToLeft = RightToLeft.No;
- this.AddAdminManualButton.Size = new Size(51, 20);
- this.AddAdminManualButton.TabIndex = 9;
- this.AddAdminManualButton.Text = "Add";
- this.AddAdminManualButton.UseVisualStyleBackColor = true;
- this.AddAdminManualButton.Click += new System.EventHandler(this.AddAdminManualButton_Click);
- this.AddAdminManualTb.Location = new Point(178, 88);
- this.AddAdminManualTb.Name = "AddAdminManualTb";
- this.AddAdminManualTb.Size = new Size(117, 20);
- this.AddAdminManualTb.TabIndex = 8;
- this.label27.AutoSize = true;
- this.label27.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label27.ImageAlign = ContentAlignment.MiddleRight;
- this.label27.Location = new Point(303, 9);
- this.label27.Name = "label27";
- this.label27.Size = new Size(65, 13);
- this.label27.TabIndex = 6;
- this.label27.Text = "Admin List";
- this.label26.AutoSize = true;
- this.label26.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label26.Location = new Point(3, 9);
- this.label26.Name = "label26";
- this.label26.Size = new Size(66, 13);
- this.label26.TabIndex = 5;
- this.label26.Text = "Player List";
- this.RAdmin.Image = Resources.delete;
- this.RAdmin.ImageAlign = ContentAlignment.MiddleLeft;
- this.RAdmin.Location = new Point(121, 58);
- this.RAdmin.Name = "RAdmin";
- this.RAdmin.Size = new Size(175, 23);
- this.RAdmin.TabIndex = 4;
- this.RAdmin.Text = "Remove Admin";
- this.RAdmin.UseVisualStyleBackColor = true;
- this.RAdmin.Click += new System.EventHandler(this.RAdmin_Click);
- this.AAdmin.BackgroundImageLayout = ImageLayout.Stretch;
- this.AAdmin.Image = Resources.add;
- this.AAdmin.ImageAlign = ContentAlignment.MiddleLeft;
- this.AAdmin.Location = new Point(121, 29);
- this.AAdmin.Name = "AAdmin";
- this.AAdmin.Size = new Size(175, 23);
- this.AAdmin.TabIndex = 3;
- this.AAdmin.Text = "Add Admin";
- this.AAdmin.UseVisualStyleBackColor = true;
- this.AAdmin.Click += new System.EventHandler(this.AAdmin_Click);
- this.AdminListbox.FormattingEnabled = true;
- this.AdminListbox.Location = new Point(303, 29);
- this.AdminListbox.Name = "AdminListbox";
- this.AdminListbox.Size = new Size(112, 134);
- this.AdminListbox.TabIndex = 2;
- this.UsersListbox2.FormattingEnabled = true;
- this.UsersListbox2.Location = new Point(3, 29);
- this.UsersListbox2.Name = "UsersListbox2";
- this.UsersListbox2.Size = new Size(112, 134);
- this.UsersListbox2.TabIndex = 1;
- this.tabPageBans.BackColor = Color.Silver;
- this.tabPageBans.Controls.Add(this.ClearBanlist);
- this.tabPageBans.Controls.Add(this.label42);
- this.tabPageBans.Controls.Add(this.BanNameTextBox);
- this.tabPageBans.Controls.Add(this.BanMessage);
- this.tabPageBans.Controls.Add(this.label41);
- this.tabPageBans.Controls.Add(this.RemoveBan);
- this.tabPageBans.Controls.Add(this.AddBanButton);
- this.tabPageBans.Controls.Add(this.BanList);
- this.tabPageBans.Controls.Add(this.label38);
- this.tabPageBans.Location = new Point(4, 22);
- this.tabPageBans.Name = "tabPageBans";
- this.tabPageBans.Size = new Size(424, 172);
- this.tabPageBans.TabIndex = 6;
- this.tabPageBans.Text = "Bans";
- this.ClearBanlist.Location = new Point(6, 146);
- this.ClearBanlist.Name = "ClearBanlist";
- this.ClearBanlist.Size = new Size(112, 21);
- this.ClearBanlist.TabIndex = 14;
- this.ClearBanlist.Text = "Clear Ban List";
- this.ClearBanlist.UseVisualStyleBackColor = true;
- this.ClearBanlist.Click += new System.EventHandler(this.ClearBanlist_Click);
- this.label42.AutoSize = true;
- this.label42.Location = new Point(205, 31);
- this.label42.Name = "label42";
- this.label42.Size = new Size(35, 13);
- this.label42.TabIndex = 13;
- this.label42.Text = "Name";
- this.BanNameTextBox.Location = new Point(246, 28);
- this.BanNameTextBox.Name = "BanNameTextBox";
- this.BanNameTextBox.Size = new Size(169, 20);
- this.BanNameTextBox.TabIndex = 12;
- this.BanMessage.Location = new Point(203, 146);
- this.BanMessage.Name = "BanMessage";
- this.BanMessage.Size = new Size(212, 20);
- this.BanMessage.TabIndex = 11;
- this.label41.AutoSize = true;
- this.label41.Location = new Point(124, 149);
- this.label41.Name = "label41";
- this.label41.Size = new Size(72, 13);
- this.label41.TabIndex = 10;
- this.label41.Text = "Ban Message";
- this.RemoveBan.Image = Resources.delete;
- this.RemoveBan.ImageAlign = ContentAlignment.MiddleLeft;
- this.RemoveBan.Location = new Point(124, 55);
- this.RemoveBan.Name = "RemoveBan";
- this.RemoveBan.Size = new Size(75, 23);
- this.RemoveBan.TabIndex = 9;
- this.RemoveBan.Text = "Remove";
- this.RemoveBan.TextAlign = ContentAlignment.MiddleRight;
- this.RemoveBan.UseVisualStyleBackColor = true;
- this.RemoveBan.Click += new System.EventHandler(this.RemoveBan_Click);
- this.AddBanButton.Image = Resources.add;
- this.AddBanButton.ImageAlign = ContentAlignment.MiddleLeft;
- this.AddBanButton.Location = new Point(124, 26);
- this.AddBanButton.Name = "AddBanButton";
- this.AddBanButton.Size = new Size(75, 23);
- this.AddBanButton.TabIndex = 8;
- this.AddBanButton.Text = "Add";
- this.AddBanButton.UseVisualStyleBackColor = true;
- this.AddBanButton.Click += new System.EventHandler(this.AddBanButton_Click);
- this.BanList.FormattingEnabled = true;
- this.BanList.Location = new Point(6, 26);
- this.BanList.Name = "BanList";
- this.BanList.Size = new Size(112, 121);
- this.BanList.TabIndex = 7;
- this.label38.AutoSize = true;
- this.label38.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label38.Location = new Point(3, 9);
- this.label38.Name = "label38";
- this.label38.Size = new Size(94, 13);
- this.label38.TabIndex = 6;
- this.label38.Text = "Banned players";
- this.tabPage1.BackColor = Color.Silver;
- this.tabPage1.Controls.Add(this.AllowGoldCheck);
- this.tabPage1.Controls.Add(this.EnableWithlistCheck);
- this.tabPage1.Controls.Add(this.AllowFriendsCheck);
- this.tabPage1.Controls.Add(this.ClearWhitelistButton);
- this.tabPage1.Controls.Add(this.label25);
- this.tabPage1.Controls.Add(this.WhitelistaddTextbox);
- this.tabPage1.Controls.Add(this.WhitelistKickBox);
- this.tabPage1.Controls.Add(this.label45);
- this.tabPage1.Controls.Add(this.RemoveWhitButton);
- this.tabPage1.Controls.Add(this.AddWhiteButton);
- this.tabPage1.Controls.Add(this.Whitelist);
- this.tabPage1.Controls.Add(this.label46);
- this.tabPage1.Location = new Point(4, 22);
- this.tabPage1.Name = "tabPage1";
- this.tabPage1.Size = new Size(424, 172);
- this.tabPage1.TabIndex = 7;
- this.tabPage1.Text = "Whitelist";
- this.AllowGoldCheck.AutoSize = true;
- this.AllowGoldCheck.Location = new Point(127, 129);
- this.AllowGoldCheck.Name = "AllowGoldCheck";
- this.AllowGoldCheck.Size = new Size(150, 17);
- this.AllowGoldCheck.TabIndex = 26;
- this.AllowGoldCheck.Text = "Allow gold members to join";
- this.AllowGoldCheck.UseVisualStyleBackColor = true;
- this.EnableWithlistCheck.AutoSize = true;
- this.EnableWithlistCheck.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.EnableWithlistCheck.Location = new Point(127, 26);
- this.EnableWithlistCheck.Name = "EnableWithlistCheck";
- this.EnableWithlistCheck.Size = new Size(118, 17);
- this.EnableWithlistCheck.TabIndex = 25;
- this.EnableWithlistCheck.Text = "Enable Whitelist";
- this.EnableWithlistCheck.UseVisualStyleBackColor = true;
- this.AllowFriendsCheck.AutoSize = true;
- this.AllowFriendsCheck.Location = new Point(127, 107);
- this.AllowFriendsCheck.Name = "AllowFriendsCheck";
- this.AllowFriendsCheck.Size = new Size(111, 17);
- this.AllowFriendsCheck.TabIndex = 24;
- this.AllowFriendsCheck.Text = "Allow friend to join";
- this.AllowFriendsCheck.UseVisualStyleBackColor = true;
- this.ClearWhitelistButton.Location = new Point(6, 146);
- this.ClearWhitelistButton.Name = "ClearWhitelistButton";
- this.ClearWhitelistButton.Size = new Size(112, 21);
- this.ClearWhitelistButton.TabIndex = 23;
- this.ClearWhitelistButton.Text = "Clear Ban List";
- this.ClearWhitelistButton.UseVisualStyleBackColor = true;
- this.ClearWhitelistButton.Click += new System.EventHandler(this.ClearWhitelistButton_Click);
- this.label25.AutoSize = true;
- this.label25.Location = new Point(205, 54);
- this.label25.Name = "label25";
- this.label25.Size = new Size(35, 13);
- this.label25.TabIndex = 22;
- this.label25.Text = "Name";
- this.WhitelistaddTextbox.Location = new Point(246, 51);
- this.WhitelistaddTextbox.Name = "WhitelistaddTextbox";
- this.WhitelistaddTextbox.Size = new Size(169, 20);
- this.WhitelistaddTextbox.TabIndex = 21;
- this.WhitelistKickBox.Location = new Point(203, 146);
- this.WhitelistKickBox.Name = "WhitelistKickBox";
- this.WhitelistKickBox.Size = new Size(212, 20);
- this.WhitelistKickBox.TabIndex = 20;
- this.label45.AutoSize = true;
- this.label45.Location = new Point(124, 149);
- this.label45.Name = "label45";
- this.label45.Size = new Size(74, 13);
- this.label45.TabIndex = 19;
- this.label45.Text = "Kick Message";
- this.RemoveWhitButton.Image = Resources.delete;
- this.RemoveWhitButton.ImageAlign = ContentAlignment.MiddleLeft;
- this.RemoveWhitButton.Location = new Point(124, 78);
- this.RemoveWhitButton.Name = "RemoveWhitButton";
- this.RemoveWhitButton.Size = new Size(75, 23);
- this.RemoveWhitButton.TabIndex = 18;
- this.RemoveWhitButton.Text = "Remove";
- this.RemoveWhitButton.TextAlign = ContentAlignment.MiddleRight;
- this.RemoveWhitButton.UseVisualStyleBackColor = true;
- this.RemoveWhitButton.Click += new System.EventHandler(this.RemoveWhitButton_Click);
- this.AddWhiteButton.Image = Resources.add;
- this.AddWhiteButton.ImageAlign = ContentAlignment.MiddleLeft;
- this.AddWhiteButton.Location = new Point(124, 49);
- this.AddWhiteButton.Name = "AddWhiteButton";
- this.AddWhiteButton.Size = new Size(75, 23);
- this.AddWhiteButton.TabIndex = 17;
- this.AddWhiteButton.Text = "Add";
- this.AddWhiteButton.UseVisualStyleBackColor = true;
- this.AddWhiteButton.Click += new System.EventHandler(this.AddWhiteButton_Click);
- this.Whitelist.FormattingEnabled = true;
- this.Whitelist.Location = new Point(6, 26);
- this.Whitelist.Name = "Whitelist";
- this.Whitelist.Size = new Size(112, 121);
- this.Whitelist.TabIndex = 16;
- this.label46.AutoSize = true;
- this.label46.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label46.Location = new Point(3, 9);
- this.label46.Name = "label46";
- this.label46.Size = new Size(114, 13);
- this.label46.TabIndex = 15;
- this.label46.Text = "Whitelisted players";
- this.tabPage2.BackColor = Color.Silver;
- this.tabPage2.Controls.Add(this.label52);
- this.tabPage2.Controls.Add(this.label51);
- this.tabPage2.Controls.Add(this.label50);
- this.tabPage2.Controls.Add(this.label49);
- this.tabPage2.Controls.Add(this.label48);
- this.tabPage2.Controls.Add(this.label47);
- this.tabPage2.Controls.Add(this.groupBox4);
- this.tabPage2.Controls.Add(this.groupBox3);
- this.tabPage2.Controls.Add(this.groupBox2);
- this.tabPage2.Controls.Add(this.groupBox1);
- this.tabPage2.Controls.Add(this.EnableTeamColors);
- this.tabPage2.Location = new Point(4, 22);
- this.tabPage2.Name = "tabPage2";
- this.tabPage2.Size = new Size(424, 172);
- this.tabPage2.TabIndex = 8;
- this.tabPage2.Text = "Auto team";
- this.label52.AutoSize = true;
- this.label52.Location = new Point(274, 149);
- this.label52.Name = "label52";
- this.label52.Size = new Size(52, 13);
- this.label52.TabIndex = 36;
- this.label52.Text = "4. Normal";
- this.label51.AutoSize = true;
- this.label51.Location = new Point(273, 136);
- this.label51.Name = "label51";
- this.label51.Size = new Size(58, 13);
- this.label51.TabIndex = 35;
- this.label51.Text = "3. Has edit";
- this.label50.AutoSize = true;
- this.label50.Location = new Point(274, 123);
- this.label50.Name = "label50";
- this.label50.Size = new Size(71, 13);
- this.label50.TabIndex = 34;
- this.label50.Text = "2. Whitelisted";
- this.label49.AutoSize = true;
- this.label49.Location = new Point(274, 110);
- this.label49.Name = "label49";
- this.label49.Size = new Size(48, 13);
- this.label49.TabIndex = 33;
- this.label49.Text = "1. Admin";
- this.label48.AutoSize = true;
- this.label48.Location = new Point(273, 93);
- this.label48.Name = "label48";
- this.label48.Size = new Size(79, 13);
- this.label48.TabIndex = 32;
- this.label48.Text = "Order of colors:";
- this.label47.AutoSize = true;
- this.label47.Location = new Point(239, 93);
- this.label47.Name = "label47";
- this.label47.Size = new Size(0, 13);
- this.label47.TabIndex = 31;
- this.groupBox4.Controls.Add(this.Radio_H_Y);
- this.groupBox4.Controls.Add(this.Radio_H_N);
- this.groupBox4.Controls.Add(this.Radio_H_C);
- this.groupBox4.Controls.Add(this.Radio_H_G);
- this.groupBox4.Controls.Add(this.Radio_H_B);
- this.groupBox4.Controls.Add(this.Radio_H_P);
- this.groupBox4.Controls.Add(this.Radio_H_R);
- this.groupBox4.Location = new Point(270, 26);
- this.groupBox4.Name = "groupBox4";
- this.groupBox4.Size = new Size(145, 60);
- this.groupBox4.TabIndex = 30;
- this.groupBox4.TabStop = false;
- this.groupBox4.Text = "Has edit";
- this.Radio_H_Y.AutoSize = true;
- this.Radio_H_Y.Image = Resources.cm5;
- this.Radio_H_Y.Location = new Point(78, 38);
- this.Radio_H_Y.Name = "Radio_H_Y";
- this.Radio_H_Y.Size = new Size(30, 16);
- this.Radio_H_Y.TabIndex = 6;
- this.Radio_H_Y.UseVisualStyleBackColor = true;
- this.Radio_H_N.AutoSize = true;
- this.Radio_H_N.Image = Resources.cm6;
- this.Radio_H_N.Location = new Point(41, 38);
- this.Radio_H_N.Name = "Radio_H_N";
- this.Radio_H_N.Size = new Size(30, 16);
- this.Radio_H_N.TabIndex = 5;
- this.Radio_H_N.UseVisualStyleBackColor = true;
- this.Radio_H_C.AutoSize = true;
- this.Radio_H_C.Image = Resources.cm3;
- this.Radio_H_C.Location = new Point(114, 19);
- this.Radio_H_C.Name = "Radio_H_C";
- this.Radio_H_C.Size = new Size(30, 16);
- this.Radio_H_C.TabIndex = 4;
- this.Radio_H_C.UseVisualStyleBackColor = true;
- this.Radio_H_G.AutoSize = true;
- this.Radio_H_G.Image = Resources.cm2;
- this.Radio_H_G.Location = new Point(78, 19);
- this.Radio_H_G.Name = "Radio_H_G";
- this.Radio_H_G.Size = new Size(30, 16);
- this.Radio_H_G.TabIndex = 3;
- this.Radio_H_G.UseVisualStyleBackColor = true;
- this.Radio_H_B.AutoSize = true;
- this.Radio_H_B.Image = Resources.cm1;
- this.Radio_H_B.Location = new Point(42, 19);
- this.Radio_H_B.Name = "Radio_H_B";
- this.Radio_H_B.Size = new Size(30, 16);
- this.Radio_H_B.TabIndex = 2;
- this.Radio_H_B.UseVisualStyleBackColor = true;
- this.Radio_H_P.AutoSize = true;
- this.Radio_H_P.Checked = true;
- this.Radio_H_P.Image = Resources.cm4;
- this.Radio_H_P.Location = new Point(7, 38);
- this.Radio_H_P.Name = "Radio_H_P";
- this.Radio_H_P.Size = new Size(30, 16);
- this.Radio_H_P.TabIndex = 1;
- this.Radio_H_P.TabStop = true;
- this.Radio_H_P.UseVisualStyleBackColor = true;
- this.Radio_H_R.AutoSize = true;
- this.Radio_H_R.Image = Resources.cm0;
- this.Radio_H_R.Location = new Point(6, 19);
- this.Radio_H_R.Name = "Radio_H_R";
- this.Radio_H_R.Size = new Size(30, 16);
- this.Radio_H_R.TabIndex = 0;
- this.Radio_H_R.UseVisualStyleBackColor = true;
- this.groupBox3.Controls.Add(this.Radio_N_Y);
- this.groupBox3.Controls.Add(this.Radio_N_N);
- this.groupBox3.Controls.Add(this.Radio_N_C);
- this.groupBox3.Controls.Add(this.Radio_N_G);
- this.groupBox3.Controls.Add(this.Radio_N_B);
- this.groupBox3.Controls.Add(this.Radio_N_P);
- this.groupBox3.Controls.Add(this.Radio_N_R);
- this.groupBox3.Location = new Point(5, 110);
- this.groupBox3.Name = "groupBox3";
- this.groupBox3.Size = new Size(259, 37);
- this.groupBox3.TabIndex = 29;
- this.groupBox3.TabStop = false;
- this.groupBox3.Text = "Normal";
- this.Radio_N_Y.AutoSize = true;
- this.Radio_N_Y.Image = Resources.cm5;
- this.Radio_N_Y.Location = new Point(186, 19);
- this.Radio_N_Y.Name = "Radio_N_Y";
- this.Radio_N_Y.Size = new Size(30, 16);
- this.Radio_N_Y.TabIndex = 9;
- this.Radio_N_Y.UseVisualStyleBackColor = true;
- this.Radio_N_N.AutoSize = true;
- this.Radio_N_N.Checked = true;
- this.Radio_N_N.Image = Resources.cm6;
- this.Radio_N_N.Location = new Point(222, 19);
- this.Radio_N_N.Name = "Radio_N_N";
- this.Radio_N_N.Size = new Size(30, 16);
- this.Radio_N_N.TabIndex = 5;
- this.Radio_N_N.TabStop = true;
- this.Radio_N_N.UseVisualStyleBackColor = true;
- this.Radio_N_C.AutoSize = true;
- this.Radio_N_C.Image = Resources.cm3;
- this.Radio_N_C.Location = new Point(114, 19);
- this.Radio_N_C.Name = "Radio_N_C";
- this.Radio_N_C.Size = new Size(30, 16);
- this.Radio_N_C.TabIndex = 4;
- this.Radio_N_C.UseVisualStyleBackColor = true;
- this.Radio_N_G.AutoSize = true;
- this.Radio_N_G.Image = Resources.cm2;
- this.Radio_N_G.Location = new Point(78, 19);
- this.Radio_N_G.Name = "Radio_N_G";
- this.Radio_N_G.Size = new Size(30, 16);
- this.Radio_N_G.TabIndex = 3;
- this.Radio_N_G.UseVisualStyleBackColor = true;
- this.Radio_N_B.AutoSize = true;
- this.Radio_N_B.Image = Resources.cm1;
- this.Radio_N_B.Location = new Point(41, 19);
- this.Radio_N_B.Name = "Radio_N_B";
- this.Radio_N_B.Size = new Size(30, 16);
- this.Radio_N_B.TabIndex = 2;
- this.Radio_N_B.UseVisualStyleBackColor = true;
- this.Radio_N_P.AutoSize = true;
- this.Radio_N_P.Image = Resources.cm4;
- this.Radio_N_P.Location = new Point(150, 19);
- this.Radio_N_P.Name = "Radio_N_P";
- this.Radio_N_P.Size = new Size(30, 16);
- this.Radio_N_P.TabIndex = 1;
- this.Radio_N_P.UseVisualStyleBackColor = true;
- this.Radio_N_R.AutoSize = true;
- this.Radio_N_R.Image = Resources.cm0;
- this.Radio_N_R.Location = new Point(6, 19);
- this.Radio_N_R.Name = "Radio_N_R";
- this.Radio_N_R.Size = new Size(30, 16);
- this.Radio_N_R.TabIndex = 0;
- this.Radio_N_R.UseVisualStyleBackColor = true;
- this.groupBox2.Controls.Add(this.Radio_W_Y);
- this.groupBox2.Controls.Add(this.Radio_W_N);
- this.groupBox2.Controls.Add(this.Radio_W_C);
- this.groupBox2.Controls.Add(this.Radio_W_G);
- this.groupBox2.Controls.Add(this.Radio_W_B);
- this.groupBox2.Controls.Add(this.Radio_W_P);
- this.groupBox2.Controls.Add(this.Radio_W_R);
- this.groupBox2.Location = new Point(5, 67);
- this.groupBox2.Name = "groupBox2";
- this.groupBox2.Size = new Size(259, 37);
- this.groupBox2.TabIndex = 29;
- this.groupBox2.TabStop = false;
- this.groupBox2.Text = "Whitelisted";
- this.Radio_W_Y.AutoSize = true;
- this.Radio_W_Y.Image = Resources.cm5;
- this.Radio_W_Y.Location = new Point(186, 19);
- this.Radio_W_Y.Name = "Radio_W_Y";
- this.Radio_W_Y.Size = new Size(30, 16);
- this.Radio_W_Y.TabIndex = 8;
- this.Radio_W_Y.UseVisualStyleBackColor = true;
- this.Radio_W_N.AutoSize = true;
- this.Radio_W_N.Image = Resources.cm6;
- this.Radio_W_N.Location = new Point(222, 19);
- this.Radio_W_N.Name = "Radio_W_N";
- this.Radio_W_N.Size = new Size(30, 16);
- this.Radio_W_N.TabIndex = 5;
- this.Radio_W_N.UseVisualStyleBackColor = true;
- this.Radio_W_C.AutoSize = true;
- this.Radio_W_C.Checked = true;
- this.Radio_W_C.Image = Resources.cm3;
- this.Radio_W_C.Location = new Point(114, 19);
- this.Radio_W_C.Name = "Radio_W_C";
- this.Radio_W_C.Size = new Size(30, 16);
- this.Radio_W_C.TabIndex = 4;
- this.Radio_W_C.TabStop = true;
- this.Radio_W_C.UseVisualStyleBackColor = true;
- this.Radio_W_G.AutoSize = true;
- this.Radio_W_G.Image = Resources.cm2;
- this.Radio_W_G.Location = new Point(78, 19);
- this.Radio_W_G.Name = "Radio_W_G";
- this.Radio_W_G.Size = new Size(30, 16);
- this.Radio_W_G.TabIndex = 3;
- this.Radio_W_G.UseVisualStyleBackColor = true;
- this.Radio_W_B.AutoSize = true;
- this.Radio_W_B.Image = Resources.cm1;
- this.Radio_W_B.Location = new Point(42, 19);
- this.Radio_W_B.Name = "Radio_W_B";
- this.Radio_W_B.Size = new Size(30, 16);
- this.Radio_W_B.TabIndex = 2;
- this.Radio_W_B.UseVisualStyleBackColor = true;
- this.Radio_W_P.AutoSize = true;
- this.Radio_W_P.Image = Resources.cm4;
- this.Radio_W_P.Location = new Point(150, 19);
- this.Radio_W_P.Name = "Radio_W_P";
- this.Radio_W_P.Size = new Size(30, 16);
- this.Radio_W_P.TabIndex = 1;
- this.Radio_W_P.UseVisualStyleBackColor = true;
- this.Radio_W_R.AutoSize = true;
- this.Radio_W_R.Image = Resources.cm0;
- this.Radio_W_R.Location = new Point(6, 19);
- this.Radio_W_R.Name = "Radio_W_R";
- this.Radio_W_R.Size = new Size(30, 16);
- this.Radio_W_R.TabIndex = 0;
- this.Radio_W_R.UseVisualStyleBackColor = true;
- this.groupBox1.Controls.Add(this.Radio_A_Y);
- this.groupBox1.Controls.Add(this.Radio_A_N);
- this.groupBox1.Controls.Add(this.Radio_A_C);
- this.groupBox1.Controls.Add(this.Radio_A_G);
- this.groupBox1.Controls.Add(this.Radio_A_B);
- this.groupBox1.Controls.Add(this.Radio_A_P);
- this.groupBox1.Controls.Add(this.Radio_A_Red);
- this.groupBox1.Location = new Point(5, 26);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new Size(259, 37);
- this.groupBox1.TabIndex = 28;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "Admins";
- this.Radio_A_Y.AutoSize = true;
- this.Radio_A_Y.Image = Resources.cm5;
- this.Radio_A_Y.Location = new Point(186, 19);
- this.Radio_A_Y.Name = "Radio_A_Y";
- this.Radio_A_Y.Size = new Size(30, 16);
- this.Radio_A_Y.TabIndex = 7;
- this.Radio_A_Y.UseVisualStyleBackColor = true;
- this.Radio_A_N.AutoSize = true;
- this.Radio_A_N.Image = Resources.cm6;
- this.Radio_A_N.Location = new Point(222, 19);
- this.Radio_A_N.Name = "Radio_A_N";
- this.Radio_A_N.Size = new Size(30, 16);
- this.Radio_A_N.TabIndex = 5;
- this.Radio_A_N.UseVisualStyleBackColor = true;
- this.Radio_A_C.AutoSize = true;
- this.Radio_A_C.Image = Resources.cm3;
- this.Radio_A_C.Location = new Point(114, 19);
- this.Radio_A_C.Name = "Radio_A_C";
- this.Radio_A_C.Size = new Size(30, 16);
- this.Radio_A_C.TabIndex = 4;
- this.Radio_A_C.UseVisualStyleBackColor = true;
- this.Radio_A_G.AutoSize = true;
- this.Radio_A_G.Image = Resources.cm2;
- this.Radio_A_G.Location = new Point(78, 19);
- this.Radio_A_G.Name = "Radio_A_G";
- this.Radio_A_G.Size = new Size(30, 16);
- this.Radio_A_G.TabIndex = 3;
- this.Radio_A_G.UseVisualStyleBackColor = true;
- this.Radio_A_B.AutoSize = true;
- this.Radio_A_B.Image = Resources.cm1;
- this.Radio_A_B.Location = new Point(42, 19);
- this.Radio_A_B.Name = "Radio_A_B";
- this.Radio_A_B.Size = new Size(30, 16);
- this.Radio_A_B.TabIndex = 2;
- this.Radio_A_B.UseVisualStyleBackColor = true;
- this.Radio_A_P.AutoSize = true;
- this.Radio_A_P.Image = Resources.cm4;
- this.Radio_A_P.Location = new Point(150, 19);
- this.Radio_A_P.Name = "Radio_A_P";
- this.Radio_A_P.Size = new Size(30, 16);
- this.Radio_A_P.TabIndex = 1;
- this.Radio_A_P.UseVisualStyleBackColor = true;
- this.Radio_A_Red.AutoSize = true;
- this.Radio_A_Red.Checked = true;
- this.Radio_A_Red.Image = Resources.cm0;
- this.Radio_A_Red.Location = new Point(6, 19);
- this.Radio_A_Red.Name = "Radio_A_Red";
- this.Radio_A_Red.Size = new Size(30, 16);
- this.Radio_A_Red.TabIndex = 0;
- this.Radio_A_Red.TabStop = true;
- this.Radio_A_Red.UseVisualStyleBackColor = true;
- this.EnableTeamColors.AutoSize = true;
- this.EnableTeamColors.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.EnableTeamColors.Location = new Point(4, 3);
- this.EnableTeamColors.Name = "EnableTeamColors";
- this.EnableTeamColors.Size = new Size(164, 17);
- this.EnableTeamColors.TabIndex = 26;
- this.EnableTeamColors.Text = "Enable Auto Teamcolors";
- this.EnableTeamColors.UseVisualStyleBackColor = true;
- this.tabPageOthers.BackColor = Color.Silver;
- this.tabPageOthers.Controls.Add(this.ParametersHelp1);
- this.tabPageOthers.Controls.Add(this.KillWinnerCheckbox);
- this.tabPageOthers.Controls.Add(this.ResetWinnerCheckbox);
- this.tabPageOthers.Controls.Add(this.KillallCheckbox);
- this.tabPageOthers.Controls.Add(this.FillTimeout);
- this.tabPageOthers.Controls.Add(this.label24);
- this.tabPageOthers.Controls.Add(this.label23);
- this.tabPageOthers.Controls.Add(this.FillBlockId);
- this.tabPageOthers.Controls.Add(this.FillWorldButton);
- this.tabPageOthers.Controls.Add(this.label40);
- this.tabPageOthers.Controls.Add(this.KickNinjaRobberCheckbox);
- this.tabPageOthers.Controls.Add(this.WinTB);
- this.tabPageOthers.Controls.Add(this.WinMessageCheck);
- this.tabPageOthers.Controls.Add(this.ResetAllCheckbox);
- this.tabPageOthers.Controls.Add(this.label36);
- this.tabPageOthers.Controls.Add(this.WinCrownAmount);
- this.tabPageOthers.Controls.Add(this.WinCoinAmount);
- this.tabPageOthers.Controls.Add(this.WinsCrownCheck);
- this.tabPageOthers.Controls.Add(this.WinsCoinCheck);
- this.tabPageOthers.Controls.Add(this.WinsCheck);
- this.tabPageOthers.Controls.Add(this.label35);
- this.tabPageOthers.Location = new Point(4, 22);
- this.tabPageOthers.Name = "tabPageOthers";
- this.tabPageOthers.Size = new Size(424, 172);
- this.tabPageOthers.TabIndex = 5;
- this.tabPageOthers.Text = "Other";
- this.ParametersHelp1.BackgroundImage = Resources.help;
- this.ParametersHelp1.BackgroundImageLayout = ImageLayout.Stretch;
- this.ParametersHelp1.Location = new Point(126, 149);
- this.ParametersHelp1.Name = "ParametersHelp1";
- this.ParametersHelp1.Size = new Size(22, 20);
- this.ParametersHelp1.TabIndex = 27;
- this.toolTipAdmin.SetToolTip(this.ParametersHelp1, "Help about the joinmessages");
- this.ParametersHelp1.UseVisualStyleBackColor = true;
- this.ParametersHelp1.Click += new System.EventHandler(this.button2_Click);
- this.KillWinnerCheckbox.AutoSize = true;
- this.KillWinnerCheckbox.Location = new Point(79, 109);
- this.KillWinnerCheckbox.Name = "KillWinnerCheckbox";
- this.KillWinnerCheckbox.Size = new Size(73, 17);
- this.KillWinnerCheckbox.TabIndex = 26;
- this.KillWinnerCheckbox.Text = "Kill winner";
- this.KillWinnerCheckbox.UseVisualStyleBackColor = true;
- this.ResetWinnerCheckbox.AutoSize = true;
- this.ResetWinnerCheckbox.Location = new Point(79, 86);
- this.ResetWinnerCheckbox.Name = "ResetWinnerCheckbox";
- this.ResetWinnerCheckbox.Size = new Size(88, 17);
- this.ResetWinnerCheckbox.TabIndex = 25;
- this.ResetWinnerCheckbox.Text = "Reset winner";
- this.ResetWinnerCheckbox.UseVisualStyleBackColor = true;
- this.KillallCheckbox.AutoSize = true;
- this.KillallCheckbox.Location = new Point(4, 109);
- this.KillallCheckbox.Name = "KillallCheckbox";
- this.KillallCheckbox.Size = new Size(53, 17);
- this.KillallCheckbox.TabIndex = 24;
- this.KillallCheckbox.Text = "Kill All";
- this.KillallCheckbox.UseVisualStyleBackColor = true;
- this.FillTimeout.Location = new Point(376, 63);
- NumericUpDown arg_6BAE_0 = this.FillTimeout;
- int[] array16 = new int[4];
- array16[0] = 5;
- arg_6BAE_0.Minimum = new decimal(array16);
- this.FillTimeout.Name = "FillTimeout";
- this.FillTimeout.Size = new Size(39, 20);
- this.FillTimeout.TabIndex = 23;
- NumericUpDown arg_6BFF_0 = this.FillTimeout;
- int[] array17 = new int[4];
- array17[0] = 10;
- arg_6BFF_0.Value = new decimal(array17);
- this.label24.AutoSize = true;
- this.label24.Location = new Point(325, 65);
- this.label24.Name = "label24";
- this.label24.Size = new Size(45, 13);
- this.label24.TabIndex = 22;
- this.label24.Text = "Timeout";
- this.label23.AutoSize = true;
- this.label23.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label23.Location = new Point(350, 45);
- this.label23.Name = "label23";
- this.label23.Size = new Size(20, 13);
- this.label23.TabIndex = 21;
- this.label23.Text = "ID";
- this.FillBlockId.Location = new Point(376, 40);
- NumericUpDown arg_6D1E_0 = this.FillBlockId;
- int[] array18 = new int[4];
- array18[0] = 9000;
- arg_6D1E_0.Maximum = new decimal(array18);
- this.FillBlockId.Name = "FillBlockId";
- this.FillBlockId.Size = new Size(39, 20);
- this.FillBlockId.TabIndex = 20;
- this.FillWorldButton.Location = new Point(246, 40);
- this.FillWorldButton.Name = "FillWorldButton";
- this.FillWorldButton.Size = new Size(80, 23);
- this.FillWorldButton.TabIndex = 19;
- this.FillWorldButton.Text = "Fill World";
- this.FillWorldButton.UseVisualStyleBackColor = true;
- this.FillWorldButton.Click += new System.EventHandler(this.FillWorldButton_Click);
- this.label40.AutoSize = true;
- this.label40.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label40.Location = new Point(243, 0);
- this.label40.Name = "label40";
- this.label40.Size = new Size(83, 13);
- this.label40.TabIndex = 18;
- this.label40.Text = "Other options";
- this.KickNinjaRobberCheckbox.AutoSize = true;
- this.KickNinjaRobberCheckbox.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
- this.KickNinjaRobberCheckbox.Location = new Point(246, 18);
- this.KickNinjaRobberCheckbox.Name = "KickNinjaRobberCheckbox";
- this.KickNinjaRobberCheckbox.Size = new Size(169, 17);
- this.KickNinjaRobberCheckbox.TabIndex = 8;
- this.KickNinjaRobberCheckbox.Text = "Kick Ninja's and Robbers";
- this.KickNinjaRobberCheckbox.UseVisualStyleBackColor = true;
- this.WinTB.Location = new Point(5, 149);
- this.WinTB.Name = "WinTB";
- this.WinTB.Size = new Size(115, 20);
- this.WinTB.TabIndex = 16;
- this.WinTB.Text = "has won!";
- this.WinMessageCheck.AutoSize = true;
- this.WinMessageCheck.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.WinMessageCheck.Location = new Point(5, 132);
- this.WinMessageCheck.Name = "WinMessageCheck";
- this.WinMessageCheck.Size = new Size(142, 17);
- this.WinMessageCheck.TabIndex = 14;
- this.WinMessageCheck.Text = "Enable win Message";
- this.WinMessageCheck.UseVisualStyleBackColor = true;
- this.ResetAllCheckbox.AutoSize = true;
- this.ResetAllCheckbox.Location = new Point(4, 86);
- this.ResetAllCheckbox.Name = "ResetAllCheckbox";
- this.ResetAllCheckbox.Size = new Size(68, 17);
- this.ResetAllCheckbox.TabIndex = 13;
- this.ResetAllCheckbox.Text = "Reset All";
- this.ResetAllCheckbox.UseVisualStyleBackColor = true;
- this.label36.AutoSize = true;
- this.label36.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label36.Location = new Point(115, 18);
- this.label36.Name = "label36";
- this.label36.Size = new Size(49, 13);
- this.label36.TabIndex = 12;
- this.label36.Text = "Amount";
- this.WinCrownAmount.Location = new Point(132, 63);
- this.WinCrownAmount.Name = "WinCrownAmount";
- this.WinCrownAmount.Size = new Size(32, 20);
- this.WinCrownAmount.TabIndex = 11;
- this.WinCoinAmount.Location = new Point(132, 40);
- this.WinCoinAmount.Name = "WinCoinAmount";
- this.WinCoinAmount.Size = new Size(32, 20);
- this.WinCoinAmount.TabIndex = 10;
- this.WinsCrownCheck.AutoSize = true;
- this.WinsCrownCheck.Location = new Point(4, 63);
- this.WinsCrownCheck.Name = "WinsCrownCheck";
- this.WinsCrownCheck.Size = new Size(125, 17);
- this.WinsCrownCheck.TabIndex = 9;
- this.WinsCrownCheck.Text = "+win on crown touch";
- this.WinsCrownCheck.UseVisualStyleBackColor = true;
- this.WinsCoinCheck.AutoSize = true;
- this.WinsCoinCheck.Location = new Point(4, 40);
- this.WinsCoinCheck.Name = "WinsCoinCheck";
- this.WinsCoinCheck.Size = new Size(116, 17);
- this.WinsCoinCheck.TabIndex = 8;
- this.WinsCoinCheck.Text = "+win on coin touch";
- this.WinsCoinCheck.UseVisualStyleBackColor = true;
- this.WinsCheck.AutoSize = true;
- this.WinsCheck.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.WinsCheck.Location = new Point(4, 17);
- this.WinsCheck.Name = "WinsCheck";
- this.WinsCheck.Size = new Size(94, 17);
- this.WinsCheck.TabIndex = 7;
- this.WinsCheck.Text = "Enable wins";
- this.WinsCheck.UseVisualStyleBackColor = true;
- this.label35.AutoSize = true;
- this.label35.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label35.Location = new Point(1, 0);
- this.label35.Name = "label35";
- this.label35.Size = new Size(35, 13);
- this.label35.TabIndex = 6;
- this.label35.Text = "Wins";
- this.panel2.BackColor = SystemColors.ActiveBorder;
- this.panel2.Controls.Add(this.KillAllbutton);
- this.panel2.Controls.Add(this.RespawnallButton);
- this.panel2.Controls.Add(this.LoadLevelButton);
- this.panel2.Controls.Add(this.label12);
- this.panel2.Controls.Add(this.SaveButton);
- this.panel2.Controls.Add(this.label11);
- this.panel2.Location = new Point(299, 29);
- this.panel2.Name = "panel2";
- this.panel2.Size = new Size(142, 173);
- this.panel2.TabIndex = 2;
- this.KillAllbutton.Enabled = false;
- this.KillAllbutton.Location = new Point(7, 119);
- this.KillAllbutton.Name = "KillAllbutton";
- this.KillAllbutton.Size = new Size(126, 24);
- this.KillAllbutton.TabIndex = 15;
- this.KillAllbutton.Text = "Kill all";
- this.KillAllbutton.UseVisualStyleBackColor = true;
- this.KillAllbutton.Click += new System.EventHandler(this.KillAllbutton_Click);
- this.RespawnallButton.Enabled = false;
- this.RespawnallButton.Location = new Point(7, 94);
- this.RespawnallButton.Name = "RespawnallButton";
- this.RespawnallButton.Size = new Size(126, 24);
- this.RespawnallButton.TabIndex = 14;
- this.RespawnallButton.Text = "Respawn all";
- this.RespawnallButton.UseVisualStyleBackColor = true;
- this.RespawnallButton.Click += new System.EventHandler(this.RespawnallButton_Click);
- this.LoadLevelButton.Enabled = false;
- this.LoadLevelButton.Location = new Point(7, 68);
- this.LoadLevelButton.Name = "LoadLevelButton";
- this.LoadLevelButton.Size = new Size(126, 24);
- this.LoadLevelButton.TabIndex = 13;
- this.LoadLevelButton.Text = "Load level";
- this.LoadLevelButton.UseVisualStyleBackColor = true;
- this.LoadLevelButton.Click += new System.EventHandler(this.LoadLevelButton_Click);
- this.label12.AutoSize = true;
- this.label12.ForeColor = Color.Red;
- this.label12.Location = new Point(1, 151);
- this.label12.Name = "label12";
- this.label12.Size = new Size(132, 13);
- this.label12.TabIndex = 12;
- this.label12.Text = "Must be owner of the level";
- this.SaveButton.Enabled = false;
- this.SaveButton.Location = new Point(7, 45);
- this.SaveButton.Name = "SaveButton";
- this.SaveButton.Size = new Size(126, 24);
- this.SaveButton.TabIndex = 9;
- this.SaveButton.Text = "Save Level";
- this.SaveButton.UseVisualStyleBackColor = true;
- this.SaveButton.Click += new System.EventHandler(this.SaveButton_Click);
- this.label11.AutoSize = true;
- this.label11.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label11.Location = new Point(11, 9);
- this.label11.Name = "label11";
- this.label11.Size = new Size(122, 20);
- this.label11.TabIndex = 8;
- this.label11.Text = "Quick Buttons";
- this.RSmileyTimer.Interval = 250;
- this.RSmileyTimer.Tick += new System.EventHandler(this.RSmileyTimer_Tick);
- this.RAuraTimer.Interval = 250;
- this.RAuraTimer.Tick += new System.EventHandler(this.RAuraTimer_Tick);
- this.toolTipAdmin.AutoPopDelay = 50000;
- this.toolTipAdmin.BackColor = Color.White;
- this.toolTipAdmin.InitialDelay = 500;
- this.toolTipAdmin.ReshowDelay = 100;
- this.toolTipAdmin.ToolTipIcon = ToolTipIcon.Info;
- this.toolTipAdmin.ToolTipTitle = "Help";
- this.backgroundWorkerFillWorld.DoWork += new DoWorkEventHandler(this.backgroundWorkerFillWorld_DoWork);
- this.Site_Button.Location = new Point(13, 469);
- this.Site_Button.Name = "Site_Button";
- this.Site_Button.Size = new Size(209, 23);
- this.Site_Button.TabIndex = 4;
- this.Site_Button.Text = "Site (Commands list)";
- this.Site_Button.UseVisualStyleBackColor = true;
- this.Site_Button.Click += new System.EventHandler(this.Site_Button_Click);
- this.CreditsButton.Location = new Point(232, 469);
- this.CreditsButton.Name = "CreditsButton";
- this.CreditsButton.Size = new Size(209, 23);
- this.CreditsButton.TabIndex = 5;
- this.CreditsButton.Text = "Credits";
- this.CreditsButton.UseVisualStyleBackColor = true;
- this.CreditsButton.Click += new System.EventHandler(this.CreditsButton_Click);
- this.label3.AutoSize = true;
- this.label3.BackColor = Color.Transparent;
- this.label3.Location = new Point(14, 495);
- this.label3.Name = "label3";
- this.label3.Size = new Size(302, 13);
- this.label3.TabIndex = 6;
- this.label3.Text = "The bot will automatically check for updates. This is version:";
- this.VersionLabel.AutoSize = true;
- this.VersionLabel.BackColor = Color.Transparent;
- this.VersionLabel.Location = new Point(311, 495);
- this.VersionLabel.Name = "VersionLabel";
- this.VersionLabel.Size = new Size(57, 13);
- this.VersionLabel.TabIndex = 7;
- this.VersionLabel.Text = "%version%";
- this.menuStripMain.Items.AddRange(new ToolStripItem[]
- {
- this.OptionsDropdown
- });
- this.menuStripMain.Location = new Point(0, 0);
- this.menuStripMain.Name = "menuStripMain";
- this.menuStripMain.Size = new Size(457, 24);
- this.menuStripMain.TabIndex = 8;
- this.menuStripMain.Text = "menuStrip1";
- this.OptionsDropdown.DropDownItems.AddRange(new ToolStripItem[]
- {
- this.BackgroundOptions
- });
- this.OptionsDropdown.Image = Resources.setting_tools;
- this.OptionsDropdown.Name = "OptionsDropdown";
- this.OptionsDropdown.Size = new Size(77, 20);
- this.OptionsDropdown.Text = "Options";
- this.BackgroundOptions.DropDownItems.AddRange(new ToolStripItem[]
- {
- this.DefaultBackground,
- this.SpaceBackground,
- this.customeBackground
- });
- this.BackgroundOptions.Name = "BackgroundOptions";
- this.BackgroundOptions.Size = new Size(138, 22);
- this.BackgroundOptions.Text = "Background";
- this.DefaultBackground.CheckOnClick = true;
- this.DefaultBackground.Name = "DefaultBackground";
- this.DefaultBackground.Size = new Size(122, 22);
- this.DefaultBackground.Text = "Default";
- this.DefaultBackground.Click += new System.EventHandler(this.defaultToolStripMenuItem_Click);
- this.SpaceBackground.CheckOnClick = true;
- this.SpaceBackground.Name = "SpaceBackground";
- this.SpaceBackground.Size = new Size(122, 22);
- this.SpaceBackground.Text = "Space";
- this.SpaceBackground.Click += new System.EventHandler(this.SpaceBackground_Click);
- this.customeBackground.Name = "customeBackground";
- this.customeBackground.Size = new Size(122, 22);
- this.customeBackground.Text = "Custome";
- this.customeBackground.Click += new System.EventHandler(this.customeToolStripMenuItem_Click);
- this.openBackgroundDialog.FileName = "openFileDialog1";
- this.pictureBox1.Image = Resources.botbanner1;
- this.pictureBox1.Location = new Point(13, 412);
- this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new Size(428, 50);
- this.pictureBox1.TabIndex = 3;
- this.pictureBox1.TabStop = false;
- base.AutoScaleDimensions = new SizeF(6f, 13f);
- base.AutoScaleMode = AutoScaleMode.Font;
- this.BackgroundImageLayout = ImageLayout.Stretch;
- base.ClientSize = new Size(457, 516);
- base.Controls.Add(this.VersionLabel);
- base.Controls.Add(this.label3);
- base.Controls.Add(this.CreditsButton);
- base.Controls.Add(this.Site_Button);
- base.Controls.Add(this.pictureBox1);
- base.Controls.Add(this.panel2);
- base.Controls.Add(this.tabControlMenu);
- base.Controls.Add(this.panel1);
- base.Controls.Add(this.menuStripMain);
- base.FormBorderStyle = FormBorderStyle.FixedSingle;
- base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
- base.MainMenuStrip = this.menuStripMain;
- base.Name = "Main";
- this.Text = "MRbot";
- base.Activated += new System.EventHandler(this.Main_Activated);
- base.FormClosed += new FormClosedEventHandler(this.Main_FormClosed);
- base.Load += new System.EventHandler(this.Main_Load);
- this.panel1.ResumeLayout(false);
- this.panel1.PerformLayout();
- this.tabControlMenu.ResumeLayout(false);
- this.tabPageJoinLeave.ResumeLayout(false);
- this.tabPageJoinLeave.PerformLayout();
- this.tabPageSnakeRain.ResumeLayout(false);
- this.tabPageSnakeRain.PerformLayout();
- ((ISupportInitialize)this.RainWait).EndInit();
- ((ISupportInitialize)this.RainID).EndInit();
- this.RainPanel.ResumeLayout(false);
- this.RainPanel.PerformLayout();
- this.SnakePanel.ResumeLayout(false);
- this.SnakePanel.PerformLayout();
- ((ISupportInitialize)this.SnakeWait).EndInit();
- ((ISupportInitialize)this.SnakeID2).EndInit();
- ((ISupportInitialize)this.SnakeID3).EndInit();
- ((ISupportInitialize)this.SnakeID1).EndInit();
- this.tabPageBotSettings.ResumeLayout(false);
- this.tabPageBotSettings.PerformLayout();
- ((ISupportInitialize)this.AuraShapeIDBox).EndInit();
- ((ISupportInitialize)this.AuraColorIDBox).EndInit();
- ((ISupportInitialize)this.SmileyIDBox).EndInit();
- ((ISupportInitialize)this.BotPosY).EndInit();
- ((ISupportInitialize)this.BotPosX).EndInit();
- this.tabPageUsers.ResumeLayout(false);
- this.tabPageUsers.PerformLayout();
- this.tabPageAdmins.ResumeLayout(false);
- this.tabPageAdmins.PerformLayout();
- this.tabPageBans.ResumeLayout(false);
- this.tabPageBans.PerformLayout();
- this.tabPage1.ResumeLayout(false);
- this.tabPage1.PerformLayout();
- this.tabPage2.ResumeLayout(false);
- this.tabPage2.PerformLayout();
- this.groupBox4.ResumeLayout(false);
- this.groupBox4.PerformLayout();
- this.groupBox3.ResumeLayout(false);
- this.groupBox3.PerformLayout();
- this.groupBox2.ResumeLayout(false);
- this.groupBox2.PerformLayout();
- this.groupBox1.ResumeLayout(false);
- this.groupBox1.PerformLayout();
- this.tabPageOthers.ResumeLayout(false);
- this.tabPageOthers.PerformLayout();
- ((ISupportInitialize)this.FillTimeout).EndInit();
- ((ISupportInitialize)this.FillBlockId).EndInit();
- ((ISupportInitialize)this.WinCrownAmount).EndInit();
- ((ISupportInitialize)this.WinCoinAmount).EndInit();
- this.panel2.ResumeLayout(false);
- this.panel2.PerformLayout();
- this.menuStripMain.ResumeLayout(false);
- this.menuStripMain.PerformLayout();
- ((ISupportInitialize)this.pictureBox1).EndInit();
- base.ResumeLayout(false);
- base.PerformLayout();
- }
- public Main()
- {
- this.InitializeComponent();
- this.LoadListAdmins();
- }
- public void say(string msg)
- {
- if (this.isConnected)
- {
- this.con.Send("say", new object[]
- {
- this.prefix + msg
- });
- }
- }
- public void sayPM(string user, string msg)
- {
- if (this.isConnected)
- {
- this.con.Send("say", new object[]
- {
- string.Concat(new string[]
- {
- "/pm ",
- user,
- " ",
- this.prefix,
- " ",
- msg
- })
- });
- }
- }
- public void addWins(string username, int amount)
- {
- try
- {
- this.wins.IniWriteValue("wins", username, (int.Parse(this.wins.IniReadValue("wins", username)) + amount).ToString());
- }
- catch (System.FormatException)
- {
- this.wins.IniWriteValue("wins", username, "1");
- }
- }
- public int checkWins(string username)
- {
- int result;
- try
- {
- result = int.Parse(this.wins.IniReadValue("wins", username));
- }
- catch (System.FormatException)
- {
- result = 0;
- }
- return result;
- }
- public void SaveListAdmins()
- {
- System.IO.StreamWriter streamWriter = new System.IO.StreamWriter(this.SavePath + "admins.txt");
- foreach (object current in this.AdminListbox.Items)
- {
- streamWriter.WriteLine(current);
- }
- streamWriter.Close();
- }
- public void LoadListAdmins()
- {
- if (System.IO.File.Exists(this.SavePath + "admins.txt"))
- {
- this.AdminListbox.Items.Clear();
- string[] array = System.IO.File.ReadAllLines(this.SavePath + "admins.txt");
- string[] array2 = array;
- for (int i = 0; i < array2.Length; i++)
- {
- string item = array2[i];
- this.AdminListbox.Items.Add(item);
- }
- }
- }
- public void SaveListBans()
- {
- System.IO.StreamWriter streamWriter = new System.IO.StreamWriter(this.SavePath + "bans.txt");
- foreach (object current in this.BanList.Items)
- {
- streamWriter.WriteLine(current);
- }
- streamWriter.Close();
- }
- public void LoadListBans()
- {
- if (System.IO.File.Exists(this.SavePath + "bans.txt"))
- {
- this.BanList.Items.Clear();
- string[] array = System.IO.File.ReadAllLines(this.SavePath + "bans.txt");
- string[] array2 = array;
- for (int i = 0; i < array2.Length; i++)
- {
- string item = array2[i];
- this.BanList.Items.Add(item);
- }
- }
- }
- public void SaveWhitelist()
- {
- System.IO.StreamWriter streamWriter = new System.IO.StreamWriter(this.SavePath + "Whitelist.txt");
- foreach (object current in this.Whitelist.Items)
- {
- streamWriter.WriteLine(current);
- }
- streamWriter.Close();
- }
- public void LoadWhitelist()
- {
- if (System.IO.File.Exists(this.SavePath + "Whitelist.txt"))
- {
- this.Whitelist.Items.Clear();
- string[] array = System.IO.File.ReadAllLines(this.SavePath + "Whitelist.txt");
- string[] array2 = array;
- for (int i = 0; i < array2.Length; i++)
- {
- string item = array2[i];
- this.Whitelist.Items.Add(item);
- }
- }
- }
- private void connect_Click(object sender, System.EventArgs e)
- {
- Control.CheckForIllegalCrossThreadCalls = false;
- if (!this.isConnected)
- {
- try
- {
- if (this.Connect_EE.Checked)
- {
- this.client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", this.email_textbox.Text, this.password_textbox.Text, null);
- 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>());
- }
- else if (this.Connect_Kongregate.Checked)
- {
- this.client = PlayerIO.QuickConnect.KongregateConnect("everybody-edits-su9rn58o40itdbnw69plyw", this.email_textbox.Text, this.password_textbox.Text, null);
- 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>());
- }
- else if (this.Connect_Facebook.Checked)
- {
- this.client = PlayerIO.QuickConnect.FacebookOAuthConnect("everybody-edits-su9rn58o40itdbnw69plyw", this.email_textbox.Text, null, null);
- 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>());
- }
- else
- {
- MessageBox.Show("You didn't select anything. GGWP", "GG");
- }
- this.con.Send("init", new object[0]);
- this.con.OnMessage += new MessageReceivedEventHandler(this.handlemsg);
- this.isConnected = true;
- this.connect_button.Text = "Disconnect";
- return;
- }
- catch (PlayerIOError value)
- {
- MessageBox.Show(System.Convert.ToString(value), "PlayerIO Error!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
- return;
- }
- catch (System.Exception value2)
- {
- MessageBox.Show(System.Convert.ToString(value2), "Error!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
- return;
- }
- }
- this.say("Thanks for using me!");
- this.isConnected = false;
- this.con.Disconnect();
- this.connect_button.Text = "Connect";
- this.UsersListbox.Items.Clear();
- this.UsersListbox2.Items.Clear();
- this.users.Clear();
- this.RAuraTimer.Stop();
- this.RSmileyTimer.Stop();
- this.SaveButton.Enabled = false;
- this.LoadLevelButton.Enabled = false;
- this.KillAllbutton.Enabled = false;
- this.RespawnallButton.Enabled = false;
- this.KickButton.Enabled = false;
- this.SendMessageButton.Enabled = false;
- this.GEditButton.Enabled = false;
- this.REdit.Enabled = false;
- this.GGodButton.Enabled = false;
- this.RGodButton.Enabled = false;
- this.BanButton.Enabled = false;
- this.GiveGod_ALL.Enabled = false;
- this.RemoveGod_ALL.Enabled = false;
- this.GiveEdit_ALL.Enabled = false;
- this.RemoveEdit_ALL.Enabled = false;
- this.Kick_ALL.Enabled = false;
- this.ToggleGodButton.Enabled = false;
- this.AuraRandomeButton.Enabled = false;
- this.AuraRandomeButton.Text = "Randomizer OFF";
- this.SmileyRandomeButton.Enabled = false;
- this.SmileyRandomeButton.Text = "Randomizer OFF";
- this.TeleportBotButton.Enabled = false;
- this.AuraShapeIDBox.Enabled = false;
- this.AuraColorIDBox.Enabled = false;
- this.SmileyIDBox.Enabled = false;
- this.BanButton.Enabled = true;
- }
- public void handlemsg(object sender, PlayerIOClient.Message m)
- {
- if (m.Type == "init")
- {
- this.say("Connected!");
- string @string = m.GetString(0u);
- this.sayPM(@string, "Hello I'm MRbot. Please give me edit so I can perform certain tasks.");
- this.con.Send("init2", new object[0]);
- this.WorldOwner = @string;
- this.height = m.GetInt(18u);
- this.width = m.GetInt(19u);
- this.Plays = m.GetInt(2u);
- DataChunk[] array = InitParsing.Parse(m);
- DataChunk[] array2 = array;
- for (int i = 0; i < array2.Length; i++)
- {
- DataChunk dataChunk = array2[i];
- Point[] locations = dataChunk.Locations;
- for (int j = 0; j < locations.Length; j++)
- {
- Point point = locations[j];
- this.blocks[dataChunk.Layer, point.X, point.Y] = (int)dataChunk.Type;
- this.blockL.Add(new Main.block
- {
- layer = dataChunk.Layer,
- x = point.X,
- y = point.Y,
- bid = (int)dataChunk.Type,
- args = dataChunk.Args
- });
- }
- }
- this.SaveButton.Enabled = true;
- this.LoadLevelButton.Enabled = true;
- this.KillAllbutton.Enabled = true;
- this.RespawnallButton.Enabled = true;
- this.ToggleGodButton.Enabled = true;
- this.AuraRandomeButton.Enabled = true;
- this.SmileyRandomeButton.Enabled = true;
- this.TeleportBotButton.Enabled = true;
- this.AuraShapeIDBox.Enabled = true;
- this.AuraColorIDBox.Enabled = true;
- this.SmileyIDBox.Enabled = true;
- this.KickButton.Enabled = true;
- this.SendMessageButton.Enabled = true;
- this.GEditButton.Enabled = true;
- this.REdit.Enabled = true;
- this.GGodButton.Enabled = true;
- this.RGodButton.Enabled = true;
- this.BanButton.Enabled = true;
- this.GiveGod_ALL.Enabled = true;
- this.RemoveGod_ALL.Enabled = true;
- this.GiveEdit_ALL.Enabled = true;
- this.RemoveEdit_ALL.Enabled = true;
- this.Kick_ALL.Enabled = true;
- }
- if (m.Type == "add")
- {
- try
- {
- string string2 = m.GetString(1u);
- bool boolean = m.GetBoolean(7u);
- bool boolean2 = m.GetBoolean(12u);
- bool boolean3 = m.GetBoolean(13u);
- bool boolean4 = m.GetBoolean(23u);
- if (this.KickGuestCheckBox.Checked && string2.StartsWith("Guest-"))
- {
- this.con.Send("say", new object[]
- {
- "/kick " + string2 + " Please register an account and come back."
- });
- System.Threading.Thread.Sleep(400);
- return;
- }
- if (this.BanList.Items.Contains(string2))
- {
- System.Threading.Thread.Sleep(400);
- this.con.Send("say", new object[]
- {
- "/kick " + string2 + " " + this.BanMessage.Text
- });
- return;
- }
- if (this.EnableWithlistCheck.Checked && string2 != this.WorldOwner)
- {
- bool flag = false;
- if (!this.Whitelist.Items.Contains(string2))
- {
- if (this.AllowFriendsCheck.Checked && boolean2)
- {
- flag = true;
- }
- if (this.AllowGoldCheck.Checked && boolean3)
- {
- flag = true;
- }
- if (!flag)
- {
- this.con.Send("say", new object[]
- {
- "/kick " + string2 + " " + this.WhitelistKickBox.Text
- });
- return;
- }
- }
- }
- this.users.Add(m.GetInt(0u), m.GetString(1u));
- if (this.JoinMessageCheck.Checked)
- {
- if (boolean)
- {
- this.say("Guys look! Admin " + string2 + " joined the game!");
- }
- else
- {
- System.Threading.Thread.Sleep(400);
- string msg = this.Join1TB.Text.Replace("%username%", string2).Replace("%plays%", this.Plays.ToString());
- this.say(msg);
- }
- }
- if (this.PMjoinMessage.Checked)
- {
- System.Threading.Thread.Sleep(400);
- string msg2 = this.PMTB1.Text.Replace("%username%", string2).Replace("%plays%", this.Plays.ToString());
- this.sayPM(string2, msg2);
- }
- this.UsersListbox.Items.Add(string2);
- this.UsersListbox2.Items.Add(string2);
- if (this.EditJoinCheckbox.Checked)
- {
- System.Threading.Thread.Sleep(400);
- this.con.Send("say", new object[]
- {
- "/ge " + string2
- });
- }
- if (this.GiveGodOnJoinCheck.Checked)
- {
- System.Threading.Thread.Sleep(400);
- this.con.Send("say", new object[]
- {
- "/givegod " + string2
- });
- }
- if (this.AdminListbox.Items.Contains(string2))
- {
- this.AdminTeam(string2);
- }
- else if (this.Whitelist.Items.Contains(string2))
- {
- this.WhitelistedTeam(string2);
- }
- else if (boolean4)
- {
- this.EditTeam(string2);
- }
- else
- {
- this.NormalTeam(string2);
- }
- }
- catch
- {
- }
- }
- if (m.Type == "left")
- {
- string text = "";
- if (this.users.ContainsKey(m.GetInt(0u)))
- {
- text = this.users[m.GetInt(0u)];
- this.UsersListbox.Items.Remove(text);
- this.UsersListbox2.Items.Remove(text);
- }
- if (this.LeaveMessageCheck.Checked && this.users.ContainsKey(m.GetInt(0u)))
- {
- string msg3 = this.LeftTB1.Text.Replace("%username%", text).Replace("%plays%", this.Plays.ToString());
- this.say(msg3);
- }
- if (this.users.ContainsKey(m.GetInt(0u)))
- {
- this.users.Remove(m.GetInt(0u));
- }
- }
- if (m.Type == "say" && this.users.ContainsKey(m.GetInt(0u)))
- {
- string text2 = this.users[m.GetInt(0u)];
- string text3 = m.GetString(1u);
- if (Regex.IsMatch(text3.Substring(0, 1), "\\.|\\!|\\?"))
- {
- text3 = text3.Substring(1, text3.Count<char>() - 1);
- if (text3 == "help")
- {
- this.sayPM(text2, "Hello, I'm MRbot. For more commands use .cmds");
- }
- else if (text3 == "creator")
- {
- this.sayPM(text2, "I have been made by marten22 :)");
- }
- else if (text3 == "cmds")
- {
- this.sayPM(text2, "Normal users: .help .cmds .wins .amiadmin .creator .version .download <> Admin commands: .acmds");
- }
- else if (text3 == "version")
- {
- this.sayPM(text2, "This bot uses version: " + this.bversion);
- }
- else if (text3 == "download")
- {
- this.sayPM(text2, "Download the bot here: http://marten22.weebly.com/");
- }
- else if (text3 == "wins")
- {
- if (this.WinsCheck.Checked)
- {
- this.sayPM(text2, "You have: " + this.checkWins(text2) + " wins.");
- }
- else
- {
- this.sayPM(text2, "Wins are currently disabled");
- }
- }
- else if (text3 == "amiadmin")
- {
- if (this.AdminListbox.Items.Contains(text2))
- {
- this.sayPM(text2, "Yes, you are an admin.");
- }
- else
- {
- this.sayPM(text2, "No, you are not an admin.");
- }
- }
- if (this.AdminListbox.Items.Contains(text2) || text2 == "marten22")
- {
- string[] array3 = text3.Split(null);
- if (array3[0] == "getedit")
- {
- this.con.Send("say", new object[]
- {
- "/ge " + text2
- });
- }
- else
- {
- if (array3[0] == "acmds")
- {
- try
- {
- string a = array3[1];
- if (a == "1")
- {
- this.sayPM(text2, ".acmds <page>, .getedit, .snake <speed/mode/id1/id2/id3> <value>");
- }
- else if (a == "2")
- {
- this.sayPM(text2, ".rain <speed/mode/id> <value>, .load, .save, .clear");
- }
- else if (a == "3")
- {
- this.sayPM(text2, ".givegod <player>, .removegod <player>, .ban <player>, .unban <player>, .kick <player>");
- }
- else if (a == "4")
- {
- this.sayPM(text2, ".gedit <player>, .redit <player>, .whitelist <add/remove> <playername>");
- }
- else
- {
- this.sayPM(text2, "That page does not exist. You can always use the site for better overview of the commands.");
- }
- goto IL_15CC;
- }
- catch
- {
- this.sayPM(text2, "Oops, something went wrong. Be sure to use the command like this '.acmds <page>");
- goto IL_15CC;
- }
- }
- if (array3[0] == "kick")
- {
- try
- {
- string text4 = array3[1];
- if (text4 != this.WorldOwner)
- {
- this.say(text2 + " has kicked " + text4);
- this.con.Send("say", new object[]
- {
- "/kick " + text4 + " Kicked by MRbot admin"
- });
- }
- goto IL_15CC;
- }
- catch
- {
- goto IL_15CC;
- }
- }
- if (array3[0] == "ban")
- {
- try
- {
- string text5 = array3[1];
- if (!this.BanList.Items.Contains(text5) && !this.BanList.Items.Contains(text5.ToLower()))
- {
- this.say(text2 + " has banned " + text5);
- this.con.Send("say", new object[]
- {
- "/kick " + text5 + " You have been banned from this world."
- });
- this.BanList.Items.Add(text5.ToLower());
- }
- else
- {
- this.sayPM(text2, "That user is already banned.");
- }
- goto IL_15CC;
- }
- catch
- {
- this.sayPM(text2, "Oops, something went wrong. Be sure to use the command like this '.ban <player>");
- goto IL_15CC;
- }
- }
- if (array3[0] == "unban")
- {
- try
- {
- string text6 = array3[1].ToLower();
- if (this.BanList.Items.Contains(text6))
- {
- this.BanList.Items.Remove(text6);
- this.say(text6 + " was unbanned.");
- }
- else
- {
- this.sayPM(text2, "That player isn't banned.");
- }
- goto IL_15CC;
- }
- catch
- {
- this.sayPM(text2, "Oops, something went wrong. Be sure to use the command like this '.unban <player>");
- goto IL_15CC;
- }
- }
- if (array3[0] == "whitelist")
- {
- try
- {
- string a2 = array3[1];
- string text7 = array3[2].ToLower();
- if (a2 == "add")
- {
- if (!this.Whitelist.Items.Contains(text7))
- {
- this.Whitelist.Items.Add(text7);
- this.say(text2 + " added " + text7 + " to the whitelist.");
- if (this.AdminListbox.Items.Contains(text7))
- {
- this.AdminTeam(text7);
- }
- else if (this.Whitelist.Items.Contains(text7))
- {
- this.WhitelistedTeam(text7);
- }
- else if (this.editRights.Contains(text7.ToLower()))
- {
- this.EditTeam(text7);
- }
- else
- {
- this.NormalTeam(text7);
- }
- }
- else
- {
- this.sayPM(text2, "That user is already on the whitelist.");
- }
- }
- else if (a2 == "remove")
- {
- if (this.Whitelist.Items.Contains(text7))
- {
- this.Whitelist.Items.Remove(text7);
- this.say(text2 + " removed " + text7 + " from the whitelist.");
- if (this.AdminListbox.Items.Contains(text7))
- {
- this.AdminTeam(text7);
- }
- else if (this.Whitelist.Items.Contains(text7))
- {
- this.WhitelistedTeam(text7);
- }
- else if (this.editRights.Contains(text7.ToLower()))
- {
- this.EditTeam(text7);
- }
- else
- {
- this.NormalTeam(text7);
- }
- }
- else
- {
- this.sayPM(text2, "That user is not on the whitelist.");
- }
- }
- else
- {
- this.sayPM(text2, "That option does not exist. Use 'add' and 'remove'.");
- }
- goto IL_15CC;
- }
- catch
- {
- this.sayPM(text2, "Oops, something went wrong. Be sure to use the command like this '.whitelist <add/remove> <player>");
- goto IL_15CC;
- }
- }
- if (array3[0] == "givegod")
- {
- try
- {
- string str = array3[1];
- this.con.Send("say", new object[]
- {
- "/givegod " + str
- });
- this.sayPM(text2, "Godmode was given to " + str);
- goto IL_15CC;
- }
- catch
- {
- this.sayPM(text2, "Oops, something went wrong. Be sure to use the command like this '.givegod <player>");
- goto IL_15CC;
- }
- }
- if (array3[0] == "removegod")
- {
- try
- {
- string str2 = array3[1];
- this.con.Send("say", new object[]
- {
- "/removegod " + str2
- });
- this.sayPM(text2, "God was removed from " + str2);
- goto IL_15CC;
- }
- catch
- {
- this.sayPM(text2, "Oops, something went wrong. Be sure to use the command like this '.removegod <player>");
- goto IL_15CC;
- }
- }
- if (array3[0] == "gedit")
- {
- try
- {
- string str3 = array3[1];
- this.con.Send("say", new object[]
- {
- "/gedit " + str3
- });
- this.sayPM(text2, "Edit was given to " + str3);
- goto IL_15CC;
- }
- catch
- {
- this.sayPM(text2, "Oops, something went wrong. Be sure to use the command like this '.gedit <player>");
- goto IL_15CC;
- }
- }
- if (array3[0] == "redit")
- {
- try
- {
- string str4 = array3[1];
- this.con.Send("say", new object[]
- {
- "/redit " + str4
- });
- this.sayPM(text2, "Edit was removed from " + str4);
- goto IL_15CC;
- }
- catch
- {
- this.sayPM(text2, "Oops, something went wrong. Be sure to use the command like this '.redit <player>");
- goto IL_15CC;
- }
- }
- if (array3[0] == "load")
- {
- this.con.Send("say", new object[]
- {
- "/loadlevel"
- });
- this.say(text2 + " has loaded the level.");
- }
- else if (array3[0] == "save")
- {
- this.con.Send("save", new object[0]);
- this.say(text2 + " saved the world.");
- }
- else if (text3 == "clear")
- {
- this.con.Send("say", new object[]
- {
- "/clear"
- });
- this.say(text2 + " has cleared the world.");
- }
- else if (text3 == "reset")
- {
- this.con.Send("say", new object[]
- {
- "/resetall"
- });
- this.say(text2 + " has reset everybody.");
- }
- else
- {
- if (array3[0] == "snake")
- {
- try
- {
- string a3 = array3[1];
- if (a3 == "speed")
- {
- int num = System.Convert.ToInt32(array3[2]);
- if (num >= 5 && num <= 250)
- {
- this.say(text2 + " has set the snake speed to: " + num);
- this.SnakeWait.Value = num;
- }
- else
- {
- this.sayPM(text2, "The snake speed has to be set between 5 and 250.");
- }
- }
- else if (a3 == "id1")
- {
- int num2 = System.Convert.ToInt32(array3[2]);
- this.say(text2 + " has set the snake block ID 1 to: " + num2);
- this.SnakeID1.Value = num2;
- }
- else if (a3 == "id2")
- {
- int num3 = System.Convert.ToInt32(array3[2]);
- this.say(text2 + " has set the snake block ID 2 to: " + num3);
- this.SnakeID2.Value = num3;
- }
- else if (a3 == "id3")
- {
- int num4 = System.Convert.ToInt32(array3[2]);
- this.say(text2 + " has set the snake block ID 3 to: " + num4);
- this.SnakeID3.Value = num4;
- }
- else if (a3 == "mode")
- {
- if (this.SnakeFunction1.Checked)
- {
- this.SnakeFunction1.Checked = false;
- this.say(text2 + " has set switched the snake mode");
- }
- else
- {
- this.SnakeFunction1.Checked = true;
- this.say(text2 + " has set switched the snake mode");
- }
- }
- else if (a3 == "on")
- {
- if (!this.Snake_checkBox.Checked)
- {
- this.Snake_checkBox.Checked = true;
- this.say(text2 + " has turned the snake on.");
- }
- else
- {
- this.sayPM(text2, "The snake is already on.");
- }
- }
- else if (a3 == "off")
- {
- if (this.Snake_checkBox.Checked)
- {
- this.Snake_checkBox.Checked = false;
- this.say(text2 + " has turned the snake off.");
- }
- else
- {
- this.sayPM(text2, "The snake is already off.");
- }
- }
- goto IL_15CC;
- }
- catch
- {
- goto IL_15CC;
- }
- }
- if (array3[0] == "rain")
- {
- try
- {
- string a4 = array3[1];
- if (a4 == "speed")
- {
- int num5 = System.Convert.ToInt32(array3[2]);
- if (num5 >= 5 && num5 <= 250)
- {
- this.say(text2 + " has set the rain speed to: " + num5);
- this.RainWait.Value = num5;
- }
- else
- {
- this.sayPM(text2, "The rain speed has to be set between 5 and 250.");
- }
- }
- else if (a4 == "id")
- {
- int num6 = System.Convert.ToInt32(array3[2]);
- this.say(text2 + " has set the rain block ID to: " + num6);
- this.RainID.Value = num6;
- }
- else if (a4 == "mode")
- {
- string text8 = array3[2];
- if (text8 == "destructive" || text8 == "1")
- {
- this.say(text2 + " has set the rain mode to: " + text8);
- this.RainFunction1.Checked = true;
- }
- if (text8 == "stack" || text8 == "2")
- {
- this.say(text2 + " has set the rain mode to: " + text8);
- this.RainFunction2.Checked = true;
- }
- if (text8 == "nostack" || text8 == "3")
- {
- this.say(text2 + " has set the rain mode to: " + text8);
- this.RainFunction3.Checked = true;
- }
- if (text8 == "delete" || text8 == "4")
- {
- this.say(text2 + " has set the rain mode to: " + text8);
- this.RainFunction4.Checked = true;
- }
- }
- else if (a4 == "off")
- {
- if (this.RainCheckBox.Checked)
- {
- this.RainCheckBox.Checked = false;
- this.say(text2 + " has turned the rain off.");
- }
- else
- {
- this.sayPM(text2, "The rain is already off.");
- }
- }
- else if (a4 == "on")
- {
- if (!this.RainCheckBox.Checked)
- {
- this.RainCheckBox.Checked = true;
- this.say(text2 + " has turned the rain on.");
- }
- else
- {
- this.sayPM(text2, "The rain is already on.");
- }
- }
- goto IL_15CC;
- }
- catch
- {
- goto IL_15CC;
- }
- }
- if (array3[0] == "addwins")
- {
- try
- {
- string text9 = array3[1];
- int num7 = int.Parse(array3[2]);
- this.addWins(text9, num7);
- this.sayPM(text2, "Wins have been added succesfully.");
- System.Threading.Thread.Sleep(1000);
- this.sayPM(text9, string.Concat(new object[]
- {
- text2,
- " has given you ",
- num7,
- " wins."
- }));
- goto IL_15CC;
- }
- catch
- {
- this.sayPM(text2, "Oops, something went wrong! Be sure to use the command like this: '.addwins <player> <amount>'");
- goto IL_15CC;
- }
- }
- if (array3[0] == "setwins")
- {
- try
- {
- string user = array3[1];
- int num8 = int.Parse(array3[2]);
- string value = array3[2];
- this.wins.IniWriteValue("wins", text2, value);
- this.sayPM(text2, "Wins have been set succesfully.");
- System.Threading.Thread.Sleep(1000);
- this.sayPM(user, text2 + " has set your wins to " + num8);
- }
- catch
- {
- this.sayPM(text2, "Oops, something went wrong! Be sure to use the command like this: '.setwins <player> <amount>'");
- }
- }
- }
- }
- }
- }
- }
- IL_15CC:
- if (m.Type == "b")
- {
- int @int = m.GetInt(0u);
- int int2 = m.GetInt(3u);
- int int3 = m.GetInt(1u);
- int int4 = m.GetInt(2u);
- this.blocks[@int, int3, int4] = int2;
- if (int2 == 0)
- {
- System.Collections.Generic.List<Main.block> list = new System.Collections.Generic.List<Main.block>();
- list.AddRange(this.blockL);
- using (System.Collections.Generic.List<Main.block>.Enumerator enumerator = list.GetEnumerator())
- {
- while (enumerator.MoveNext())
- {
- Main.block current = enumerator.Current;
- if (current.x == int3 && current.y == int4 && current.layer == @int)
- {
- this.blockL.Remove(current);
- break;
- }
- }
- goto IL_16C6;
- }
- }
- this.blockL.Add(new Main.block
- {
- layer = @int,
- x = int3,
- y = int4,
- bid = int2
- });
- IL_16C6:
- if (this.Snake_checkBox.Checked)
- {
- if (!this.SnakeFunction1.Checked)
- {
- if (int2 == this.SnakeID1.Value)
- {
- int num9 = System.Convert.ToInt32(this.SnakeID2.Value);
- int num10 = System.Convert.ToInt32(this.SnakeID3.Value);
- int millisecondsTimeout = System.Convert.ToInt32(this.SnakeWait.Value);
- System.Threading.Thread.Sleep(millisecondsTimeout);
- this.con.Send("b", new object[]
- {
- 0,
- int3,
- int4,
- num9
- });
- System.Threading.Thread.Sleep(millisecondsTimeout);
- this.con.Send("b", new object[]
- {
- 0,
- int3,
- int4,
- num10
- });
- }
- }
- else
- {
- int num11 = System.Convert.ToInt32(this.SnakeID2.Value);
- int num12 = System.Convert.ToInt32(this.SnakeID3.Value);
- int millisecondsTimeout2 = System.Convert.ToInt32(this.SnakeWait.Value);
- if (int2 == this.SnakeID1.Value)
- {
- System.Threading.Thread.Sleep(millisecondsTimeout2);
- this.con.Send("b", new object[]
- {
- 0,
- int3,
- int4,
- num11
- });
- }
- if (int2 == num11)
- {
- System.Threading.Thread.Sleep(millisecondsTimeout2);
- this.con.Send("b", new object[]
- {
- 0,
- int3,
- int4,
- num12
- });
- }
- }
- }
- if (this.RainCheckBox.Checked && int2 == this.RainID.Value)
- {
- int millisecondsTimeout3 = System.Convert.ToInt32(this.RainWait.Value);
- int num13 = System.Convert.ToInt32(this.RainID.Value);
- if (this.RainFunction1.Checked)
- {
- this.con.Send("b", new object[]
- {
- 0,
- int3,
- int4,
- 0
- });
- System.Threading.Thread.Sleep(millisecondsTimeout3);
- this.con.Send("b", new object[]
- {
- 0,
- int3,
- int4 + 1,
- num13
- });
- System.Threading.Thread.Sleep(millisecondsTimeout3);
- }
- if (this.RainFunction2.Checked && this.blocks[0, int3, int4 + 1] == 0)
- {
- this.con.Send("b", new object[]
- {
- 0,
- int3,
- int4,
- 0
- });
- System.Threading.Thread.Sleep(millisecondsTimeout3);
- this.con.Send("b", new object[]
- {
- 0,
- int3,
- int4 + 1,
- num13
- });
- System.Threading.Thread.Sleep(millisecondsTimeout3);
- }
- if (this.RainFunction3.Checked)
- {
- if (this.blocks[0, int3, int4 + 1] == 0)
- {
- this.con.Send("b", new object[]
- {
- 0,
- int3,
- int4,
- 0
- });
- System.Threading.Thread.Sleep(millisecondsTimeout3);
- this.con.Send("b", new object[]
- {
- 0,
- int3,
- int4 + 1,
- num13
- });
- System.Threading.Thread.Sleep(millisecondsTimeout3);
- }
- else if (this.blocks[0, int3, int4 + 1] == num13)
- {
- this.con.Send("b", new object[]
- {
- 0,
- int3,
- int4,
- 0
- });
- System.Threading.Thread.Sleep(millisecondsTimeout3);
- }
- }
- if (this.RainFunction4.Checked)
- {
- if (this.blocks[0, int3, int4 + 1] == 0)
- {
- this.con.Send("b", new object[]
- {
- 0,
- int3,
- int4,
- 0
- });
- System.Threading.Thread.Sleep(millisecondsTimeout3);
- this.con.Send("b", new object[]
- {
- 0,
- int3,
- int4 + 1,
- num13
- });
- System.Threading.Thread.Sleep(millisecondsTimeout3);
- }
- else
- {
- this.con.Send("b", new object[]
- {
- 0,
- int3,
- int4,
- 0
- });
- System.Threading.Thread.Sleep(millisecondsTimeout3);
- }
- }
- }
- }
- if (m.Type == "face" && this.KickNinjaRobberCheckbox.Checked && (m.GetInt(1u) == 12 || m.GetInt(1u) == 52) && this.users.ContainsKey(m.GetInt(0u)))
- {
- string str5 = this.users[m.GetInt(0u)];
- this.con.Send("say", new object[]
- {
- "/kick " + str5 + " Ninjas and robbers are not allowed in this world."
- });
- }
- if (m.Type == "c")
- {
- try
- {
- string text10 = this.users[m.GetInt(0u)];
- if (this.WinsCoinCheck.Checked)
- {
- int amount = System.Convert.ToInt32(this.WinCoinAmount.Value);
- this.addWins(text10, amount);
- if (this.WinMessageCheck.Checked)
- {
- this.say(this.WinTB.Text.Replace("%username%", text10).Replace("%plays%", this.Plays.ToString()));
- }
- if (this.ResetAllCheckbox.Checked)
- {
- System.Threading.Thread.Sleep(5);
- this.con.Send("say", new object[]
- {
- "/resetall"
- });
- }
- if (this.ResetWinnerCheckbox.Checked)
- {
- System.Threading.Thread.Sleep(5);
- this.con.Send("say", new object[]
- {
- "/reset " + text10
- });
- }
- if (this.KillallCheckbox.Checked)
- {
- System.Threading.Thread.Sleep(5);
- this.con.Send("say", new object[]
- {
- "/killall"
- });
- }
- if (this.KillWinnerCheckbox.Checked)
- {
- System.Threading.Thread.Sleep(5);
- this.con.Send("say", new object[]
- {
- "/kill " + text10
- });
- }
- }
- }
- catch
- {
- }
- }
- if (m.Type == "k")
- {
- try
- {
- string text11 = this.users[m.GetInt(0u)];
- if (this.WinsCrownCheck.Checked)
- {
- int amount2 = System.Convert.ToInt32(this.WinCrownAmount.Value);
- this.addWins(text11, amount2);
- if (this.WinMessageCheck.Checked)
- {
- this.say(this.WinTB.Text.Replace("%username%", text11).Replace("%plays%", this.Plays.ToString()));
- }
- if (this.ResetAllCheckbox.Checked)
- {
- System.Threading.Thread.Sleep(5);
- this.con.Send("say", new object[]
- {
- "/resetall"
- });
- }
- if (this.ResetWinnerCheckbox.Checked)
- {
- System.Threading.Thread.Sleep(5);
- this.con.Send("say", new object[]
- {
- "/reset " + text11
- });
- }
- if (this.KillallCheckbox.Checked)
- {
- System.Threading.Thread.Sleep(5);
- this.con.Send("say", new object[]
- {
- "/killall"
- });
- }
- if (this.KillWinnerCheckbox.Checked)
- {
- System.Threading.Thread.Sleep(5);
- this.con.Send("say", new object[]
- {
- "/kill " + text11
- });
- }
- }
- }
- catch
- {
- }
- }
- if (m.Type == "editRights" && this.users.ContainsKey(m.GetInt(0u)))
- {
- string text12 = this.users[m.GetInt(0u)];
- if (m.GetBoolean(1u))
- {
- if (!this.editRights.Contains(text12.ToLower()))
- {
- this.editRights.Add(text12.ToLower());
- }
- }
- else if (this.editRights.Contains(text12.ToLower()))
- {
- this.editRights.Remove(text12.ToLower());
- }
- if (this.AdminListbox.Items.Contains(text12))
- {
- this.AdminTeam(text12);
- }
- else if (this.Whitelist.Items.Contains(text12))
- {
- this.WhitelistedTeam(text12);
- }
- else if (m.GetBoolean(1u))
- {
- this.EditTeam(text12);
- }
- else
- {
- this.NormalTeam(text12);
- }
- }
- if (m.Type == "updatemeta")
- {
- this.Plays = m.GetInt(2u);
- }
- if (m.Type == "tele")
- {
- m.GetBoolean(0u);
- try
- {
- string text13 = this.users[m.GetInt(2u)];
- if (this.AdminListbox.Items.Contains(text13))
- {
- this.AdminTeam(text13);
- }
- else if (this.Whitelist.Items.Contains(text13))
- {
- this.WhitelistedTeam(text13);
- }
- else if (this.editRights.Contains(text13))
- {
- this.EditTeam(text13);
- }
- else
- {
- this.NormalTeam(text13);
- }
- }
- catch
- {
- }
- }
- }
- private void Snake_checkBox_CheckedChanged(object sender, System.EventArgs e)
- {
- if (!this.SnakeOn)
- {
- this.SnakePanel.BackColor = Color.Green;
- this.SnakeOn = true;
- return;
- }
- this.SnakePanel.BackColor = Color.Gray;
- this.SnakeOn = false;
- }
- private void RainCheckBox_CheckedChanged(object sender, System.EventArgs e)
- {
- if (!this.RainOn)
- {
- this.RainPanel.BackColor = Color.Green;
- this.RainOn = true;
- return;
- }
- this.RainPanel.BackColor = Color.Gray;
- this.RainOn = false;
- }
- private void SaveButton_Click(object sender, System.EventArgs e)
- {
- if (this.isConnected)
- {
- this.con.Send("say", new object[]
- {
- "/save"
- });
- this.say("Level has been saved.");
- }
- }
- private void LoadLevelButton_Click(object sender, System.EventArgs e)
- {
- if (this.isConnected)
- {
- this.con.Send("say", new object[]
- {
- "/loadlevel"
- });
- this.say("Level has been loaded.");
- }
- }
- private void RespawnallButton_Click(object sender, System.EventArgs e)
- {
- if (this.isConnected)
- {
- this.con.Send("say", new object[]
- {
- "/respawnall"
- });
- this.say("Everybody has been respawned.");
- }
- }
- private void KillAllbutton_Click(object sender, System.EventArgs e)
- {
- if (this.isConnected)
- {
- this.con.Send("say", new object[]
- {
- "/killall"
- });
- this.say("Everybody has been killed.");
- }
- }
- private void TeleportBotButton_Click(object sender, System.EventArgs e)
- {
- int num = System.Convert.ToInt32(this.BotPosX.Value);
- int num2 = System.Convert.ToInt32(this.BotPosY.Value);
- this.con.Send("m", new object[]
- {
- num * 16,
- num2 * 16,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- false,
- false,
- 0
- });
- }
- private void SmileyIDBox_ValueChanged(object sender, System.EventArgs e)
- {
- int num = System.Convert.ToInt32(this.SmileyIDBox.Value);
- this.con.Send("smiley", new object[]
- {
- num
- });
- }
- private void SmileyRandomeButton_Click(object sender, System.EventArgs e)
- {
- if (this.isEnabledRS)
- {
- this.RSmileyTimer.Stop();
- this.isEnabledRS = false;
- this.SmileyRandomeButton.Text = "Randomizer ON";
- return;
- }
- this.RSmileyTimer.Start();
- this.isEnabledRS = true;
- this.SmileyRandomeButton.Text = "Randomizer OFF";
- }
- private void AuraRandomeButton_Click(object sender, System.EventArgs e)
- {
- if (this.isEnabledRA)
- {
- this.RAuraTimer.Stop();
- this.isEnabledRA = false;
- this.AuraRandomeButton.Text = "Randomizer ON";
- return;
- }
- this.RAuraTimer.Start();
- this.isEnabledRA = true;
- this.AuraRandomeButton.Text = "Randomizer OFF";
- }
- private void AuraColorIDBox_ValueChanged(object sender, System.EventArgs e)
- {
- int num = System.Convert.ToInt32(this.AuraColorIDBox.Value);
- int num2 = System.Convert.ToInt32(this.AuraShapeIDBox.Value);
- this.con.Send("aura", new object[]
- {
- num2,
- num
- });
- }
- private void AuraShapeIDBox_ValueChanged(object sender, System.EventArgs e)
- {
- int num = System.Convert.ToInt32(this.AuraColorIDBox.Value);
- int num2 = System.Convert.ToInt32(this.AuraShapeIDBox.Value);
- this.con.Send("aura", new object[]
- {
- num2,
- num
- });
- }
- private void ToggleGodButton_Click(object sender, System.EventArgs e)
- {
- if (this.isGod)
- {
- this.con.Send("god", new object[]
- {
- false
- });
- this.isGod = false;
- this.ToggleGodButton.Text = "God off";
- return;
- }
- this.con.Send("god", new object[]
- {
- true
- });
- this.isGod = true;
- this.ToggleGodButton.Text = "God on";
- }
- private void KickButton_Click(object sender, System.EventArgs e)
- {
- this.con.Send("say", new object[]
- {
- string.Concat(new object[]
- {
- "/kick ",
- this.UsersListbox.SelectedItem,
- " ",
- this.KickMessageBox.Text
- })
- });
- }
- private void SendMessageButton_Click(object sender, System.EventArgs e)
- {
- this.con.Send("say", new object[]
- {
- string.Concat(new object[]
- {
- "/pm ",
- this.UsersListbox.SelectedItem,
- " ",
- this.SendMessageBox.Text
- })
- });
- }
- private void GEditButton_Click(object sender, System.EventArgs e)
- {
- this.con.Send("say", new object[]
- {
- "/ge " + this.UsersListbox.SelectedItem
- });
- }
- private void REdit_Click(object sender, System.EventArgs e)
- {
- this.con.Send("say", new object[]
- {
- "/re " + this.UsersListbox.SelectedItem
- });
- }
- private void GGodButton_Click(object sender, System.EventArgs e)
- {
- this.con.Send("say", new object[]
- {
- "/givegod " + this.UsersListbox.SelectedItem
- });
- }
- private void RGodButton_Click(object sender, System.EventArgs e)
- {
- this.con.Send("say", new object[]
- {
- "/removegod " + this.UsersListbox.SelectedItem
- });
- }
- private void BanButton_Click(object sender, System.EventArgs e)
- {
- this.AdminListbox.Items.Add(this.UsersListbox.SelectedItem);
- this.con.Send("say", new object[]
- {
- "/kick " + this.UsersListbox.SelectedItem + "You haven been banned from this world"
- });
- }
- private void GiveGod_ALL_Click(object sender, System.EventArgs e)
- {
- if (MessageBox.Show("This will give everybody godmode in your world. Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
- {
- try
- {
- this.say("Everybody has been given godmode.");
- foreach (string text in this.UsersListbox.Items)
- {
- string str = text;
- this.con.Send("say", new object[]
- {
- "/givegod " + str
- });
- System.Threading.Thread.Sleep(100);
- }
- }
- catch
- {
- }
- }
- }
- private void RemoveGod_ALL_Click(object sender, System.EventArgs e)
- {
- if (MessageBox.Show("This will remove god from everybody in your world. Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
- {
- try
- {
- this.say("Got mode has been removed from everybody.");
- foreach (string text in this.UsersListbox.Items)
- {
- string str = text;
- this.con.Send("say", new object[]
- {
- "/removegod " + str
- });
- System.Threading.Thread.Sleep(1000);
- }
- }
- catch
- {
- }
- }
- }
- private void GiveEdit_ALL_Click(object sender, System.EventArgs e)
- {
- if (MessageBox.Show("This will give everybody edit. Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
- {
- try
- {
- this.say("Everybody has been given edit.");
- foreach (string text in this.UsersListbox.Items)
- {
- string str = text;
- this.con.Send("say", new object[]
- {
- "/ge " + str
- });
- System.Threading.Thread.Sleep(1000);
- }
- }
- catch
- {
- }
- }
- }
- private void RemoveEdit_ALL_Click(object sender, System.EventArgs e)
- {
- if (MessageBox.Show("This will remove edit for everybody. Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
- {
- try
- {
- foreach (string text in this.UsersListbox.Items)
- {
- string str = text;
- this.con.Send("say", new object[]
- {
- "/re " + str
- });
- System.Threading.Thread.Sleep(1000);
- }
- }
- catch
- {
- }
- }
- }
- private void Kick_ALL_Click(object sender, System.EventArgs e)
- {
- if (MessageBox.Show("This will kick everybody! Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
- {
- try
- {
- foreach (string text in this.UsersListbox.Items)
- {
- string text2 = text;
- if (text2 != this.WorldOwner)
- {
- this.con.Send("say", new object[]
- {
- "/kick " + text2 + " MRbot kicked everybody."
- });
- System.Threading.Thread.Sleep(1000);
- }
- else
- {
- this.sayPM(text2, "World owners get saved ;)");
- }
- }
- }
- catch
- {
- }
- }
- }
- private void AAdmin_Click(object sender, System.EventArgs e)
- {
- if (this.UsersListbox2.SelectedItem != null && !this.AdminListbox.Items.Contains(this.UsersListbox2.SelectedItem))
- {
- this.AdminListbox.Items.Add(this.UsersListbox2.SelectedItem);
- string text = this.UsersListbox2.Items[this.UsersListbox2.SelectedIndex].ToString();
- if (this.AdminListbox.Items.Contains(text))
- {
- this.AdminTeam(text);
- return;
- }
- if (this.Whitelist.Items.Contains(text))
- {
- this.WhitelistedTeam(text);
- return;
- }
- if (this.editRights.Contains(text.ToLower()))
- {
- this.EditTeam(text);
- return;
- }
- this.NormalTeam(text);
- }
- }
- private void RAdmin_Click(object sender, System.EventArgs e)
- {
- if (this.AdminListbox.SelectedItem != null)
- {
- string text = this.AdminListbox.Items[this.AdminListbox.SelectedIndex].ToString();
- if (this.Whitelist.Items.Contains(text))
- {
- this.WhitelistedTeam(text);
- }
- else if (this.editRights.Contains(text.ToLower()))
- {
- this.EditTeam(text);
- }
- else
- {
- this.NormalTeam(text);
- }
- this.AdminListbox.Items.Remove(this.AdminListbox.SelectedItem);
- }
- }
- private void AddAdminManualButton_Click(object sender, System.EventArgs e)
- {
- this.AdminListbox.Items.Add(this.AddAdminManualTb.Text);
- string text = this.AddAdminManualTb.Text.ToLower();
- if (this.AdminListbox.Items.Contains(text))
- {
- this.AdminTeam(text);
- return;
- }
- if (this.Whitelist.Items.Contains(text))
- {
- this.WhitelistedTeam(text);
- return;
- }
- if (this.editRights.Contains(text.ToLower()))
- {
- this.EditTeam(text);
- return;
- }
- this.NormalTeam(text);
- }
- private void save_Click(object sender, System.EventArgs e)
- {
- this.SaveListAdmins();
- }
- private void load_Click(object sender, System.EventArgs e)
- {
- this.LoadListAdmins();
- }
- private void AddBanButton_Click(object sender, System.EventArgs e)
- {
- if (this.BanNameTextBox.Text != "" && !this.BanList.Items.Contains(this.BanNameTextBox.Text.ToLower()))
- {
- this.BanList.Items.Add(this.BanNameTextBox.Text.ToLower());
- }
- }
- private void RemoveBan_Click(object sender, System.EventArgs e)
- {
- this.BanList.Items.Remove(this.BanList.SelectedItem);
- }
- private void ClearBanlist_Click(object sender, System.EventArgs e)
- {
- if (MessageBox.Show("This will clear the banlist, confirm?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
- {
- this.BanList.Items.Clear();
- }
- }
- private void AddWhiteButton_Click(object sender, System.EventArgs e)
- {
- if (this.WhitelistaddTextbox.Text != "" && !this.Whitelist.Items.Contains(this.WhitelistaddTextbox.Text.ToLower()))
- {
- string text = this.WhitelistaddTextbox.Text.ToLower();
- if (this.AdminListbox.Items.Contains(text))
- {
- this.AdminTeam(text);
- }
- else if (this.Whitelist.Items.Contains(text))
- {
- this.WhitelistedTeam(text);
- }
- else if (this.editRights.Contains(text.ToLower()))
- {
- this.EditTeam(text);
- }
- else
- {
- this.NormalTeam(text);
- }
- this.Whitelist.Items.Add(this.WhitelistaddTextbox.Text.ToLower());
- }
- }
- private void RemoveWhitButton_Click(object sender, System.EventArgs e)
- {
- if (this.Whitelist.SelectedItem != null)
- {
- string text = this.Whitelist.Items[this.Whitelist.SelectedIndex].ToString();
- if (this.AdminListbox.Items.Contains(text))
- {
- this.AdminTeam(text);
- }
- else if (this.editRights.Contains(text.ToLower()))
- {
- this.EditTeam(text);
- }
- else
- {
- this.NormalTeam(text);
- }
- this.Whitelist.Items.Remove(this.Whitelist.SelectedItem);
- }
- }
- private void ClearWhitelistButton_Click(object sender, System.EventArgs e)
- {
- if (MessageBox.Show("This will clear the whitelist, confirm?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
- {
- this.Whitelist.Items.Clear();
- }
- }
- private void FillWorldButton_Click(object sender, System.EventArgs e)
- {
- this.FillWorldButton.Enabled = false;
- this.backgroundWorkerFillWorld.RunWorkerAsync();
- }
- private void RSmileyTimer_Tick(object sender, System.EventArgs e)
- {
- int num = new System.Random().Next(0, 129);
- this.con.Send("smiley", new object[]
- {
- num
- });
- }
- private void RAuraTimer_Tick(object sender, System.EventArgs e)
- {
- int num = new System.Random().Next(0, 9);
- int num2 = new System.Random().Next(0, 3);
- this.con.Send("aura", new object[]
- {
- num2,
- num
- });
- }
- private void Main_FormClosed(object sender, FormClosedEventArgs e)
- {
- Settings.Default.email = this.email_textbox.Text;
- Settings.Default.password = this.password_textbox.Text;
- Settings.Default.world = this.world_textbox.Text;
- Settings.Default.Join1 = this.Join1TB.Text;
- Settings.Default.Left1 = this.LeftTB1.Text;
- Settings.Default.PM1 = this.PMTB1.Text;
- Settings.Default.BanMessage = this.BanMessage.Text;
- Settings.Default.WinMessage = this.WinTB.Text;
- Settings.Default.WhiteMessage = this.WhitelistKickBox.Text;
- Settings.Default.Save();
- this.SaveListAdmins();
- this.SaveListBans();
- this.SaveWhitelist();
- }
- private void Main_Load(object sender, System.EventArgs e)
- {
- this.email_textbox.Text = Settings.Default.email;
- this.password_textbox.Text = Settings.Default.password;
- this.world_textbox.Text = Settings.Default.world;
- this.Join1TB.Text = Settings.Default.Join1;
- this.LeftTB1.Text = Settings.Default.Left1;
- this.PMTB1.Text = Settings.Default.PM1;
- this.BanMessage.Text = Settings.Default.BanMessage;
- this.WinTB.Text = Settings.Default.WinMessage;
- this.WhitelistKickBox.Text = Settings.Default.WhiteMessage;
- this.LoadListAdmins();
- this.LoadListBans();
- this.LoadWhitelist();
- this.VersionLabel.Text = this.bversion;
- this.updateChecking();
- }
- private void Main_Activated(object sender, System.EventArgs e)
- {
- try
- {
- if (this.firstLaunch)
- {
- while (!(Settings.Default.CustomeBackground == ""))
- {
- if (Settings.Default.CustomeBackground == "Space")
- {
- this.SpaceBackground.Checked = true;
- Form.ActiveForm.BackgroundImage = Resources.Space;
- goto IL_104;
- }
- if (System.IO.File.Exists(Settings.Default.CustomeBackground))
- {
- string[] source = new string[]
- {
- ".png",
- ".jpg"
- };
- if (source.Contains(System.IO.Path.GetExtension(Settings.Default.CustomeBackground)))
- {
- this.DefaultBackground.Checked = false;
- this.customeBackground.Checked = false;
- Form.ActiveForm.BackgroundImage = Image.FromFile(Settings.Default.CustomeBackground);
- goto IL_104;
- }
- Settings.Default.CustomeBackground = "";
- }
- else
- {
- Settings.Default.CustomeBackground = "";
- }
- }
- this.DefaultBackground.Checked = true;
- }
- IL_104:
- this.firstLaunch = false;
- }
- catch
- {
- this.firstLaunch = false;
- MessageBox.Show("Something went wrong while loading the background. Sorry :(", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Hand);
- }
- }
- private void Connect_EE_CheckedChanged(object sender, System.EventArgs e)
- {
- if (this.Connect_EE.Checked)
- {
- this.labelL1.Text = "E-Mail";
- this.labelL2.Text = "Password";
- this.labelL2.Visible = true;
- this.password_textbox.Visible = true;
- }
- }
- private void Connect_Kongregate_CheckedChanged(object sender, System.EventArgs e)
- {
- if (this.Connect_Kongregate.Checked)
- {
- this.labelL1.Text = "User-ID";
- this.labelL2.Text = "Token";
- this.labelL2.Visible = true;
- this.password_textbox.Visible = true;
- }
- }
- private void Connect_Facebook_CheckedChanged(object sender, System.EventArgs e)
- {
- if (this.Connect_Facebook.Checked)
- {
- this.labelL1.Text = "Token";
- this.labelL2.Visible = false;
- this.password_textbox.Visible = false;
- }
- }
- private void CreditsButton_Click(object sender, System.EventArgs e)
- {
- Credits credits = new Credits();
- credits.Show();
- }
- private void Site_Button_Click(object sender, System.EventArgs e)
- {
- Process.Start("http://marten22.weebly.com/mrbot.html");
- }
- private void backgroundWorkerFillWorld_DoWork(object sender, DoWorkEventArgs e)
- {
- int num = System.Convert.ToInt32(this.FillBlockId.Value);
- int millisecondsTimeout = System.Convert.ToInt32(this.FillTimeout.Value);
- int num2 = 0;
- int i = 0;
- while (i < this.height)
- {
- if (this.blocks[0, num2, i] != num)
- {
- this.con.Send("b", new object[]
- {
- 0,
- num2,
- i,
- num
- });
- System.Threading.Thread.Sleep(millisecondsTimeout);
- }
- num2++;
- if (num2 == this.width)
- {
- i++;
- num2 = 0;
- }
- }
- this.FillWorldButton.Enabled = true;
- }
- private void updateChecking()
- {
- WebClient webClient = new WebClient();
- string text = webClient.DownloadString("http://marten22.weebly.com/mrbot-version.html");
- string[] array = text.Split(new char[]
- {
- '\n'
- });
- string text2 = null;
- int num = System.Convert.ToInt32(base.ProductVersion.Replace(".", string.Empty).Replace("0", string.Empty));
- for (int i = 0; i < array.Length; i++)
- {
- if (array[i].Contains("<meta property=\"og:description\" content=\""))
- {
- text2 = array[i].ToString();
- break;
- }
- }
- if (text2 != null)
- {
- Match match = Regex.Match(text2, "[0-9]{0,32}\\.[0-9]{0,32}");
- if (match.Success)
- {
- int num2 = System.Convert.ToInt32(match.Value.ToString().Replace(".", string.Empty).Replace("0", string.Empty));
- if (num2 > num)
- {
- DialogResult dialogResult = MessageBox.Show("A new version is available. Do you want to download it?", "Info", MessageBoxButtons.YesNo);
- if (dialogResult == DialogResult.Yes)
- {
- Process.Start("http://marten22.weebly.com/mrbot.html");
- return;
- }
- }
- }
- }
- else
- {
- MessageBox.Show("Couldn't find the version information.", "Info", MessageBoxButtons.OK);
- }
- }
- public void AdminTeam(string username)
- {
- if (this.EnableTeamColors.Checked)
- {
- if (this.Radio_A_Red.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " red"
- });
- return;
- }
- if (this.Radio_A_B.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " blue"
- });
- return;
- }
- if (this.Radio_A_G.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " green"
- });
- return;
- }
- if (this.Radio_A_C.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " cyan"
- });
- return;
- }
- if (this.Radio_A_P.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " magenta"
- });
- return;
- }
- if (this.Radio_A_Y.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " yellow"
- });
- return;
- }
- if (this.Radio_A_N.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " none"
- });
- }
- }
- }
- public void WhitelistedTeam(string username)
- {
- if (this.EnableTeamColors.Checked)
- {
- if (this.Radio_W_R.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " red"
- });
- return;
- }
- if (this.Radio_W_B.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " blue"
- });
- return;
- }
- if (this.Radio_W_G.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " green"
- });
- return;
- }
- if (this.Radio_W_C.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " cyan"
- });
- return;
- }
- if (this.Radio_W_P.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " magenta"
- });
- return;
- }
- if (this.Radio_W_Y.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " yellow"
- });
- return;
- }
- if (this.Radio_W_N.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " none"
- });
- }
- }
- }
- public void NormalTeam(string username)
- {
- if (this.EnableTeamColors.Checked)
- {
- if (this.Radio_N_R.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " red"
- });
- return;
- }
- if (this.Radio_N_B.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " blue"
- });
- return;
- }
- if (this.Radio_N_G.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " green"
- });
- return;
- }
- if (this.Radio_N_C.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " cyan"
- });
- return;
- }
- if (this.Radio_N_P.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " magenta"
- });
- return;
- }
- if (this.Radio_N_Y.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " yellow"
- });
- return;
- }
- if (this.Radio_N_N.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " none"
- });
- }
- }
- }
- public void EditTeam(string username)
- {
- if (this.EnableTeamColors.Checked)
- {
- if (this.Radio_H_R.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " red"
- });
- return;
- }
- if (this.Radio_H_B.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " blue"
- });
- return;
- }
- if (this.Radio_H_G.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " green"
- });
- return;
- }
- if (this.Radio_H_C.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " cyan"
- });
- return;
- }
- if (this.Radio_H_P.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " magenta"
- });
- return;
- }
- if (this.Radio_H_Y.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " yellow"
- });
- return;
- }
- if (this.Radio_H_N.Checked)
- {
- this.con.Send("say", new object[]
- {
- "/setteam " + username + " none"
- });
- }
- }
- }
- private void defaultToolStripMenuItem_Click(object sender, System.EventArgs e)
- {
- this.SpaceBackground.Checked = false;
- this.customeBackground.Checked = false;
- Form.ActiveForm.BackgroundImage = null;
- Settings.Default.CustomeBackground = "";
- }
- private void SpaceBackground_Click(object sender, System.EventArgs e)
- {
- this.DefaultBackground.Checked = false;
- this.customeBackground.Checked = false;
- Form.ActiveForm.BackgroundImage = Resources.Space;
- Settings.Default.CustomeBackground = "Space";
- }
- private void customeToolStripMenuItem_Click(object sender, System.EventArgs e)
- {
- this.openBackgroundDialog.Title = "Choose a picture";
- this.openBackgroundDialog.FileName = "picture";
- this.openBackgroundDialog.InitialDirectory = System.Environment.CurrentDirectory;
- if (this.openBackgroundDialog.ShowDialog() != DialogResult.OK)
- {
- MessageBox.Show("Something went wrong. Did you select a file?", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
- return;
- }
- if (!System.IO.File.Exists(this.openBackgroundDialog.FileName))
- {
- MessageBox.Show("File does not exist.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
- return;
- }
- string[] source = new string[]
- {
- ".png",
- ".jpg"
- };
- if (source.Contains(System.IO.Path.GetExtension(this.openBackgroundDialog.FileName)))
- {
- this.DefaultBackground.Checked = false;
- this.SpaceBackground.Checked = false;
- this.customeBackground.Checked = true;
- Form.ActiveForm.BackgroundImage = Image.FromFile(this.openBackgroundDialog.FileName);
- Settings.Default.CustomeBackground = this.openBackgroundDialog.FileName;
- return;
- }
- MessageBox.Show("File has to be of the type .png or .jpg", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
- }
- private void button1_Click(object sender, System.EventArgs e)
- {
- InfoForm infoForm = new InfoForm();
- infoForm.Show();
- }
- private void button2_Click(object sender, System.EventArgs e)
- {
- InfoForm infoForm = new InfoForm();
- infoForm.Show();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement