Ejemplo n.º 1
0
        // Load event flags box
        private void button_datalong2_Click(object sender, EventArgs e)
        {
            EventFlag dialog = null;

            switch (comboBoxAction.SelectedIndex)
            {
            case 16:            // play sound
                dialog = new EventFlag(this, Convert.ToInt32(textBox_datalong2.Text), Info.SoundBitmask, 6, 0);
                dialog.ShowDialog(this);
                break;

            case 22:            // change faction
                dialog = new EventFlag(this, Convert.ToInt32(textBox_datalong2.Text), Info.FactionFlag, 6, 0);
                dialog.ShowDialog(this);
                break;

            case 27:            // go lock state
                dialog = new EventFlag(this, Convert.ToInt32(textBox_datalong.Text), Info.GameObjectFlags, 6, 0);
                dialog.ShowDialog(this);
                break;

            case 29:            // npc flags
                dialog = new EventFlag(this, Convert.ToInt32(textBox_datalong.Text), Info.NpcFlags, 6, 0);
                dialog.ShowDialog(this);
                break;
            }
        }
Ejemplo n.º 2
0
 // Data flags load
 private void button_flags_Click(object sender, EventArgs e)
 {
     EventFlag dialog = new EventFlag(this, Convert.ToInt32(textBox_flags.Text), Info.ScriptFlags, 5, 0);
     dialog.ShowDialog(this);
 }
Ejemplo n.º 3
0
        // Load event flags box
        private void button_datalong2_Click(object sender, EventArgs e)
        {
            EventFlag dialog = null;

            switch (comboBoxAction.SelectedIndex)
            {
                case 16:        // play sound
                    dialog = new EventFlag(this, Convert.ToInt32(textBox_datalong2.Text), Info.SoundBitmask, 6, 0);
                    dialog.ShowDialog(this);
                    break;
                case 22:        // change faction
                    dialog = new EventFlag(this, Convert.ToInt32(textBox_datalong2.Text), Info.FactionFlag, 6, 0);
                    dialog.ShowDialog(this);
                    break;
                case 27:        // go lock state
                    dialog = new EventFlag(this, Convert.ToInt32(textBox_datalong.Text), Info.GameObjectFlags, 6, 0);
                    dialog.ShowDialog(this);
                    break;
                case 29:        // npc flags
                    dialog = new EventFlag(this, Convert.ToInt32(textBox_datalong.Text), Info.NpcFlags, 6, 0);
                    dialog.ShowDialog(this);
                    break;
            }
        }
Ejemplo n.º 4
0
 // Load spell mask selection
 private void button_spell_mask_Click(object sender, EventArgs e)
 {
     EventFlag dialog = new EventFlag(this, Convert.ToInt32(this.EventParam2.Text), Info.SpellSchoolMask, 1, 0);
     dialog.ShowDialog(this);
 }
Ejemplo n.º 5
0
 // Load event flags selection
 private void button_flag_select_Click(object sender, EventArgs e)
 {
     EventFlag dialog = new EventFlag(this, Convert.ToInt32(this.EventFlagTBox.Text), Info.EventFlags, 0, 0);
     dialog.ShowDialog(this);
 }
Ejemplo n.º 6
0
        // Data flags load
        private void button_flags_Click(object sender, EventArgs e)
        {
            EventFlag dialog = new EventFlag(this, Convert.ToInt32(textBox_flags.Text), Info.ScriptFlags, 5, 0);

            dialog.ShowDialog(this);
        }