Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (fncTargetIsEmpty())
            {
                return;
            }
            string target = textBox1.Text.Trim();

            refForm.fncAddUser(target);
            string strOutput = "";

            strOutput += "gamemode 0 " + target;
            refForm.fncExecuteCommand(strOutput);
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            ComboBoxCustomItem selItem = (ComboBoxCustomItem)comboBox1.SelectedItem;

            if (selItem == null)
            {
                MessageBox.Show("効果を指定してください。");
                return;
            }
            string player    = textBox1.Text.Trim();
            string effect    = selItem.id.ToString();
            string seconds   = textBox2.Text.Trim();
            string amplifier = textBox3.Text.Trim();
            //string hideParticle = "false";
            string hideParticle = "";

            if (radioButton2.Checked)
            {
                hideParticle = "true";
            }
            refForm.fncAddUser(player);

            String strOutput = "";

            strOutput +=
                "effect" +
                " " + player +
                " " + effect +
                " " + seconds +
                " " + amplifier +
                " " + hideParticle;
            refForm.fncExecuteCommand(strOutput);
        }
Beispiel #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            string newItem;

            newItem = textBox1.Text.Trim();
            refForm.fncAddUser(newItem);
            newItem = textBox2.Text.Trim();
            refForm.fncAddUser(newItem);

            String strOutput  = "";
            String fromPlayer = textBox1.Text;
            String toPlayer   = textBox2.Text;

            strOutput += "tp " + fromPlayer + " " + toPlayer;
            refForm.fncExecuteCommand(strOutput);
        }
Beispiel #4
0
        private void fncDoEnchant(TableLayoutPanel table, object sender, String enchant)
        {
            if (textBox100.Text == "")
            {
                MessageBox.Show("対象IDを指定してください。");
                return;
            }
            Button btn = (Button)sender;
            TableLayoutPanelCellPosition pos = table.GetCellPosition(btn);

            pos.Column -= 1;
            Control c      = table.GetControlFromPosition(pos.Column, pos.Row);
            String  player = textBox100.Text;

            refForm.fncAddUser(player);


            String strOutput = "";

            strOutput += "enchant " + player + " " + enchant + " " + c.Text + " force";
            refForm.fncExecuteCommand(strOutput);
        }