public static void LoadSettings() { if (!Directory.Exists("Data/Mondain's Legacy")) { Directory.CreateDirectory("Data/Mondain's Legacy"); } if (!File.Exists("Data/Mondain's Legacy/Settings.xml")) { File.Create("Data/Mondain's Legacy/Settings.xml"); } try { XmlDocument doc = new XmlDocument(); doc.Load(Path.Combine(Core.BaseDirectory, "Data/Mondain's Legacy/Settings.xml")); XmlElement root = doc["Settings"]; if (root == null) { return; } ReadNode(root, "PalaceOfParoxysmus", ref m_PalaceOfParoxysmus); ReadNode(root, "TwistedWeald", ref m_TwistedWeald); ReadNode(root, "BlightedGrove", ref m_BlightedGrove); ReadNode(root, "Bedlam", ref m_Bedlam); ReadNode(root, "PrismOfLight", ref m_PrismOfLight); ReadNode(root, "Citadel", ref m_Citadel); ReadNode(root, "PaintedCaves", ref m_PaintedCaves); ReadNode(root, "Labyrinth", ref m_Labyrinth); ReadNode(root, "Sanctuary", ref m_Sanctuary); ReadNode(root, "StygianDragonLair", ref m_StygianDragonLair); ReadNode(root, "MedusasLair", ref m_MedusasLair); ReadNode(root, "Spellweaving", ref m_Spellweaving); ReadNode(root, "PublicDonations", ref m_PublicDonations); } catch { } if (Core.ML) { if (!FindItem(new Point3D(1431, 1696, 0), Map.Trammel, 0x307F)) { var addon = new ArcaneCircleAddon(); addon.MoveToWorld(new Point3D(1431, 1696, 0), Map.Trammel); } if (!FindItem(new Point3D(1431, 1696, 0), Map.Felucca, 0x307F)) { var addon = new ArcaneCircleAddon(); addon.MoveToWorld(new Point3D(1431, 1696, 0), Map.Felucca); } } }
public static void LoadSettings() { if (!FindItem(new Point3D(1431, 1696, 0), Map.Trammel, 0x307F)) { ArcaneCircleAddon addon = new ArcaneCircleAddon(); addon.MoveToWorld(new Point3D(1431, 1696, 0), Map.Trammel); } if (!FindItem(new Point3D(1431, 1696, 0), Map.Felucca, 0x307F)) { ArcaneCircleAddon addon = new ArcaneCircleAddon(); addon.MoveToWorld(new Point3D(1431, 1696, 0), Map.Felucca); } }