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; }
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; }
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; }
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; } }
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; }
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; }
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; } }
public static void ShowActionType(ComboBox combobox, ComboBox cb1, ComboBox cb2, ComboBox cb3, ComboBox cb4, ComboBox cb5, ComboBox cb6, Label l1, Label l2, Label l3, Label l4, Label l5, Label l6) { ((GroupBox)combobox.Parent).Reset(); switch ((action_type)combobox.SelectedValue.ToUInt32()) { case action_type.TALK: l1.Text = "GroupID"; l2.Text = "Duration Before Triggered"; break; case action_type.SET_FACTION: l1.Text = " FactionID "; break; case action_type.MORPH_TO_ENTRY_OR_MODEL: case action_type.MOUNT_TO_ENTRY_OR_MODEL: l1.Text = "Entry"; l2.Text = "ModelID"; break; case action_type.SOUND: l1.Text = "SoundId"; l2.Text = "TextRange"; break; case action_type.PLAY_EMOTE: case action_type.SET_EMOTE_STATE: l1.Text = "EmoteId"; break; case action_type.ADD_QUEST: case action_type.FAIL_QUEST: case action_type.CALL_AREAEXPLOREDOREVENTHAPPENS: case action_type.CALL_GROUPEVENTHAPPENS: l1.Text = "QuestID"; break; case action_type.SET_REACT_STATE: l1.Text = "State"; cb1.SetEnumValues<ReactStates>("", "", true); break; case action_type.RANDOM_EMOTE: l1.Text = "EmoteId1"; l2.Text = "EmoteId2"; l3.Text = "EmoteId3"; break; case action_type.CAST: case action_type.INVOKER_CAST: l1.Text = "SpellId"; l2.Text = "CastFlags"; cb2.SetEnumValues<CastFlags>("", "", true); break; case action_type.SUMMON_CREATURE: l1.Text = "CreatureID"; l2.Text = "SummonType"; cb2.SetEnumValues<SummonTypes>("", "", true); l3.Text = "Duration(ms)"; l4.Text = "StorageID (always 0)"; cb4.SelectedText = "0"; l5.Text = "AttackInvoker"; break; case action_type.THREAT_ALL_PCT: case action_type.THREAT_SINGLE_PCT: l1.Text = "Threat%"; break; case action_type.SEND_CASTCREATUREORGO: l1.Text = "QuestID"; l2.Text = "SpellID"; break; case action_type.SET_UNIT_FLAG: case action_type.REMOVE_UNIT_FLAG: l1.Text = "UnitFlag"; //add enum break; case action_type.AUTO_ATTACK: l1.Text = "AllowAttackState"; break; case action_type.ALLOW_COMBAT_MOVEMENT: l1.Text = "AllowCombatMovement"; break; case action_type.SET_EVENT_PHASE: case action_type.SET_INGAME_PHASE_MASK: l1.Text = "PhaseMask"; //Implement break; case action_type.INC_EVENT_PHASE: l1.Text = "Increment"; l1.Text = "Decrement"; break; case action_type.CALL_CASTEDCREATUREORGO: l1.Text = "Entry"; l2.Text = "SpellID"; break; case action_type.REMOVEAURASFROMSPELL: l1.Text = "SpellId"; break; case action_type.FOLLOW: l1.Text = "Distance"; l2.Text = "Angle"; l3.Text = "EndCreatureEntry"; l4.Text = "Credit"; l5.Text = "CreditType"; break; case action_type.RANDOM_PHASE: l1.Text = "PhaseMask1"; //Implement l2.Text = "PhaseMask2"; //Implement l3.Text = "PhaseMask3"; //Implement break; case action_type.RANDOM_PHASE_RANGE: l1.Text = "PhaseMask_Min"; //Implement l2.Text = "PhaseMask_max"; //Implement break; case action_type.CALL_KILLEDMONSTER: l1.Text = "CreatureId"; break; case action_type.SET_INST_DATA: case action_type.SET_DATA: l1.Text = "Field"; l2.Text = "Data"; break; case action_type.SET_INST_DATA64: l1.Text = "Field"; break; case action_type.UPDATE_TEMPLATE: l1.Text = "Entry"; l2.Text = "Team"; break; case action_type.CALL_FOR_HELP: l1.Text = "Radius"; break; case action_type.SET_SHEATH: l1.Text = "Sheath"; cb1.SetEnumValues<Sheath>("", "", true); break; case action_type.FORCE_DESPAWN: case action_type.WP_PAUSE: l1.Text = "Timer"; break; case action_type.SET_INVINCIBILITY_HP_LEVEL: l1.Text = "MinHpValue"; break; case action_type.MOVE_FORWARD: case action_type.RANDOM_MOVE: l1.Text = "Distance"; break; case action_type.SET_VISIBILITY: case action_type.SET_RUN: case action_type.SET_FLY: case action_type.SET_SWIM: l1.Text = "0/1"; //unknown break; case action_type.SUMMON_GO: l1.Text = "Entry"; l2.Text = "DespawnTime(ms)"; break; case action_type.ACTIVATE_TAXI: l1.Text = "TaxiID"; break; case action_type.WP_START: l1.Text = "Run/Walk"; l2.Text = "WayPointEntry"; l3.Text = "CanRepeat"; l4.Text = "QuestEntry"; l5.Text = "DespawnTime"; l5.Text = "ReactState"; cb5.SetEnumValues<ReactStates>("", "", true); break; case action_type.WP_STOP: l1.Text = "DespawnTime"; l2.Text = "QuestEntry"; l3.Text = "Fail"; // true/false break; case action_type.ADD_ITEM: case action_type.REMOVE_ITEM: l1.Text = "ItemEntry"; l2.Text = "Count"; break; case action_type.INSTALL_AI_TEMPLATE: l1.Text = "AITemplateID"; break; case action_type.TELEPORT: l1.Text = "MapID"; break; case action_type.STORE_VARIABLE_DECIMAL: l1.Text = "varID"; l2.Text = "number"; break; case action_type.STORE_TARGET_LIST: l1.Text = "varID"; break; case action_type.CREATE_TIMED_EVENT: l1.Text = "ID"; l2.Text = "InitialMin"; l3.Text = "InitialMax"; l4.Text = "RepeatMin"; l5.Text = "RepeatMax"; l6.Text = "Chance"; break; case action_type.PLAYMOVIE: l1.Text = "Entry"; break; case action_type.EQUIP: l1.Text = "EquipID"; l2.Text = "Slotmask"; l3.Text = "slot1"; l4.Text = "slot2"; l5.Text = "slot3"; break; case action_type.TRIGGER_TIMED_EVENT: case action_type.REMOVE_TIMED_EVENT: l1.Text = "ID"; break; case action_type.ADD_AURA: l1.Text = "SpellID"; l2.Text = "Targets"; break; case action_type.ENTER_VEHICLE: l1.Text = "SeatID"; break; case action_type.CALL_TIMED_ACTIONLIST: l1.Text = "ID"; l2.Text = "StopAfterCombat"; // true/false l3.Text = "TimerUpdateType"; // (0-OOC,1-IC,2-ALWAYS) break; case action_type.SET_NPC_FLAG: case action_type.ADD_NPC_FLAG: case action_type.REMOVE_NPC_FLAG: l1.Text = "NPCFlag"; break; case action_type.SIMPLE_TALK: l1.Text = "GroupID"; break; case action_type.CROSS_CAST: l1.Text = "SpellId"; l2.Text = "CastFlags"; cb2.SetEnumValues<CastFlags>("", "", true); l3.Text = "CasterTargetType"; l4.Text = "CasterTargetParam1"; l5.Text = "CasterTargetParam2"; l6.Text = "CasterTargetParam3"; break; case action_type.SET_UNIT_FIELD_BYTES_1: case action_type.REMOVE_UNIT_FIELD_BYTES_1: l1.Text = "Value"; break; case action_type.INTERRUPT_SPELL: l1.Text = "WithDelay"; //bool l2.Text = "SpellId"; l3.Text = "WithInstant"; //bool break; case action_type.SEND_GO_CUSTOM_ANIM: l1.Text = "AnimProgress"; break; case action_type.SET_DYNAMIC_FLAG: case action_type.ADD_DYNAMIC_FLAG: case action_type.REMOVE_DYNAMIC_FLAG: l1.Text = "DynamicFlag"; //enum 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; cb5.Visible = l5.Text != string.Empty; cb6.Visible = l6.Text != string.Empty; }
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 ((event_type)combobox.SelectedValue.ToUInt32()) { case event_type.TIMER: case event_type.TIMER_OOC: case event_type.UPDATE: l1.Text = "InitialMin (мs)"; l2.Text = "InitialMax (мs)"; l3.Text = "RepeatMin (мs)"; l4.Text = "RepeatMax (мs)"; break; case event_type.HP: case event_type.TARGET_HP: l1.Text = "HPMax%"; l2.Text = "HPMin%"; l3.Text = "RepeatMin (мs)"; l4.Text = "RepeatMax (мs)"; break; case event_type.MANA: case event_type.TARGET_MANA: l1.Text = "ManaMax%"; l2.Text = "ManaMin%"; l3.Text = "RepeatMin (мs)"; l4.Text = "RepeatMax (мs)"; break; case event_type.KILL: l1.Text = "CooldownMin (мs)"; l2.Text = "CooldownMax (мs)"; l3.Text = "playerOnly2"; l4.Text = "creature entry3"; break; case event_type.TARGET_CASTING: l1.Text = "RepeatMin (мs)"; l2.Text = "RepeatMax (мs)"; break; case event_type.SPELLHIT: case event_type.SPELLHIT_TARGET: l1.Text = "SpellID"; l2.Text = "School"; l3.Text = "CooldownMin (мs)"; l4.Text = "CooldownMax (мs)"; break; case event_type.RANGE: l1.Text = "MinDist"; l2.Text = "MaxDist"; l3.Text = "RepeatMin (мs)"; l4.Text = "RepeatMax (мs)"; break; case event_type.OOC_LOS: l1.Text = "Hostile-or-Not"; cb1.SetEnumValues<TargetFrends>("", "", true); l2.Text = "MaxAllowedRange"; l3.Text = "RepeatMin (мs)"; l4.Text = "RepeatMax (мs)"; break; case event_type.RESPAWN: l1.Text = "Type"; l2.Text = "MapId"; l3.Text = "ZoneId"; break; case event_type.FRIENDLY_HP: l1.Text = "HPDeficit"; l2.Text = "Radius"; l3.Text = "RepeatMin (мs)"; l4.Text = "RepeatMax (мs)"; break; case event_type.FRIENDLY_IS_CC: case event_type.IC_LOS: l1.Text = "Radius"; l2.Text = "RepeatMin (мs)"; l3.Text = "RepeatMax (мs)"; break; case event_type.FRIENDLY_MISSING_BUFF: l1.Text = "SpellId"; l2.Text = "Radius"; l3.Text = "RepeatMin (мs)"; l4.Text = "RepeatMax (мs)"; break; case event_type.SUMMONED_UNIT: case event_type.SUMMON_DESPAWNED: l1.Text = "CreatureId"; l2.Text = "CooldownMin (ms)"; l3.Text = "CooldownMax (ms)"; break; case event_type.REWARD_QUEST: case event_type.ACCEPTED_QUEST: l1.Text = "QuestID"; break; case event_type.RECEIVE_EMOTE: l1.Text = "EmoteID"; l2.Text = "CooldownMin (ms)"; l3.Text = "CooldownMax (ms)"; l4.Text = "condition"; break; case event_type.HAS_AURA: case event_type.TARGET_BUFFED: l1.Text = "SpellID"; l2.Text = "Stacks"; l3.Text = "RepeatMin (мs)"; l4.Text = "RepeatMax (мs)"; break; case event_type.PASSENGER_BOARDED: case event_type.PASSENGER_REMOVED: l1.Text = "CooldownMin (ms)"; l2.Text = "CooldownMax (ms)"; break; case event_type.DAMAGED: case event_type.DAMAGED_TARGET: l1.Text = "MinDmg"; l2.Text = "MaxDmg "; l3.Text = "RepeatMin (мs)"; l4.Text = "RepeatMax (мs)"; break; case event_type.MOVEMENTINFORM: l1.Text = "MovementType"; l2.Text = "PointID"; break; case event_type.DATA_SET: l1.Text = "Field"; l2.Text = "Value"; l3.Text = "CooldownMin (ms)"; l4.Text = "CooldownMax (ms)"; break; case event_type.WAYPOINT_START: case event_type.WAYPOINT_REACHED: case event_type.WAYPOINT_PAUSED: case event_type.WAYPOINT_RESUMED: case event_type.WAYPOINT_STOPPED: case event_type.WAYPOINT_ENDED: l1.Text = "PointID"; l2.Text = "PathID"; break; case event_type.TRANSPORT_ADDCREATURE: l1.Text = "Entry"; break; case event_type.TRANSPORT_RELOCATE: l1.Text = "PointID"; break; case event_type.INSTANCE_PLAYER_ENTER: l1.Text = "Team"; l2.Text = "CooldownMin (ms)"; l3.Text = "CooldownMax (ms)"; break; case event_type.AREATRIGGER_ONTRIGGER: case event_type.TIMED_EVENT_TRIGGERED: l1.Text = "TriggerID"; break; case event_type.TEXT_OVER: l1.Text = "GroupId"; l2.Text = "CreatureId"; break; case event_type.RECEIVE_HEAL: l1.Text = "MinHeal"; l2.Text = "MaxHeal"; l3.Text = "CooldownMin (ms)"; l4.Text = "CooldownMax (ms)"; break; case event_type.GOSSIP_SELECT: l1.Text = "MenuID"; l2.Text = "ID"; break; case event_type.DUMMY_EFFECT: l1.Text = "SpellID"; l2.Text = "EffectIndex"; 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; }