internal static DataTable GetFaction() { // basic factions var result = DbcHandler.LoadDbc("Faction", new string[] { "m_ID", "m_name_lang_1" }); result.Rows.Add(35, "Friendly to all"); result.Rows.Add(168, "Enemy to all"); result.Rows.Add(7, "Neutral Attackable"); result.Rows.Add(14, "Unfriendly Attackable"); return(result); }
private void saveBtn_Click(object sender, RoutedEventArgs e) { string dir = dbcDirTxt.Text; if (File.Exists(dir + @"\Wow.exe")) // Is wow dir, add dbc to path { dir += @"\dbc"; } Properties.Settings.Default.DbcDir = dir; Properties.Settings.Default.Save(); if (DbcHandler.VerifyDbcDir()) { MessageBox.Show("DBC Directory is configured correctly.", "Settings saved", MessageBoxButton.OK, MessageBoxImage.Information); } }
internal static DataTable GetEmotes() { return(DbcHandler.LoadDbc("Emotes", new string[] { "id", "description" })); }
internal static DataTable GetCharTitles() { return(DbcHandler.LoadDbc("CharTitles", new string[] { "field0", "field2" })); }
internal static DataTable GetMap() { return(DbcHandler.LoadDbc("Map", new string[] { "m_ID", "m_MapName_lang1" })); }
internal static DataTable GetSpells() { return(DbcHandler.LoadDbc("Spell", new string[] { "m_ID", "m_name_lang_1", "m_description_lang_1" })); }
public static DataTable GetQuestSortNames() { return(DbcHandler.LoadDbc("QuestSort", new string[] { "id", "name" })); }
public static DataTable GetAreaTableNames() { return(DbcHandler.LoadDbc("AreaTable", new string[] { "m_ID", "m_AreaName_lang" })); }