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); }
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); }
//ページング実行 private void fncHePage(int page) { if (page <= 0) { page = 1; } textBox1.Text = page.ToString(); string strOutput = ""; strOutput += "he page " + page; refForm.fncExecuteCommand(strOutput); Win32API.keybd_click(Win32API.VK_DIVIDE); }
private void checkedListBox1_ItemCheck(object sender, ItemCheckEventArgs e) { String s = this.checkedListBox1.Items[e.Index] as String; if (s.StartsWith("-")) { s = s.Substring(1); } String strOpe = (e.NewValue.ToString() == "Checked") ? "enable" : "disable"; String strOutput = "skript " + strOpe + " " + s; refForm.fncExecuteCommand(strOutput); }
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); }
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); }
private void button25_Click(object sender, EventArgs e) { String strOutput = ""; strOutput += "tsc_event_preset"; refForm.fncExecuteCommand(strOutput); }