示例#1
0
        public static void ShowEventType(ComboBox combobox, ComboBox cb1, ComboBox cb2, ComboBox cb3, ComboBox cb4, Label l1, Label l2, Label l3, Label l4)
        {
            ((GroupBox)combobox.Parent).Reset();

            switch ((EventType)combobox.SelectedValue.ToUInt32())
            {
                case EventType.ПО_ТАЙМЕРУ_В_БОЮ:
                case EventType.ПО_ТАЙМЕРУ_ВНЕ_БОЯ:
                    l1.Text = "Минимальное время до срабатывания (мс)";
                    l2.Text = "Максимальное время до срабатывания (мс)";
                    l3.Text = "Минимальное время до повтора (мс)";
                    l4.Text = "Максимальное время до повтора (мс)";
                    break;
                case EventType.ПРИ_ЗНАЧЕНИИ_ЖИЗНИ:
                case EventType.ПРИ_ЗНАЧЕНИИ_ЖИЗНИ_ЦЕЛИ:
                    l1.Text = "Максимальное значение жизни %";
                    l2.Text = "Минимальное значение жизни %";
                    l3.Text = "Минимальное время до повтора (мс)";
                    l4.Text = "Максимальное время до повтора (мс)";
                    break;
                case EventType.ПРИ_ЗНАЧЕНИИ_МАНЫ:
                case EventType.ПРИ_ЗНАЧЕНИИ_МАНЫ_У_ЦЕЛИ:
                    l1.Text = "Максимальное значение маны %";
                    l2.Text = "Минимальное значение маны %";
                    l3.Text = "Минимальное время до повтора (мс)";
                    l4.Text = "Максимальное время до повтора (мс)";
                    break;
                case EventType.ПРИ_УБИЙСТВЕ_ЦЕЛИ:
                case EventType.ЕСЛИ_ЦЕЛЬ_ЧИТАЕТ_ЗАКЛИНАНИЕ:
                    l1.Text = "Минимальное время до повтора (мс)";
                    l2.Text = "Максимальное время до повтора (мс)";
                    break;
                case EventType.ПРИ_УРОНЕ_ЗАКЛИНАНИЕМ:
                    l1.Text = "ID Заклинания";
                    new ButtonHandler(cb1, BType.SPELL, cb2, -1);
                    l2.Text = "Школа";
                    new ButtonHandler(cb2, typeof(School), cb1, 0);
                    l3.Text = "Минимальное время до повтора (мс)";
                    l4.Text = "Максимальное время до повтора (мс)";
                    break;
                case EventType.ПРИ_ДИСТАНЦИИ:
                    l1.Text = "Минимальная дистанция до цели";
                    l2.Text = "Максимальная дистанция до цели";
                    l3.Text = "Минимальное время до повтора (мс)";
                    l4.Text = "Максимальное время до повтора (мс)";
                    break;
                case EventType.ПРИ_ПОЯВЛЕНИИ_В_ЗОНЕ_ВИДИМОСТИ:
                    l1.Text = "Тип цели:";
                    cb1.SetEnumValues<TargetFrends>();
                    l2.Text = "Максимальная дистанция до цели";
                    l3.Text = "Минимальное время до повтора (мс)";
                    l4.Text = "Максимальное время до повтора (мс)";
                    break;
                case EventType.ПРИ_ЗНАЧЕНИИ_ЖИЗНИ_ДРУЖЕСТВЕННОЙ_ЦЕЛИ:
                    l1.Text = "Дефицит жизни дружественной цели";
                    l2.Text = "В радиусе";
                    l3.Text = "Минимальное время до повтора (мс)";
                    l4.Text = "Максимальное время до повтора (мс)";
                    break;
                case EventType.ЕСЛИ_ДРУЖЕСТВЕННАЯ_ЦЕЛЬ_ПОД_КОНТРОЛЕМ:
                    l1.Text = "Тип диспелла";
                    cb1.SetEnumValues<DispelType>("", "DISPEL_");
                    l2.Text = "В радиусе";
                    l3.Text = "Минимальное время до повтора (мс)";
                    l4.Text = "Максимальное время до повтора (мс)";
                    break;
                case EventType.ЕСЛИ_ТЕРЯЕТ_БАФФ:
                    l1.Text = "ID спелла (заклинания)";
                    new ButtonHandler(cb1, BType.SPELL);
                    l2.Text = "В радиусе";
                    l3.Text = "Минимальное время до повтора (мс)";
                    l4.Text = "Максимальное время до повтора (мс)";
                    break;
                case EventType.ПРИ_ВЫЗОВЕ_СУЩЕСТВА:
                    l1.Text = "ID существа";
                    new ButtonHandler(cb1, BType.CREATURE);
                    l2.Text = "Минимальное время до повтора (мс)";
                    l3.Text = "Максимальное время до повтора (мс)";
                    break;
                case EventType.ПРИ_ПОЛУЧЕНИИ_ЭМОЦИИ:
                    l1.Text = "ID эмоции";
                    l2.Text = "Условие";
                    cb1.SetDbcData(DBC.Emotes);
                    cb2.SetEnumValues<ConditionType>();
                    break;
                case EventType.ПРИ_ЗНАЧЕНИИ_БАФФА:
                case EventType.ПРИ_ЗНАЧЕНИИ_БАФФА_ЦЕЛИ:
                    l1.Text = "ID спелла";
                    new ButtonHandler(cb1, BType.SPELL);
                    l2.Text = "Количество";
                    l3.Text = "Минимальное время до повтора (мс)";
                    l4.Text = "Максимальное время до повтора (мс)";
                    break;
                case EventType.ПРИ_СМЕРТИ_ВЫЗВАННОГО_СУЩЕСТВА:
                case EventType.ПРИ_ИСЧЕЗНОВЕНИИ_ВЫЗВАННОГО_СУЩЕСТВА:
                    l1.Text = "ID существа";
                    new ButtonHandler(cb1, BType.CREATURE);
                    l2.Text = "Минимальное время до повтора (мс)";
                    l3.Text = "Максимальное время до повтора (мс)";
                    break;
            }

            cb1.Visible = l1.Text != string.Empty;
            cb2.Visible = l2.Text != string.Empty;
            cb3.Visible = l3.Text != string.Empty;
            cb4.Visible = l4.Text != string.Empty;
        }
示例#2
0
        public static void ShowActionParametr(ComboBox combobox, ComboBox cb1, ComboBox cb2, ComboBox cb3, Label l1, Label l2, Label l3)
        {
            ((GroupBox)combobox.Parent).Reset();

            switch ((ActionType)combobox.SelectedValue.ToUInt32())
            {
                case ActionType.ТЕКСТ:
                    l1.Text = "ID текста 1";
                    //new ButtonHandler(cb1, BType.TEXT);
                    l2.Text = "ID текста 2";
                    l3.Text = "ID текста 3";
                    break;
                case ActionType.УСТАНОВИТЬ_ФРАКЦИЮ:
                    l1.Text = "ID фракции";
                    cb1.SetDbcData(DBC.Faction);
                    break;
                case ActionType.ИЗМЕНИТЬ_МОДЕЛЬ_СУЩЕСТВА:
                    l1.Text = "ID существа";
                    new ButtonHandler(cb1, BType.CREATURE);
                    l2.Text = "ID модели";
                    break;
                case ActionType.ЗВУК:
                    l1.Text = "ID звука";
                    break;
                case ActionType.ЭМОЦИЯ:
                    l1.Text = "ID эмоции";
                    cb1.SetDbcData(DBC.Emotes);
                    break;
                case ActionType.ЧТЕНИЕ_ЗАКЛИНАНИЯ:
                    l1.Text = "ID спелла";
                    new ButtonHandler(cb1, BType.SPELL);
                    l2.Text = "Цель";
                    cb2.SetEnumValues<CastTarget>();
                    l3.Text = "Флаг каста";
                    new ButtonHandler(cb3, typeof(CastFlags));
                    break;
                case ActionType.ПРИЗЫВ:
                    l1.Text = "ID существа";
                    new ButtonHandler(cb1, BType.CREATURE);
                    l2.Text = "Цель";
                    l3.Text = "Продолжительность (мс)";
                    cb2.SetEnumValues<CastTarget>();
                    break;
                case ActionType.ИЗМЕНИТЬ_УГРОЗУ:
                    l1.Text = "Угроза %";
                    l2.Text = "Цель";
                    cb2.SetEnumValues<CastTarget>();
                    break;
                case ActionType.ИЗМЕНИТЬ_УГРОЗУ_ДЛЯ_ВСЕХ:
                    l1.Text = "Угроза %";
                    break;
                case ActionType.ВЫПОЛНИТЬ_УСЛОВИЕ_КВЕСТА:
                    l1.Text = "ID квеста";
                    new ButtonHandler(cb1, BType.QUEST);
                    l2.Text = "Цель";
                    cb2.SetEnumValues<CastTarget>();
                    break;
                case ActionType.ЗАСТАВИТЬ_ЧИТАТЬ_ЗАКЛИНАНИЕ:
                    l1.Text = "ID существа";
                    new ButtonHandler(cb1, BType.CREATURE);
                    l2.Text = "ID спелла";
                    new ButtonHandler(cb2, BType.SPELL);
                    l3.Text = "Цель";
                    cb3.SetEnumValues<CastTarget>();
                    break;
                case ActionType.ИЗМЕНИТЬ_UNIT_FIELD:
                    l1.Text = "Номер поля Data";
                    cb1.SetEnumValues<EUnitFields>("", "UNIT_FIELD_");
                    l2.Text = "Значение";
                    l3.Text = "Цель";
                    cb3.SetEnumValues<CastTarget>();
                    break;
                case ActionType.ИЗМЕНИТЬ_UNIT_FLAG:
                    l1.Text = "Флаг существа";
                    new ButtonHandler(cb1, typeof(UnitFlags));
                    l2.Text = "Цель";
                    cb2.SetEnumValues<CastTarget>();
                    break;
                case ActionType.УБРАТЬ_UNIT_FLAG:
                    l1.Text = "Флаг существа";
                    new ButtonHandler(cb1, typeof(UnitFlags));
                    l2.Text = "Цель";
                    cb2.SetEnumValues<CastTarget>();
                    break;
                case ActionType.АВТО_АТАКА_БЛИЖНЕГО_БОЯ:
                    l1.Text = "Разрешить атаку в ближнем бою";
                    cb1.SetEnumValues<YesNO>();
                    break;
                case ActionType.ДВИЖЕНИЕ_В_БОЮ:
                    l1.Text = "Разрешить движение в бою";
                    l2.Text = "Остановить, стартовать режим боя";
                    cb1.SetEnumValues<YesNO>();
                    cb2.SetEnumValues<YesNO>();
                    break;
                case ActionType.УСТАНОВИТЬ_ФАЗУ:
                    l1.Text = "Фаза";
                    new ButtonHandler(cb1, typeof(Phase));
                     break;
                case ActionType.ПОВЫСИТЬ_ФАЗУ:
                    l1.Text = "Значение";
                    break;
                case ActionType.ЗАВЕРШИТЬ_КВЕСТ_ДЛЯ_ГРУППЫ:
                    l1.Text = "ID квеста";
                    new ButtonHandler(cb1, BType.QUEST);
                    break;
                case ActionType.ЗАСЧИТАТЬ_ЧТЕНИЕ_ЗАКЛИНАНИЯ_ДЛЯ_ГРУППЫ:
                    l1.Text = "ID квеста";
                    new ButtonHandler(cb1, BType.QUEST);
                    l2.Text = "ID спелла";
                    new ButtonHandler(cb2, BType.SPELL);
                    break;
                case ActionType.УБРАТЬ_С_ЦЕЛИ_АУРУ:
                    l1.Text = "Цель";
                    cb1.SetEnumValues<CastTarget>();
                    l2.Text = "ID спелла";
                    new ButtonHandler(cb2, BType.SPELL);
                    break;
                case ActionType.УДАЛИТСЯ_ОТ_ЦЕЛИ:
                    l1.Text = "Дистанция";
                    l2.Text = "Под углом";
                    break;
                case ActionType.СЛУЧАЙНАЯ_ФРАЗА:
                    l1.Text = "ID фазы 1";
                    new ButtonHandler(cb1, typeof(Phase));
                    l2.Text = "ID фазы 2";
                    new ButtonHandler(cb2, typeof(Phase));
                    l3.Text = "ID фазы 3";
                    new ButtonHandler(cb3, typeof(Phase));
                    break;
                case ActionType.СЛУЧАЙНАЯ_ФАЗА_С_ПАРАМЕТРОМ:
                    l1.Text = "Минимальный номер фазы";
                    new ButtonHandler(cb1, typeof(Phase));
                    l2.Text = "Максимальный номер фазы";
                    new ButtonHandler(cb2, typeof(Phase));
                    break;
                case ActionType.ПРИЗЫВ_В_ОПРЕДЕЛЕННУЮ_ТОЧКУ:
                    l1.Text = "ID существа";
                    new ButtonHandler(cb1, BType.CREATURE);
                    l2.Text = "Цель";
                    cb2.SetEnumValues<CastTarget>();
                    l3.Text = "ID из creature_ai_summons";
                    break;
                case ActionType.ЗАСЧИТАТЬ_УБИЙСТВО_СУЩЕСТВА:
                    l1.Text = "ID существа";
                    new ButtonHandler(cb1, BType.CREATURE);
                    l2.Text = "Цель";
                    cb2.SetEnumValues<CastTarget>();
                    break;
                case ActionType.SET_INST_DATA:
                    l1.Text = "Поле";
                    l2.Text = "Значение";
                    cb2.SetEnumValues<InstantData>();
                    break;
                case ActionType.SET_INST_DATA64:
                    l1.Text = "Поле";
                    l2.Text = "Цель";
                    cb2.SetEnumValues<CastTarget>();
                    break;
                case ActionType.ИЗМЕНИТЬ_ПАРАМЕТРЫ_СУЩЕСТВА:
                    l1.Text = "Существо";
                    new ButtonHandler(cb1, BType.CREATURE);
                    l2.Text = "Команда:";
                    cb2.SetEnumValues<Team>();
                    break;
                case ActionType.ОБРАТИТЬСЯ_ЗА_ПОМОЩЬЮ:
                    l1.Text = "В радиусе:";
                    break;
                case ActionType.ВИЗУАЛИЗАЦИЯ_ДЕЙСТВИЯ_С_ОРУЖИЕМ:
                    l1.Text = "Действие";
                    cb1.SetEnumValues<SheathState>();
                     break;
                case ActionType.ПРИНУДИТЕЛЬНО_ДЕСПАВНИТЬ:
                     l1.Text = "Задержка (мс)";
                    break;
                case ActionType.НЕВОЗМОЖНОСТЬ_АТАКОВАТЬ:
                    l1.Text = "Тип значения";
                    l2.Text = "При значении жизни";
                    cb1.SetEnumValues<ValueType>();
                    break;
            }

            cb1.Visible = l1.Text != string.Empty;
            cb2.Visible = l2.Text != string.Empty;
            cb3.Visible = l3.Text != string.Empty;
        }
示例#3
0
        public static void ShowActionTyteCondition(ComboBox combobox, ComboBox cb2, ComboBox cb3, ComboBox cb4, Label l3, Label l4)
        {
            if ((EventType)combobox.SelectedValue.ToInt32() == EventType.ПРИ_ПОЛУЧЕНИИ_ЭМОЦИИ)
            {
                ((GroupBox)combobox.Parent).ResetButton();
                l3.Text = l4.Text = string.Empty;
                cb3.Reset();
                cb4.Reset();

                switch ((ConditionType)cb2.SelectedValue.ToUInt32())
                {
                    case ConditionType.ПРИ_НАЛИЧИИ_АУРЫ:
                        l3.Text = "ID спелла";
                        new ButtonHandler(cb3, BType.SPELL);
                        l4.Text = "Время до повтора (мс)";
                        break;
                    case ConditionType.ПРИ_НАЛИЧИИ_ПРЕЕДМЕТА:
                    case ConditionType.ЕСЛИ_ПРЕДМЕТ_НА_ПЕРСОНАЖЕ:
                        l3.Text = "ID предмета";
                        new ButtonHandler(cb3, BType.ITEM);
                        l4.Text = "Количество";
                        break;
                    case ConditionType.ЕСЛИ_НАХОДИТСЯ_В_ЗОНЕ:
                        l3.Text = "ID зоны";
                        cb3.SetDbcData(DBC.AreaTable);
                        break;
                    case ConditionType.ПРИ_НАЛИЧИИ_РЕПУТАЦИИ:
                        l3.Text = "ID фракции";
                        cb3.SetDbcData(DBC.Faction);
                        l4.Text = "Минимальный ранг";
                        break;
                    case ConditionType.КОМАНДА:
                        l3.Text = "Команда";
                        cb3.SetEnumValues<ConditionTeam>();
                        break;
                    case ConditionType.ПРИ_НАЛИЧИИ_УМЕНИЯ:
                        l3.Text = "ID умения";
                        cb3.SetDbcData(DBC.SkillLine);
                        l4.Text = "Минимальный уровень прокачки";
                        break;
                    case ConditionType.ЕСЛИ_КВЕСТ_СДАН:
                    case ConditionType.ЕСЛИ_КВЕСТ_НЕ_СДАН:
                        l3.Text = "ID квеста";
                        new ButtonHandler(cb3, BType.QUEST);
                        break;
                    case ConditionType.ПРИ_АКТИВНОМ_ЭВЕНТЕ:
                        l3.Text = "ID эвента";
                        cb3.SetDbcData(DBC.HolidayNames);
                        break;
                }

                cb3.Visible = l3.Text != string.Empty;
                cb4.Visible = l4.Text != string.Empty;
            }
        }
示例#4
0
        public static void ShowActionParametr(ComboBox combobox, ComboBox cb1, ComboBox cb2, ComboBox cb3, Label l1, Label l2, Label l3)
        {
            ((GroupBox)combobox.Parent).Reset();

            switch ((ActionType)combobox.SelectedValue.ToUInt32())
            {
                case ActionType.TEXT:
                    l1.Text = "ID Text 1";
                    //new ButtonHandler(cb1, BType.TEXT);
                    l2.Text = "ID Text 2";
                    l3.Text = "ID Text 3";
                    break;
                case ActionType.SET_FACTION:
                    l1.Text = "FactionID";
                    cb1.SetDbcData(DBC.Faction, null);
                    break;
                case ActionType.MORPH_TO_ENTRY_OR_MODEL:
                    l1.Text = "CreatureID";
                    new ButtonHandler(cb1, BType.CREATURE, null, 0);
                    l2.Text = "ModelID";
                    break;
                case ActionType.SOUND:
                    l1.Text = "ID sound";
                    break;
                case ActionType.EMOTE:
                    l1.Text = "EmoteID";
                    cb1.SetDbcData(DBC.Emotes, null);
                    break;
                case ActionType.CAST:
                    l1.Text = "SpellId";
                    new ButtonHandler(cb1, BType.SPELL, null, 0);
                    l2.Text = "Target";
                    cb2.SetEnumValues<CastTarget>("", "", true);
                    l3.Text = "CastFlags";
                    new ButtonHandler(cb3, typeof(CastFlags), null, 0);
                    break;
                case ActionType.TEMP_SUMMON:
                    l1.Text = "CreatureID";
                    new ButtonHandler(cb1, BType.CREATURE, null , 0);
                    l2.Text = "Target";
                    l3.Text = "Duration (ms)";
                    cb2.SetEnumValues<CastTarget>("", "", true);
                    break;
                case ActionType.THREAT_SINGLE_PCT:
                    l1.Text = "Threat %";
                    l2.Text = "Target";
                    cb2.SetEnumValues<CastTarget>("", "", true);
                    break;
                case ActionType.THREAT_ALL_PCT:
                    l1.Text = "Threat %";
                    break;
                case ActionType.QUEST_EVENT:
                    l1.Text = "QuestID";
                    new ButtonHandler(cb1, BType.QUEST, null, 0);
                    l2.Text = "Target";
                    cb2.SetEnumValues<CastTarget>("", "", true);
                    break;
                case ActionType.CASTCREATUREGO:
                    l1.Text = "CreatureID";
                    new ButtonHandler(cb1, BType.CREATURE, null , 0);
                    l2.Text = "SpellID";
                    new ButtonHandler(cb2, BType.SPELL, null , 0);
                    l3.Text = "Target";
                    cb3.SetEnumValues<CastTarget>("", "", true);
                    break;
                case ActionType.SET_UNIT_FIELD:
                    l1.Text = "Field_Number";
                    cb1.SetEnumValues<EUnitFields>("", "UNIT_FIELD_", true);
                    l2.Text = "Value";
                    l3.Text = "Target";
                    cb3.SetEnumValues<CastTarget>("", "", true);
                    break;
                case ActionType.SET_UNIT_FLAG:
                    l1.Text = "Flag being";
                    new ButtonHandler(cb1, typeof(UnitFlags), null, 0);
                    l2.Text = "Target";
                    cb2.SetEnumValues<CastTarget>("", "", true);
                    break;
                case ActionType.REMOVE_UNIT_FLAG:
                    l1.Text = "Flag being";
                    new ButtonHandler(cb1, typeof(UnitFlags), null, 0);
                    l2.Text = "Target";
                    cb2.SetEnumValues<CastTarget>("", "", true);
                    break;
                case ActionType.AUTO_ATTACK:
                    l1.Text = "AllowAutoAttack";
                    cb1.SetEnumValues<YesNO>("", "", true);
                    break;
                case ActionType.COMBAT_MOVEMENT:
                    l1.Text = "Allow movement in battle";
                    l2.Text = "Stop, start combat mode";
                    cb1.SetEnumValues<YesNO>("", "", true);
                    cb2.SetEnumValues<YesNO>("", "", true);
                    break;
                case ActionType.SET_PHASE:
                    l1.Text = "Phase";
                    new ButtonHandler(cb1, typeof(Phase), null, 0);
                     break;
                case ActionType.INC_PHASE:
                     l1.Text = "Value";
                    break;
                case ActionType.QUEST_EVENT_ALL:
                    l1.Text = "QuestId";
                    new ButtonHandler(cb1, BType.QUEST, null, 0);
                    break;
                case ActionType.CASTCREATUREGO_ALL:
                    l1.Text = "QuestId";
                    new ButtonHandler(cb1, BType.QUEST, null, 0);
                    l2.Text = "SpellId";
                    new ButtonHandler(cb2, BType.SPELL, null, 0);
                    break;
                case ActionType.REMOVEAURASFROMSPELL:
                    l1.Text = "Target";
                    cb1.SetEnumValues<CastTarget>("", "" , true);
                    l2.Text = "SpellId";
                    new ButtonHandler(cb2, BType.SPELL, null, 0);
                    break;
                case ActionType.RANGED_MOVEMENT:
                    l1.Text = "Distance";
                    l2.Text = "Angle";
                    break;
                case ActionType.RANDOM_PHASE:
                    l1.Text = "PhaseID 1";
                    new ButtonHandler(cb1, typeof(Phase), null, 0);
                    l2.Text = "PhaseID 2";
                    new ButtonHandler(cb2, typeof(Phase), null, 0);
                    l3.Text = "PhaseID 3";
                    new ButtonHandler(cb3, typeof(Phase), null, 0);
                    break;
                case ActionType.RANDOM_PHASE_RANGE:
                    l1.Text = "The minimum number of phases";
                    new ButtonHandler(cb1, typeof(Phase), null, 0);
                    l2.Text = "The maximum number of phases";
                    new ButtonHandler(cb2, typeof(Phase), null, 0);
                    break;
                case ActionType.SUMMON:
                    l1.Text = "CreatureID";
                    new ButtonHandler(cb1, BType.CREATURE, null, 0);
                    l2.Text = "Target";
                    cb2.SetEnumValues<CastTarget>("", "", true);
                    l3.Text = "ID for creature_ai_summons";
                    break;
                case ActionType.KILLED_MONSTER:
                    l1.Text = "CreatureID ";
                    new ButtonHandler(cb1, BType.CREATURE, null, 0);
                    l2.Text = "Target";
                    cb2.SetEnumValues<CastTarget>("", "", true);
                    break;
                case ActionType.SET_INST_DATA:
                    l1.Text = "Field";
                    l2.Text = "Data";
                    cb2.SetEnumValues<instanceData>("", "", true);
                    break;
                case ActionType.SET_INST_DATA64:
                    l1.Text = "Field";
                    l2.Text = "Target";
                    cb2.SetEnumValues<CastTarget>("", "", true);
                    break;
                case ActionType.UPDATE_TEMPLATE:
                    l1.Text = "TemplateId";
                    new ButtonHandler(cb1, BType.CREATURE, null, 0);
                    l2.Text = "Team:";
                    cb2.SetEnumValues<Team>("", "", true);
                    break;
                case ActionType.CALL_FOR_HELP:
                    l1.Text = "Radius:";
                    break;
                case ActionType.SET_SHEATH:
                    l1.Text = "Set Sheath State";
                    cb1.SetEnumValues<SheathState>("", "", true);
                     break;
                case ActionType.FORCE_DESPAWN:
                     l1.Text = "Delay (мs)";
                    break;
                case ActionType.SET_INVINCIBILITY_HP_LEVEL:
                    l1.Text = "Minimum Health";
                    l2.Text = "If the value of life";
                    cb1.SetEnumValues<ValueType>("", "", true);
                    break;
                case ActionType.MOUNT_TO_ENTRY_OR_MODEL:
                    l1.Text = "Entry";
                    l2.Text = "Model";
                    new ButtonHandler(cb1, BType.CREATURE, null, 0);
                    break;
            }

            cb1.Visible = l1.Text != string.Empty;
            cb2.Visible = l2.Text != string.Empty;
            cb3.Visible = l3.Text != string.Empty;
        }
示例#5
0
        public static void ShowGossipCondition(ComboBox combobox, ComboBox cb1, ComboBox cb2, Label l1, Label l2)
        {
            ((GroupBox)combobox.Parent).Reset();

            switch ((Gossip_Conditions)combobox.SelectedValue.ToUInt32())
            {
                case Gossip_Conditions.AURA:
                case Gossip_Conditions.NO_AURA:
                    l1.Text = "SpellID";
                    l2.Text = "EffIndex";
                    break;
                case Gossip_Conditions.ITEM:
                case Gossip_Conditions.NO_ITEM:
                case Gossip_Conditions.ITEM_WITH_BANK:
                case Gossip_Conditions.NOITEM_WITH_BANK:
                    l1.Text = "ItemID";
                    l2.Text = "Count";
                    break;
                case Gossip_Conditions.ITEM_EQUIPPED:
                    l1.Text = "ItemID";
                    break;
                case Gossip_Conditions.AREAID:
                    l1.Text = "Area_id";
                    l2.Text = "Sub or Not";
                    cb1.SetDbcData(DBC.AreaTable, null);
                    cb2.SetEnumValues<SubArea>("", "", true);
                    break;
                case Gossip_Conditions.REPUTATION_RANK:
                    l1.Text = "Faction_id";
                    l2.Text = "minimum rank";
                    cb1.SetDbcData(DBC.Faction, null);
                    break;
                case Gossip_Conditions.TEAM:
                    l1.Text = "Player Team";
                    cb1.SetEnumValues<ConditionTeam>("", "", true);
                    break;
                case Gossip_Conditions.SKILL:
                    l1.Text = "Skill ID";
                    l2.Text = "Value";
                    cb1.SetDbcData(DBC.SkillLine, null);
                    break;
                case Gossip_Conditions.QUEST_REWARDED:
                case Gossip_Conditions.QUEST_TAKEN:
                case Gossip_Conditions.QUEST_AVAILBLE:
                case Gossip_Conditions.QUEST_NONE:
                    l1.Text = "Quest ID";
                    break;
                case Gossip_Conditions.ACTIVE_EVENT:
                case Gossip_Conditions.NOT_ACTIVE_GAME_EVENT:
                    l1.Text = "Event ID";
                    cb1.SetDbcData(DBC.HolidayNames, null);
                    break;
                case Gossip_Conditions.AREA_FLAG:
                    l1.Text = "Flag";
                    l2.Text = "Not Flag";
                    break;
                case Gossip_Conditions.RACE_CLASS:
                    l1.Text = "Race";
                    l2.Text = "Class";
                    cb1.SetEnumValues<Race>("", "", true);
                    cb2.SetEnumValues<Class>("", "", true);
                    break;
                case Gossip_Conditions.LEVEL:
                    l1.Text = "Player level";
                    l2.Text = "status";
                    cb2.SetEnumValues<PlayerLevel>("", "", true);
                    break;
                case Gossip_Conditions.SPELL:
                    l1.Text = "Spell ID";
                    l2.Text = "status";
                    cb2.SetEnumValues<HasOrNot>("", "", true);
                    break;
                case Gossip_Conditions.INSTANCE_SCRIPT:
                    l1.Text = "Map ID";
                    l2.Text = "Instance Condition";
                    cb1.SetDbcData(DBC.Map, null);
                    cb2.SetEnumValues<instanceData>("", "", true);
                    break;
                case Gossip_Conditions.ACHIEVEMENT:
                    l1.Text = "Achievemnt ID";
                    l2.Text = "status";
                    cb1.SetDbcData(DBC.Achievement, null);
                    cb2.SetEnumValues<HasOrNot>("", "", true);
                    break;
                case Gossip_Conditions.ACHIEVEMENTREALM:
                    l1.Text = "Achievemnt ID";
                    l2.Text = "status";
                    cb1.SetDbcData(DBC.Achievement, null);
                    cb2.SetEnumValues<HasOrNot>("", "", true);
                    break;
                case Gossip_Conditions.ACTIVE_HOLIDAY:
                case Gossip_Conditions.NOT_ACTIVE_HOLIDAY:
                    l1.Text = "Holiday ID";
                    cb1.SetDbcData(DBC.HolidayNames, null);
                    break;
            }

            cb1.Visible = l1.Text != string.Empty;
            cb2.Visible = l2.Text != string.Empty;
        }
示例#6
0
        public static void ShowEventType(ComboBox combobox, ComboBox cb1, ComboBox cb2, ComboBox cb3, ComboBox cb4, Label l1, Label l2, Label l3, Label l4)
        {
            ((GroupBox)combobox.Parent).Reset();

            switch ((EventType)combobox.SelectedValue.ToUInt32())
            {
                case EventType.TIMER:
                case EventType.TIMER_OOC:
                    l1.Text = "InitialMin (мs)";
                    l2.Text = "InitialMax (мs)";
                    l3.Text = "RepeatMin (мs)";
                    l4.Text = "RepeatMax (мs)";
                    break;
                case EventType.HP:
                case EventType.TARGET_HP:
                    l1.Text = "HPMax%";
                    l2.Text = "HPMin%";
                    l3.Text = "RepeatMin (мs)";
                    l4.Text = "RepeatMax (мs)";
                    break;
                case EventType.MANA:
                case EventType.TARGET_MANA:
                    l1.Text = "ManaMax%";
                    l2.Text = "ManaMin%";
                    l3.Text = "RepeatMin (мs)";
                    l4.Text = "RepeatMax (мs)";
                    break;
                case EventType.KILL:
                case EventType.TARGET_CASTING:
                    l1.Text = "RepeatMin  (мs)";
                    l2.Text = "RepeatMax  (мs)";
                    break;
                case EventType.SPELLHIT:
                    l1.Text = "SpellID";
                    new ButtonHandler(cb1, BType.SPELL, cb2, -1);
                    l2.Text = "School";
                    new ButtonHandler(cb2, typeof(School), cb1, 0);
                    l3.Text = "RepeatMin (мs)";
                    l4.Text = "RepeatMax (мs)";
                    break;
                case EventType.RANGE:
                    l1.Text = "MinDist";
                    l2.Text = "MaxDist";
                    l3.Text = "RepeatMin (мs)";
                    l4.Text = "RepeatMax (мs)";
                    break;
                case EventType.OOC_LOS:
                    l1.Text = "Hostile-or-Not";
                    cb1.SetEnumValues<TargetFrends>("", "", true);
                    l2.Text = "MaxAllowedRange";
                    l3.Text = "RepeatMin (мs)";
                    l4.Text = "RepeatMax (мs)";
                    break;
                case EventType.FRIENDLY_HP:
                    l1.Text = "HPDeficit";
                    l2.Text = "Radius";
                    l3.Text = "RepeatMin (мs)";
                    l4.Text = "RepeatMax (мs)";
                    break;
                case EventType.FRIENDLY_IS_CC:
                    l1.Text = "DispelType";
                    cb1.SetEnumValues<DispelType>("", "DISPEL_", true);
                    l2.Text = "Radius";
                    l3.Text = "RepeatMin (мs)";
                    l4.Text = "RepeatMax (мs)";
                    break;
                case EventType.FRIENDLY_MISSING_BUFF:
                    l1.Text = "SpellId";
                    new ButtonHandler(cb1, BType.SPELL, null, 0);
                    l2.Text = "Radius";
                    l3.Text = "RepeatMin (мs)";
                    l4.Text = "RepeatMax (мs)";
                    break;
                case EventType.SUMMONED_UNIT:
                    l1.Text = "CreatureId";
                    new ButtonHandler(cb1, BType.CREATURE, null, 0);
                    l2.Text = "RepeatMin (ms)";
                    l3.Text = "RepeatMax (ms)";
                    break;
                case EventType.RECEIVE_EMOTE:
                    l1.Text = "EmoteID";
                    l2.Text = "condition";
                    cb1.SetDbcData(DBC.Emotes, null);
                    cb2.SetEnumValues<ConditionType>("", "", true);
                    break;
                case EventType.AURA:
                case EventType.TARGET_AURA:
                case EventType.MISSING_AURA:
                case EventType.TARGET_MISSING_AURA:
                    l1.Text = "SpellID";
                    new ButtonHandler(cb1, BType.SPELL, null, 0);
                    l2.Text = "Amount";
                    l3.Text = "RepeatMin (ms)";
                    l4.Text = "RepeatMax (ms)";
                    break;
                case EventType.SUMMONED_JUST_DIED:
                case EventType.SUMMONED_JUST_DESPAWN:
                    l1.Text = "CreatureId";
                    new ButtonHandler(cb1, BType.CREATURE, null, 0);
                    l2.Text = "RepeatMin (ms)";
                    l3.Text = "RepeatMax (ms)";
                    break;
            }

            cb1.Visible = l1.Text != string.Empty;
            cb2.Visible = l2.Text != string.Empty;
            cb3.Visible = l3.Text != string.Empty;
            cb4.Visible = l4.Text != string.Empty;
        }
示例#7
0
        public static void ShowActionTyteCondition(ComboBox combobox, ComboBox cb2, ComboBox cb3, ComboBox cb4, Label l3, Label l4)
        {
            if ((EventType)combobox.SelectedValue.ToInt32() == EventType.RECEIVE_EMOTE)
            {
                ((GroupBox)combobox.Parent).ResetButton();
                l3.Text = l4.Text = string.Empty;
                cb3.Reset();
                cb4.Reset();

                switch ((ConditionType)cb2.SelectedValue.ToUInt32())
                {
                    case ConditionType.AURA:
                        l3.Text = "SpellID";
                        new ButtonHandler(cb3, BType.SPELL, null, 0);
                        l4.Text = "Time to repeat (ms)";
                        break;
                    case ConditionType.ITEM:
                    case ConditionType.ITEM_EQUIPPED:
                        l3.Text = "ItemID";
                        new ButtonHandler(cb3, BType.ITEM, null, 0);
                        l4.Text = "count";
                        break;
                    case ConditionType.ZONEID:
                        l3.Text = "ZoneID";
                        cb3.SetDbcData(DBC.AreaTable, null);
                        break;
                    case ConditionType.REPUTATION_RANK:
                        l3.Text = "FactionID";
                        cb3.SetDbcData(DBC.Faction, null);
                        l4.Text = "Minimum Rank";
                        break;
                    case ConditionType.TEAM:
                        l3.Text = "Team";
                        cb3.SetEnumValues<ConditionTeam>("", "", true);
                        break;
                    case ConditionType.SKILL:
                        l3.Text = "SkillID";
                        cb3.SetDbcData(DBC.SkillLine, null);
                        l4.Text = "Minimum Skill Value";
                        break;
                    case ConditionType.QUESTREWARDED:
                    case ConditionType.QUESTTAKEN:
                        l3.Text = "QuestId";
                        new ButtonHandler(cb3, BType.QUEST, null, 0);
                        break;
                    case ConditionType.ACTIVE_EVENT:
                        l3.Text = "EventId";
                        cb3.SetDbcData(DBC.HolidayNames, null);
                        break;
                }

                cb3.Visible = l3.Text != string.Empty;
                cb4.Visible = l4.Text != string.Empty;
            }
        }