public static void OK_Click(object sender, EventArgs e)
        {
            if (Common.Configuration.Disconnected)
            {
                return;
            }
            if (EngineMessageBox.Visible)
            {
                return;
            }

            EngineMultimedia.Play(EngineSoundEnum.Click);

            if (textbox.Text.Length <= 1)
            {
                return;
            }

            WorldServerPacket.CreateCharacter(0, (byte)SelectedClasse, (byte)WindowCharacter.SelectedIndex, SelectedSprite, textbox.Text);

            textbox.Clear();
        }
Example #2
0
        public static void Start_MouseUp(object sender, EventArgs e)
        {
            if (EngineMessageBox.Visible)
            {
                return;
            }
            if (EngineInputBox.Visible)
            {
                return;
            }

            EngineMultimedia.Play(EngineSoundEnum.Click);

            if (PlayerData[SelectedIndex].Name.Length <= 0)
            {
                return;
            }

            EngineMessageBox.Enabled = false;
            EngineMessageBox.Show("Aguardando conexão");

            WorldServerPacket.StartGame((byte)SelectedIndex);
        }