PageRenderTime 51ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 1ms

/Rhabot/ISXBotHelper/Settings/clsCreateProfile.cs

https://bitbucket.org/VahidN/rhabot2
C# | 1744 lines | 1107 code | 341 blank | 296 comment | 114 complexity | 03a722dc1181ea8a9f212bbfb2093501 MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using ISXBotHelper.Settings.Settings;
  4. using ISXBotHelper.Items;
  5. using ISXWoW;
  6. using ISXRhabotGlobal;
  7. namespace ISXBotHelper
  8. {
  9. internal static class clsCreateProfile
  10. {
  11. /// <summary>
  12. /// Creates default profiles
  13. /// </summary>
  14. public static void CreateDefaultProfiles()
  15. {
  16. try
  17. {
  18. // clear the dictionary
  19. clsSettings.DefaultSettingsList.Clear();
  20. // create settings for each class
  21. CreateDruidSettings();
  22. System.Windows.Forms.Application.DoEvents();
  23. CreateWarlockSettings();
  24. System.Windows.Forms.Application.DoEvents();
  25. CreateShamanSettings();
  26. System.Windows.Forms.Application.DoEvents();
  27. CreateMageSettings();
  28. System.Windows.Forms.Application.DoEvents();
  29. CreatePriestSettings();
  30. System.Windows.Forms.Application.DoEvents();
  31. }
  32. catch (Exception excep)
  33. {
  34. clsError.ShowError(excep, "CreateDefaultProfiles");
  35. }
  36. }
  37. #region Druid
  38. /// <summary>
  39. /// Create settings for druids
  40. /// </summary>
  41. private static void CreateDruidSettings()
  42. {
  43. clsGlobalSettings GlobalSettings = new clsGlobalSettings();
  44. clsLevelSettings LevelSettings = new clsLevelSettings();
  45. string SettingsName = "Default - Druid";
  46. int i;
  47. try
  48. {
  49. // set global settings
  50. GlobalSettings.AutoBuff_BuffList.Add("Thorns");
  51. GlobalSettings.AutoBuff_BuffList.Add("Mark of the Wild");
  52. GlobalSettings.AutoBuff_Heal = "Healing Touch";
  53. GlobalSettings.AutoBuff_HealPercent = 65;
  54. GlobalSettings.DeclineDuelInvite = true;
  55. GlobalSettings.DeclineGroupInvite = true;
  56. GlobalSettings.DeclineGuildInvite = true;
  57. GlobalSettings.ItemSellColors.Grey = true;
  58. // set auto equip list
  59. GlobalSettings.AutoEquipList = AutoCreate_Leather();
  60. #region TalentList
  61. for (i = 10; i < 15; i++)
  62. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Improved Mark of the Wild", i));
  63. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Furor", 15));
  64. for (i = 16; i <= 20; i++)
  65. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Naturalist", i));
  66. for (i = 21; i <= 23; i++)
  67. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Natural Shapeshifter", i));
  68. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Omen of Clarity", 24));
  69. for (i = 25; i <= 29; i++)
  70. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Ferocity", i));
  71. for (i = 30; i <= 32; i++)
  72. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Feral Instinct", i));
  73. for (i = 33; i <= 34; i++)
  74. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Brutal Impact", i));
  75. for (i = 35; i <= 37; i++)
  76. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Thick Hide", i));
  77. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Feral Charge", 38));
  78. for (i = 39; i <= 41; i++)
  79. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Sharpened Claws", i));
  80. for (i = 42; i <= 43; i++)
  81. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Shredding Attacks", i));
  82. for (i = 44; i <= 46; i++)
  83. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Predatory Strikes", i));
  84. for (i = 47; i <= 48; i++)
  85. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Primal Fury", i));
  86. for (i = 49; i <= 50; i++)
  87. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Savage Fury", i));
  88. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Faerie Fire (Feral)", 51));
  89. for (i = 52; i <= 53; i++)
  90. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Nurturing Instinct", i));
  91. for (i = 54; i <= 58; i++)
  92. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Heart of the Wild", i));
  93. for (i = 59; i <= 61; i++)
  94. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Survival of the Fittest", i));
  95. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Leader of the Pack", 62));
  96. for (i = 63; i <= 64; i++)
  97. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Improved Leader of the Pack", i));
  98. for (i = 69; i <= 69; i++)
  99. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Predatory Instincts", i));
  100. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Mangle", 70));
  101. // TalentList
  102. #endregion
  103. // save the global settings
  104. // clsSettings.Logging.AddToLog("CreateDruidSettings", "Saving Global DRUID Settings");
  105. SaveGlobalSettings(GlobalSettings, SettingsName);
  106. #region 1_3
  107. for (i = 1; i <= 3; i++)
  108. {
  109. // create settings
  110. LevelSettings = DefaultLevelSettings();
  111. LevelSettings.Combat_HealSpell = "Healing Touch";
  112. LevelSettings.Combat_PullSpell = "Wrath";
  113. LevelSettings.Combat_SpamSpells_List.Add("Wrath");
  114. // save settings
  115. // clsSettings.Logging.AddToLogFormatted("CreateDruidSettings", "Saving DRUID Settings for Level {0}", i);
  116. SaveLevelSettings(LevelSettings, i, SettingsName);
  117. }
  118. // 1_3
  119. #endregion
  120. #region 4_9
  121. for (i = 4; i <= 9; i++)
  122. {
  123. // create settings
  124. LevelSettings = DefaultLevelSettings();
  125. LevelSettings.Combat_PreBuffSpells_List.Add("Mark of the Wild");
  126. LevelSettings.Combat_PreBuffSpells_List.Add("Thorns");
  127. LevelSettings.Combat_HealSpell = "Healing Touch";
  128. LevelSettings.Combat_HealingOT = "Rejuvenation";
  129. LevelSettings.Combat_PullSpell = "Wrath";
  130. LevelSettings.Combat_SpamSpells_List.Add("Wrath");
  131. // save settings
  132. // clsSettings.Logging.AddToLogFormatted("CreateDruidSettings", "Saving DRUID Settings for Level {0}", i);
  133. SaveLevelSettings(LevelSettings, i, SettingsName);
  134. }
  135. // 4_9
  136. #endregion
  137. #region 10_14
  138. for (i = 10; i <= 14; i++)
  139. {
  140. // create settings
  141. LevelSettings = DefaultLevelSettings();
  142. LevelSettings.Combat_ClassSettings.Druid_ChangeToBearOnAggro = true;
  143. LevelSettings.Combat_ClassSettings.Druid_CombatForm = clsGlobals.ECombatClass_Druid_Form.Bear;
  144. LevelSettings.Combat_PreBuffSpells_List.Add("Mark of the Wild");
  145. LevelSettings.Combat_PreBuffSpells_List.Add("Thorns");
  146. LevelSettings.Combat_HealSpell = "Healing Touch";
  147. LevelSettings.Combat_HealingOT = "Rejuvenation";
  148. LevelSettings.Combat_PullSpell = "Maul";
  149. LevelSettings.Combat_DOT_List.Add("Demoralizing Roar");
  150. LevelSettings.Combat_SpamSpells_List.Add("Maul");
  151. // save settings
  152. // clsSettings.Logging.AddToLogFormatted("CreateDruidSettings", "Saving DRUID Settings for Level {0}", i);
  153. SaveLevelSettings(LevelSettings, i, SettingsName);
  154. }
  155. // 10_14
  156. #endregion
  157. #region 15_20
  158. for (i = 15; i <= 20; i++)
  159. {
  160. // create settings
  161. LevelSettings = DefaultLevelSettings();
  162. LevelSettings.Combat_ClassSettings.Druid_ChangeToBearOnAggro = true;
  163. LevelSettings.Combat_ClassSettings.Druid_CombatForm = clsGlobals.ECombatClass_Druid_Form.Bear;
  164. LevelSettings.Combat_PreBuffSpells_List.Add("Mark of the Wild");
  165. LevelSettings.Combat_PreBuffSpells_List.Add("Thorns");
  166. LevelSettings.Combat_HealSpell = "Healing Touch";
  167. LevelSettings.Combat_HealingOT = "Rejuvenation";
  168. LevelSettings.Combat_PullSpell = "Maul";
  169. LevelSettings.Combat_DOT_List.Add("Demoralizing Roar");
  170. LevelSettings.Combat_SpamSpells_List.Add("Maul");
  171. LevelSettings.Combat_SpamSpells_List.Add("Maul");
  172. LevelSettings.Combat_SpamSpells_List.Add("Bash");
  173. // save settings
  174. // clsSettings.Logging.AddToLogFormatted("CreateDruidSettings", "Saving DRUID Settings for Level {0}", i);
  175. SaveLevelSettings(LevelSettings, i, SettingsName);
  176. }
  177. // 15_20
  178. #endregion
  179. #region 21_26
  180. for (i = 21; i <= 26; i++)
  181. {
  182. // create settings
  183. LevelSettings = DefaultLevelSettings();
  184. LevelSettings.Combat_ClassSettings.Druid_ChangeToBearOnAggro = true;
  185. LevelSettings.Combat_ClassSettings.Druid_CombatForm = clsGlobals.ECombatClass_Druid_Form.Cat;
  186. LevelSettings.Combat_PreBuffSpells_List.Add("Mark of the Wild");
  187. LevelSettings.Combat_PreBuffSpells_List.Add("Thorns");
  188. LevelSettings.Combat_PreBuffSpells_List.Add("Prowl");
  189. LevelSettings.Combat_HealSpell = "Healing Touch";
  190. LevelSettings.Combat_HealingOT = "Rejuvenation";
  191. LevelSettings.Combat_PullSpell = "Claw";
  192. LevelSettings.Combat_SpamSpells_List.Add("Claw");
  193. LevelSettings.Combat_SpamSpells_List.Add("Claw");
  194. LevelSettings.Combat_SpamSpells_List.Add("Rip");
  195. // save settings
  196. // clsSettings.Logging.AddToLogFormatted("CreateDruidSettings", "Saving DRUID Settings for Level {0}", i);
  197. SaveLevelSettings(LevelSettings, i, SettingsName);
  198. }
  199. // 21_26
  200. #endregion
  201. #region 27_32
  202. for (i = 27; i <= 32; i++)
  203. {
  204. // create settings
  205. LevelSettings = DefaultLevelSettings();
  206. LevelSettings.Combat_ClassSettings.Druid_ChangeToBearOnAggro = true;
  207. LevelSettings.Combat_ClassSettings.Druid_CombatForm = clsGlobals.ECombatClass_Druid_Form.Cat;
  208. LevelSettings.Combat_PreBuffSpells_List.Add("Mark of the Wild");
  209. LevelSettings.Combat_PreBuffSpells_List.Add("Thorns");
  210. LevelSettings.Combat_PreBuffSpells_List.Add("Prowl");
  211. LevelSettings.Combat_PreBuffSpells_List.Add("Tiger's Fury");
  212. LevelSettings.Combat_HealSpell = "Healing Touch";
  213. LevelSettings.Combat_HealingOT = "Rejuvenation";
  214. LevelSettings.Combat_PullSpell = "Claw";
  215. LevelSettings.Combat_SpamSpells_List.Add("Faerie Fire (Feral)");
  216. LevelSettings.Combat_SpamSpells_List.Add("Claw");
  217. LevelSettings.Combat_SpamSpells_List.Add("Claw");
  218. LevelSettings.Combat_SpamSpells_List.Add("Rip");
  219. LevelSettings.Combat_SpamSpells_List.Add("Claw");
  220. LevelSettings.Combat_DOT_List.Add("Rake");
  221. // save settings
  222. // clsSettings.Logging.AddToLogFormatted("CreateDruidSettings", "Saving DRUID Settings for Level {0}", i);
  223. SaveLevelSettings(LevelSettings, i, SettingsName);
  224. }
  225. // 27_32
  226. #endregion
  227. #region 33_50
  228. for (i = 33; i <= 50; i++)
  229. {
  230. // create settings
  231. LevelSettings = DefaultLevelSettings();
  232. LevelSettings.Combat_ClassSettings.Druid_ChangeToBearOnAggro = true;
  233. LevelSettings.Combat_ClassSettings.Druid_CombatForm = clsGlobals.ECombatClass_Druid_Form.Cat;
  234. LevelSettings.Combat_PreBuffSpells_List.Add("Mark of the Wild");
  235. LevelSettings.Combat_PreBuffSpells_List.Add("Thorns");
  236. LevelSettings.Combat_PreBuffSpells_List.Add("Prowl");
  237. LevelSettings.Combat_PreBuffSpells_List.Add("Tiger's Fury");
  238. LevelSettings.Combat_HealSpell = "Healing Touch";
  239. LevelSettings.Combat_HealingOT = "Rejuvenation";
  240. LevelSettings.Combat_PullSpell = "Claw";
  241. LevelSettings.Combat_SpamSpells_List.Add("Faerie Fire (Feral)");
  242. LevelSettings.Combat_SpamSpells_List.Add("Claw");
  243. LevelSettings.Combat_SpamSpells_List.Add("Claw");
  244. LevelSettings.Combat_SpamSpells_List.Add("Ferocious Bite");
  245. LevelSettings.Combat_SpamSpells_List.Add("Claw");
  246. LevelSettings.Combat_DOT_List.Add("Rake");
  247. // save settings
  248. // clsSettings.Logging.AddToLogFormatted("CreateDruidSettings", "Saving DRUID Settings for Level {0}", i);
  249. SaveLevelSettings(LevelSettings, i, SettingsName);
  250. }
  251. // 33_50
  252. #endregion
  253. #region 51_70
  254. for (i = 51; i <= 70; i++)
  255. {
  256. // create settings
  257. LevelSettings = DefaultLevelSettings();
  258. LevelSettings.Combat_ClassSettings.Druid_ChangeToBearOnAggro = true;
  259. LevelSettings.Combat_ClassSettings.Druid_CombatForm = clsGlobals.ECombatClass_Druid_Form.Cat;
  260. LevelSettings.Combat_PreBuffSpells_List.Add("Mark of the Wild");
  261. LevelSettings.Combat_PreBuffSpells_List.Add("Thorns");
  262. LevelSettings.Combat_PreBuffSpells_List.Add("Prowl");
  263. LevelSettings.Combat_PreBuffSpells_List.Add("Tiger's Fury");
  264. LevelSettings.Combat_HealSpell = "Healing Touch";
  265. LevelSettings.Combat_HealingOT = "Rejuvenation";
  266. LevelSettings.Combat_PullSpell = "Ravage";
  267. LevelSettings.Combat_SpamSpells_List.Add("Faerie Fire (Feral)");
  268. LevelSettings.Combat_SpamSpells_List.Add("Ferocious Bite");
  269. LevelSettings.Combat_DOT_List.Add("Rake");
  270. LevelSettings.Combat_DOT_List.Add("Mangle (Cat)");
  271. // save settings
  272. // clsSettings.Logging.AddToLogFormatted("CreateDruidSettings", "Saving DRUID Settings for Level {0}", i);
  273. SaveLevelSettings(LevelSettings, i, SettingsName);
  274. }
  275. // 51_70
  276. #endregion
  277. }
  278. catch (Exception excep)
  279. {
  280. clsError.ShowError(excep, "CreateDruidSettings");
  281. }
  282. finally
  283. {
  284. // clsSettings.Logging.AddToLog("Finished DRUID settings");
  285. }
  286. }
  287. // Druid
  288. #endregion
  289. #region Warlock
  290. private static void CreateWarlockSettings()
  291. {
  292. clsGlobalSettings GlobalSettings = new clsGlobalSettings();
  293. clsLevelSettings LevelSettings = new clsLevelSettings();
  294. string SettingsName = "Default - Warlock";
  295. int i;
  296. try
  297. {
  298. // set global settings
  299. GlobalSettings.DeclineDuelInvite = true;
  300. GlobalSettings.DeclineGroupInvite = true;
  301. GlobalSettings.DeclineGuildInvite = true;
  302. GlobalSettings.ItemSellColors.Grey = true;
  303. // set auto equip list
  304. GlobalSettings.AutoEquipList = AutoCreate_Cloth();
  305. #region TalentList
  306. for (i = 10; i < 15; i++)
  307. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Improved Corruption", i));
  308. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Improved Drain Soul", 15));
  309. for (i = 16; i <= 17; i++)
  310. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Improved Life Tap", i));
  311. for (i = 18; i <= 19; i++)
  312. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Soul Siphon", i));
  313. for (i = 20; i <= 24; i++)
  314. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Fel Concentration", i));
  315. for (i = 25; i <= 26; i++)
  316. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Nightfall", i));
  317. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Empowered Corruption", 27));
  318. for (i = 28; i <= 32; i++)
  319. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Demonic Embrace", i));
  320. for (i = 33; i <= 35; i++)
  321. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Improved Voidwalker", i));
  322. for (i = 36; i <= 38; i++)
  323. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Fel Intellect", i));
  324. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Fel Domination", 39));
  325. for (i = 40; i <= 42; i++)
  326. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Fel Stamina", i));
  327. for (i = 43; i <= 45; i++)
  328. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Demonic Aegis", i));
  329. for (i = 46; i <= 47; i++)
  330. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Master Summoner", i));
  331. for (i = 48; i <= 52; i++)
  332. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Unholy Power", i));
  333. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Demonic Sacrifice", 53));
  334. for (i = 54; i <= 55; i++)
  335. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Mana Feed", i));
  336. for (i = 56; i <= 60; i++)
  337. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Master Demonologist", i));
  338. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Soul Link", 61));
  339. for (i = 62; i <= 64; i++)
  340. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Demonic Knowledge", i));
  341. for (i = 65; i <= 69; i++)
  342. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Demonic Tactics", i));
  343. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Summon Felguard", 70));
  344. // TalentList
  345. #endregion
  346. // save the global settings
  347. // clsSettings.Logging.AddToLog("CreateWarlockSettings", "Saving Global WARLOCK Settings");
  348. SaveGlobalSettings(GlobalSettings, SettingsName);
  349. #region 1_3
  350. for (i = 1; i <= 3; i++)
  351. {
  352. // create settings
  353. LevelSettings = DefaultLevelSettings();
  354. LevelSettings.Combat_DowntimePercent = 55;
  355. LevelSettings.Combat_ClassSettings.Warlock_Pet = clsGlobals.ECombatClass_Warlock_Pet.Imp;
  356. LevelSettings.Combat_ClassSettings.Warlock_PullWithPet = false;
  357. LevelSettings.Combat_PreBuffSpells_List.Add("Demon Skin");
  358. LevelSettings.Combat_PullSpell = "Shadow Bolt";
  359. LevelSettings.Combat_SpamSpells_List.Add("Shadow Bolt");
  360. // save settings
  361. // clsSettings.Logging.AddToLogFormatted("CreateWarlockSettings", "Saving WARLOCK Settings for Level {0}", i);
  362. SaveLevelSettings(LevelSettings, i, SettingsName);
  363. }
  364. // 1_3
  365. #endregion
  366. #region 4_8
  367. for (i = 4; i <= 8; i++)
  368. {
  369. // create settings
  370. LevelSettings = DefaultLevelSettings();
  371. LevelSettings.Combat_DowntimePercent = 55;
  372. LevelSettings.Combat_ClassSettings.Warlock_Pet = clsGlobals.ECombatClass_Warlock_Pet.Imp;
  373. LevelSettings.Combat_ClassSettings.Warlock_PullWithPet = false;
  374. LevelSettings.Combat_PreBuffSpells_List.Add("Demon Skin");
  375. LevelSettings.Combat_PullSpell = "Immolate";
  376. LevelSettings.Combat_SpamSpells_List.Add("Shadow Bolt");
  377. LevelSettings.Combat_DOT_List.Add("Immolate");
  378. LevelSettings.Combat_DOT_List.Add("Corruption");
  379. // save settings
  380. // clsSettings.Logging.AddToLogFormatted("CreateWarlockSettings", "Saving WARLOCK Settings for Level {0}", i);
  381. SaveLevelSettings(LevelSettings, i, SettingsName);
  382. }
  383. // 4_8
  384. #endregion
  385. #region 9_18
  386. for (i = 9; i <= 18; i++)
  387. {
  388. // create settings
  389. LevelSettings = DefaultLevelSettings();
  390. LevelSettings.Combat_DowntimePercent = 55;
  391. LevelSettings.Combat_ClassSettings.Warlock_Pet = clsGlobals.ECombatClass_Warlock_Pet.Voidwalker;
  392. LevelSettings.Combat_ClassSettings.Warlock_PullWithPet = true;
  393. LevelSettings.Combat_PreBuffSpells_List.Add("Demon Skin");
  394. LevelSettings.Combat_PullSpell = "Immolate";
  395. LevelSettings.Combat_SpamSpells_List.Add("Shadow Bolt");
  396. LevelSettings.Combat_DOT_List.Add("Immolate");
  397. LevelSettings.Combat_DOT_List.Add("Corruption");
  398. LevelSettings.Combat_DOT_List.Add("Curse of Agony");
  399. // save settings
  400. // clsSettings.Logging.AddToLogFormatted("CreateWarlockSettings", "Saving WARLOCK Settings for Level {0}", i);
  401. SaveLevelSettings(LevelSettings, i, SettingsName);
  402. }
  403. // 9_18
  404. #endregion
  405. #region 19_50
  406. for (i = 19; i <= 50; i++)
  407. {
  408. // create settings
  409. LevelSettings = DefaultLevelSettings();
  410. LevelSettings.Combat_DowntimePercent = 55;
  411. LevelSettings.Combat_ClassSettings.Warlock_Pet = clsGlobals.ECombatClass_Warlock_Pet.Voidwalker;
  412. LevelSettings.Combat_ClassSettings.Warlock_PullWithPet = true;
  413. LevelSettings.Combat_PreBuffSpells_List.Add("Demon Armory");
  414. LevelSettings.Combat_PullSpell = "Immolate";
  415. LevelSettings.Combat_SpamSpells_List.Add("Shadow Bolt");
  416. LevelSettings.Combat_DOT_List.Add("Immolate");
  417. LevelSettings.Combat_DOT_List.Add("Corruption");
  418. LevelSettings.Combat_DOT_List.Add("Curse of Agony");
  419. // save settings
  420. // clsSettings.Logging.AddToLogFormatted("CreateWarlockSettings", "Saving WARLOCK Settings for Level {0}", i);
  421. SaveLevelSettings(LevelSettings, i, SettingsName);
  422. }
  423. // 19_50
  424. #endregion
  425. #region 51_70
  426. for (i = 51; i <= 70; i++)
  427. {
  428. // create settings
  429. LevelSettings = DefaultLevelSettings();
  430. LevelSettings.Combat_DowntimePercent = 55;
  431. LevelSettings.Combat_ClassSettings.Warlock_Pet = clsGlobals.ECombatClass_Warlock_Pet.Felguard;
  432. LevelSettings.Combat_ClassSettings.Warlock_PullWithPet = true;
  433. LevelSettings.Combat_PreBuffSpells_List.Add("Demon Skin");
  434. LevelSettings.Combat_PullSpell = "Immolate";
  435. LevelSettings.Combat_SpamSpells_List.Add("Shadow Bolt");
  436. LevelSettings.Combat_DOT_List.Add("Immolate");
  437. LevelSettings.Combat_DOT_List.Add("Corruption");
  438. LevelSettings.Combat_DOT_List.Add("Curse of Agony");
  439. // save settings
  440. // clsSettings.Logging.AddToLogFormatted("CreateWarlockSettings", "Saving WARLOCK Settings for Level {0}", i);
  441. SaveLevelSettings(LevelSettings, i, SettingsName);
  442. }
  443. // 51_70
  444. #endregion
  445. }
  446. catch (Exception excep)
  447. {
  448. clsError.ShowError(excep, "CreateWarlockSettings");
  449. }
  450. finally
  451. {
  452. // clsSettings.Logging.AddToLog("Finished WARLOCK settings");
  453. }
  454. }
  455. // Warlock
  456. #endregion
  457. #region Shaman
  458. /// <summary>
  459. /// Create settings for shamans
  460. /// </summary>
  461. private static void CreateShamanSettings()
  462. {
  463. clsGlobalSettings GlobalSettings = new clsGlobalSettings();
  464. clsLevelSettings LevelSettings = new clsLevelSettings();
  465. string SettingsName = "Default - Shaman";
  466. int i;
  467. try
  468. {
  469. // set global settings
  470. GlobalSettings.DeclineDuelInvite = true;
  471. GlobalSettings.DeclineGroupInvite = true;
  472. GlobalSettings.DeclineGuildInvite = true;
  473. GlobalSettings.ItemSellColors.Grey = true;
  474. // set auto equip list
  475. GlobalSettings.AutoEquipList = AutoCreate_Leather();
  476. #region Talents
  477. for (i = 10; i < 15; i++)
  478. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Concussion", i));
  479. for (i = 15; i < 20; i++)
  480. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Convection", i));
  481. for (i = 20; i < 25; i++)
  482. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Totemic Focus", i));
  483. for (i = 25; i < 30; i++)
  484. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Improved Healing Wave", i));
  485. for (i = 30; i < 35; i++)
  486. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Ancestral Knowledge", i));
  487. for (i = 35; i < 37; i++)
  488. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Guardian Totems", i));
  489. for (i = 37; i < 42; i++)
  490. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Thundering Strikes", i));
  491. for (i = 42; i < 45; i++)
  492. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Improved Lightning Shield", i));
  493. for (i = 45; i < 50; i++)
  494. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Anticipation", i));
  495. for (i = 50; i < 55; i++)
  496. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Flurry", i));
  497. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Spirit Weapons", 55));
  498. for (i = 56; i < 59; i++)
  499. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Elemental Weapons", i));
  500. for (i = 59; i < 63; i++)
  501. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Weapon Mastery", i));
  502. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Dual Wield", 63));
  503. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Stormstrike", 64));
  504. for (i = 65; i < 70; i++)
  505. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Unleashed Rage", i));
  506. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Shamanistic Rage", 70));
  507. // Talents
  508. #endregion
  509. // save the global settings
  510. // clsSettings.Logging.AddToLog("CreateShamanSettings", "Saving Global SHAMAN Settings");
  511. SaveGlobalSettings(GlobalSettings, SettingsName);
  512. #region 1_3
  513. for (i = 1; i <= 3; i++)
  514. {
  515. // create settings
  516. LevelSettings = DefaultLevelSettings();
  517. LevelSettings.Combat_HealSpell = "Healing Wave";
  518. LevelSettings.Combat_PullSpell = "Lightning Bolt";
  519. LevelSettings.Combat_SpamSpells_List.Add("Lightning Bolt");
  520. // save settings
  521. // clsSettings.Logging.AddToLogFormatted("CreateShamanSettings", "Saving SHAMAN Settings for Level {0}", i);
  522. SaveLevelSettings(LevelSettings, i, SettingsName);
  523. }
  524. // 1_3
  525. #endregion
  526. #region 4_9
  527. for (i = 4; i <= 9; i++)
  528. {
  529. // create settings
  530. LevelSettings = DefaultLevelSettings();
  531. LevelSettings.Combat_HealSpell = "Healing Wave";
  532. LevelSettings.Combat_PullSpell = "Lightning Bolt";
  533. LevelSettings.Combat_SpamSpells_List.Add("Earth Shock");
  534. // totem
  535. LevelSettings.Combat_ClassSettings.Shaman_EarthTotem = "Stoneskin Totem";
  536. // weapon buff
  537. LevelSettings.Combat_ClassSettings.Shaman_MainHandBuff = "Rockbiter Weapon";
  538. // save settings
  539. // clsSettings.Logging.AddToLogFormatted("CreateShamanSettings", "Saving SHAMAN Settings for Level {0}", i);
  540. SaveLevelSettings(LevelSettings, i, SettingsName);
  541. }
  542. // 4_9
  543. #endregion
  544. #region 10_14
  545. for (i = 10; i <= 14; i++)
  546. {
  547. // create settings
  548. LevelSettings = DefaultLevelSettings();
  549. LevelSettings.Combat_PreBuffSpells_List.Add("Lightning Shield");
  550. LevelSettings.Combat_HealSpell = "Healing Wave";
  551. LevelSettings.Combat_PullSpell = "Lightning Bolt";
  552. //LevelSettings.Combat_SpamSpells_List.Add("Lightning Bolt");
  553. LevelSettings.Combat_SpamSpells_List.Add("Earth Shock");
  554. LevelSettings.Combat_DOT_List.Add("Flame Shock");
  555. // totem
  556. LevelSettings.Combat_ClassSettings.Shaman_EarthTotem = "Stoneskin Totem";
  557. // weapon buff
  558. LevelSettings.Combat_ClassSettings.Shaman_MainHandBuff = "Flametongue Weapon";
  559. // save settings
  560. // clsSettings.Logging.AddToLogFormatted("CreateShamanSettings", "Saving SHAMAN Settings for Level {0}", i);
  561. SaveLevelSettings(LevelSettings, i, SettingsName);
  562. }
  563. // 10_14
  564. #endregion
  565. #region 15_20
  566. for (i = 15; i <= 20; i++)
  567. {
  568. // create settings
  569. LevelSettings = DefaultLevelSettings();
  570. LevelSettings.Combat_PreBuffSpells_List.Add("Lightning Shield");
  571. LevelSettings.Combat_HealSpell = "Healing Wave";
  572. LevelSettings.Combat_PullSpell = "Lightning Bolt";
  573. LevelSettings.Combat_DOT_List.Add("Flame Shock");
  574. // totem
  575. LevelSettings.Combat_ClassSettings.Shaman_EarthTotem = "Stoneskin Totem";
  576. LevelSettings.Combat_ClassSettings.Shaman_FireTotem = "Searing Totem";
  577. // weapon buff
  578. LevelSettings.Combat_ClassSettings.Shaman_MainHandBuff = "Flametongue Weapon";
  579. // save settings
  580. // clsSettings.Logging.AddToLogFormatted("CreateShamanSettings", "Saving SHAMAN Settings for Level {0}", i);
  581. SaveLevelSettings(LevelSettings, i, SettingsName);
  582. }
  583. // 15_20
  584. #endregion
  585. #region 21_26
  586. for (i = 21; i <= 26; i++)
  587. {
  588. // create settings
  589. LevelSettings = DefaultLevelSettings();
  590. LevelSettings.Combat_PreBuffSpells_List.Add("Lightning Shield");
  591. LevelSettings.Combat_HealSpell = "Healing Wave";
  592. LevelSettings.Combat_PullSpell = "Lightning Bolt";
  593. LevelSettings.Combat_DOT_List.Add("Flame Shock");
  594. // totem
  595. LevelSettings.Combat_ClassSettings.Shaman_EarthTotem = "Stoneskin Totem";
  596. LevelSettings.Combat_ClassSettings.Shaman_FireTotem = "Searing Totem";
  597. LevelSettings.Combat_ClassSettings.Shaman_WaterTotem = "Healing Stream Totem";
  598. // weapon buff
  599. LevelSettings.Combat_ClassSettings.Shaman_MainHandBuff = "Flametongue Weapon";
  600. // save settings
  601. // clsSettings.Logging.AddToLogFormatted("CreateShamanSettings", "Saving SHAMAN Settings for Level {0}", i);
  602. SaveLevelSettings(LevelSettings, i, SettingsName);
  603. }
  604. // 21_26
  605. #endregion
  606. #region 27_30
  607. for (i = 27; i <= 30; i++)
  608. {
  609. // create settings
  610. LevelSettings = DefaultLevelSettings();
  611. LevelSettings.Combat_PreBuffSpells_List.Add("Lightning Shield");
  612. LevelSettings.Combat_HealSpell = "Healing Wave";
  613. LevelSettings.Combat_PullSpell = "Lightning Bolt";
  614. LevelSettings.Combat_DOT_List.Add("Flame Shock");
  615. // totem
  616. LevelSettings.Combat_ClassSettings.Shaman_EarthTotem = "Stoneskin Totem";
  617. LevelSettings.Combat_ClassSettings.Shaman_FireTotem = "Searing Totem";
  618. LevelSettings.Combat_ClassSettings.Shaman_WaterTotem = "Mana Spring Totem";
  619. // weapon buff
  620. LevelSettings.Combat_ClassSettings.Shaman_MainHandBuff = "Flametongue Weapon";
  621. // save settings
  622. // clsSettings.Logging.AddToLogFormatted("CreateShamanSettings", "Saving SHAMAN Settings for Level {0}", i);
  623. SaveLevelSettings(LevelSettings, i, SettingsName);
  624. }
  625. // 27_30
  626. #endregion
  627. #region 31_63
  628. for (i = 31; i <= 63; i++)
  629. {
  630. // create settings
  631. LevelSettings = DefaultLevelSettings();
  632. LevelSettings.Combat_PreBuffSpells_List.Add("Lightning Shield");
  633. LevelSettings.Combat_HealSpell = "Healing Wave";
  634. LevelSettings.Combat_PullSpell = "Lightning Bolt";
  635. LevelSettings.Combat_DOT_List.Add("Flame Shock");
  636. // totem
  637. LevelSettings.Combat_ClassSettings.Shaman_EarthTotem = "Stoneskin Totem";
  638. LevelSettings.Combat_ClassSettings.Shaman_FireTotem = "Searing Totem";
  639. LevelSettings.Combat_ClassSettings.Shaman_WaterTotem = "Mana Spring Totem";
  640. LevelSettings.Combat_ClassSettings.Shaman_AirTotem = "Grounding Totem";
  641. // weapon buff
  642. LevelSettings.Combat_ClassSettings.Shaman_MainHandBuff = "Flametongue Weapon";
  643. LevelSettings.Combat_ClassSettings.Shaman_OffhandBuff = "Rockbiter Weapon";
  644. // post combat
  645. LevelSettings.Combat_PostCombatSpells.Add("Totemic Call");
  646. // save settings
  647. // clsSettings.Logging.AddToLogFormatted("CreateShamanSettings", "Saving SHAMAN Settings for Level {0}", i);
  648. SaveLevelSettings(LevelSettings, i, SettingsName);
  649. }
  650. // 31_63
  651. #endregion
  652. #region 64_69
  653. for (i = 64; i <= 69; i++)
  654. {
  655. // create settings
  656. LevelSettings = DefaultLevelSettings();
  657. LevelSettings.Combat_PreBuffSpells_List.Add("Lightning Shield");
  658. LevelSettings.Combat_HealSpell = "Healing Wave";
  659. LevelSettings.Combat_PullSpell = "Lightning Bolt";
  660. LevelSettings.Combat_DOT_List.Add("Flame Shock");
  661. LevelSettings.Combat_DOT_List.Add("Stormstrike");
  662. // totem
  663. LevelSettings.Combat_ClassSettings.Shaman_EarthTotem = "Stoneskin Totem";
  664. LevelSettings.Combat_ClassSettings.Shaman_FireTotem = "Searing Totem";
  665. LevelSettings.Combat_ClassSettings.Shaman_WaterTotem = "Mana Spring Totem";
  666. LevelSettings.Combat_ClassSettings.Shaman_AirTotem = "Grounding Totem";
  667. // weapon buff
  668. LevelSettings.Combat_ClassSettings.Shaman_MainHandBuff = "Flametongue Weapon";
  669. LevelSettings.Combat_ClassSettings.Shaman_OffhandBuff = "Rockbiter Weapon";
  670. // post combat
  671. LevelSettings.Combat_PostCombatSpells.Add("Totemic Call");
  672. // save settings
  673. // clsSettings.Logging.AddToLogFormatted("CreateShamanSettings", "Saving SHAMAN Settings for Level {0}", i);
  674. SaveLevelSettings(LevelSettings, i, SettingsName);
  675. }
  676. // 64_69
  677. #endregion
  678. #region 70
  679. i = 70;
  680. // create settings
  681. LevelSettings = DefaultLevelSettings();
  682. LevelSettings.Combat_PreBuffSpells_List.Add("Lightning Shield");
  683. LevelSettings.Combat_PreBuffSpells_List.Add("Shamanistic Rage");
  684. LevelSettings.Combat_HealSpell = "Healing Wave";
  685. LevelSettings.Combat_PullSpell = "Lightning Bolt";
  686. LevelSettings.Combat_DOT_List.Add("Flame Shock");
  687. LevelSettings.Combat_DOT_List.Add("Stormstrike");
  688. // totem
  689. LevelSettings.Combat_ClassSettings.Shaman_EarthTotem = "Stoneskin Totem";
  690. LevelSettings.Combat_ClassSettings.Shaman_FireTotem = "Searing Totem";
  691. LevelSettings.Combat_ClassSettings.Shaman_WaterTotem = "Mana Spring Totem";
  692. LevelSettings.Combat_ClassSettings.Shaman_AirTotem = "Grounding Totem";
  693. // weapon buff
  694. LevelSettings.Combat_ClassSettings.Shaman_MainHandBuff = "Flametongue Weapon";
  695. LevelSettings.Combat_ClassSettings.Shaman_OffhandBuff = "Rockbiter Weapon";
  696. // post combat
  697. LevelSettings.Combat_PostCombatSpells.Add("Totemic Call");
  698. // save settings
  699. // clsSettings.Logging.AddToLogFormatted("CreateShamanSettings", "Saving SHAMAN Settings for Level {0}", i);
  700. SaveLevelSettings(LevelSettings, i, SettingsName);
  701. // 70
  702. #endregion
  703. }
  704. catch (Exception excep)
  705. {
  706. clsError.ShowError(excep, "CreateShamanSettings");
  707. }
  708. finally
  709. {
  710. // clsSettings.Logging.AddToLog("Finished SHAMAN settings");
  711. }
  712. }
  713. // Shaman
  714. #endregion
  715. #region Mage
  716. /// <summary>
  717. /// Create settings for Mages
  718. /// </summary>
  719. private static void CreateMageSettings()
  720. {
  721. clsGlobalSettings GlobalSettings = new clsGlobalSettings();
  722. clsLevelSettings LevelSettings = new clsLevelSettings();
  723. string SettingsName = "Default - Mage";
  724. int i;
  725. try
  726. {
  727. // set global settings
  728. GlobalSettings.DeclineDuelInvite = true;
  729. GlobalSettings.DeclineGroupInvite = true;
  730. GlobalSettings.DeclineGuildInvite = true;
  731. GlobalSettings.ItemSellColors.Grey = true;
  732. // set auto equip list
  733. GlobalSettings.AutoEquipList = AutoCreate_Cloth();
  734. #region Talents
  735. for (i = 10; i < 12; i++)
  736. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Frost Warding", i));
  737. for (i = 12; i < 17; i++)
  738. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Improved Fireball", i));
  739. for (i = 17; i < 22; i++)
  740. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Impact", i));
  741. for (i = 22; i < 24; i++)
  742. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Arcane Subtlety", i));
  743. for (i = 24; i < 29; i++)
  744. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Arcane Focus", i));
  745. for (i = 29; i < 34; i++)
  746. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Improved Arcane Missiles", i));
  747. for (i = 34; i < 36; i++)
  748. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Wand Specialization", i));
  749. for (i = 36; i < 41; i++)
  750. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Magic Absorption", i));
  751. for (i = 41; i < 46; i++)
  752. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Arcane Concentration", i));
  753. for (i = 46; i < 49; i++)
  754. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Arcane Impact", i));
  755. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Arcane Fortitude", 49));
  756. for (i = 50; i < 53; i++)
  757. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Arcane Meditation", i));
  758. for (i = 53; i < 58; i++)
  759. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Arcane Mind", i));
  760. for (i = 58; i < 60; i++)
  761. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Prismatic Cloak", i));
  762. for (i = 60; i < 63; i++)
  763. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Arcane Potency", i));
  764. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Empowered Arcane Missiles", 63));
  765. for (i = 64; i < 66; i++)
  766. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Spell Power", i));
  767. for (i = 66; i < 70; i++)
  768. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Mind Mastery", i));
  769. // Talents
  770. #endregion
  771. // save the global settings
  772. // clsSettings.Logging.AddToLog("CreateMageSettings", "Saving Global MAGE Settings");
  773. SaveGlobalSettings(GlobalSettings, SettingsName);
  774. #region 1_4
  775. for (i = 1; i <= 4; i++)
  776. {
  777. // create settings
  778. LevelSettings = DefaultLevelSettings();
  779. LevelSettings.Combat_ManaSpam = 25;
  780. LevelSettings.Combat_HealthPercent = 45;
  781. LevelSettings.Combat_WaitTime_ms = 1000;
  782. // buffs
  783. LevelSettings.Combat_PreBuffSpells_List.Add("Frost Armor");
  784. // pull
  785. LevelSettings.Combat_PullSpell = "Fireball";
  786. // spam spells
  787. LevelSettings.Combat_SpamSpells_List.Add("Fireball");
  788. // save settings
  789. // clsSettings.Logging.AddToLogFormatted("CreateMageSettings", "Saving MAGE Settings for Level {0}", i);
  790. SaveLevelSettings(LevelSettings, i, SettingsName);
  791. }
  792. // 1_4
  793. #endregion
  794. #region 5_8
  795. for (i = 5; i <= 8; i++)
  796. {
  797. // create settings
  798. LevelSettings = DefaultLevelSettings();
  799. LevelSettings.Combat_ManaSpam = 25;
  800. LevelSettings.Combat_HealthPercent = 45;
  801. LevelSettings.Combat_WaitTime_ms = 1000;
  802. // buffs
  803. LevelSettings.Combat_PreBuffSpells_List.Add("Frost Armor");
  804. // pull
  805. LevelSettings.Combat_PullSpell = "Frostbolt";
  806. // spam spells
  807. LevelSettings.Combat_SpamSpells_List.Add("Fireball");
  808. LevelSettings.Combat_SpamSpells_List.Add("Fire Blast");
  809. // save settings
  810. // clsSettings.Logging.AddToLogFormatted("CreateMageSettings", "Saving MAGE Settings for Level {0}", i);
  811. SaveLevelSettings(LevelSettings, i, SettingsName);
  812. }
  813. // 5_8
  814. #endregion
  815. #region 9_14
  816. for (i = 9; i <= 14; i++)
  817. {
  818. // create settings
  819. LevelSettings = DefaultLevelSettings();
  820. LevelSettings.Combat_ManaSpam = 25;
  821. LevelSettings.Combat_HealthPercent = 45;
  822. LevelSettings.Combat_WaitTime_ms = 1000;
  823. // buffs
  824. LevelSettings.Combat_PreBuffSpells_List.Add("Frost Armor");
  825. // pull
  826. LevelSettings.Combat_PullSpell = "Frostbolt";
  827. // spam spells
  828. LevelSettings.Combat_SpamSpells_List.Add("Arcane Missiles");
  829. LevelSettings.Combat_SpamSpells_List.Add("Fire Blast");
  830. LevelSettings.Combat_SpamSpells_List.Add("Frostbolt");
  831. // save settings
  832. // clsSettings.Logging.AddToLogFormatted("CreateMageSettings", "Saving MAGE Settings for Level {0}", i);
  833. SaveLevelSettings(LevelSettings, i, SettingsName);
  834. }
  835. // 9_14
  836. #endregion
  837. #region 15_30
  838. for (i = 15; i <= 30; i++)
  839. {
  840. // create settings
  841. LevelSettings = DefaultLevelSettings();
  842. LevelSettings.Combat_ManaSpam = 25;
  843. LevelSettings.Combat_HealthPercent = 45;
  844. LevelSettings.Combat_WaitTime_ms = 1000;
  845. // buffs
  846. LevelSettings.Combat_PreBuffSpells_List.Add("Frost Armor");
  847. LevelSettings.Combat_PreBuffSpells_List.Add("Arcane Intellect");
  848. // pull
  849. LevelSettings.Combat_PullSpell = "Frostbolt";
  850. // spam spells
  851. LevelSettings.Combat_SpamSpells_List.Add("Fireball");
  852. LevelSettings.Combat_SpamSpells_List.Add("Arcane Missiles");
  853. LevelSettings.Combat_SpamSpells_List.Add("Fire Blast");
  854. // save settings
  855. // clsSettings.Logging.AddToLogFormatted("CreateMageSettings", "Saving MAGE Settings for Level {0}", i);
  856. SaveLevelSettings(LevelSettings, i, SettingsName);
  857. }
  858. // 15_30
  859. #endregion
  860. #region 31_62
  861. for (i = 31; i <= 62; i++)
  862. {
  863. // create settings
  864. LevelSettings = DefaultLevelSettings();
  865. LevelSettings.Combat_ManaSpam = 25;
  866. LevelSettings.Combat_HealthPercent = 45;
  867. LevelSettings.Combat_WaitTime_ms = 1000;
  868. // buffs
  869. LevelSettings.Combat_PreBuffSpells_List.Add("Ice Armor");
  870. LevelSettings.Combat_PreBuffSpells_List.Add("Arcane Intellect");
  871. // pull
  872. LevelSettings.Combat_PullSpell = "Frostbolt";
  873. // spam spells
  874. LevelSettings.Combat_SpamSpells_List.Add("Fireball");
  875. LevelSettings.Combat_SpamSpells_List.Add("Arcane Missiles");
  876. LevelSettings.Combat_SpamSpells_List.Add("Fire Blast");
  877. // save settings
  878. // clsSettings.Logging.AddToLogFormatted("CreateMageSettings", "Saving MAGE Settings for Level {0}", i);
  879. SaveLevelSettings(LevelSettings, i, SettingsName);
  880. }
  881. // 31_62
  882. #endregion
  883. #region 63_70
  884. for (i = 63; i <= 70; i++)
  885. {
  886. // create settings
  887. LevelSettings = DefaultLevelSettings();
  888. LevelSettings.Combat_ManaSpam = 25;
  889. LevelSettings.Combat_HealthPercent = 45;
  890. LevelSettings.Combat_WaitTime_ms = 1000;
  891. // buffs
  892. LevelSettings.Combat_PreBuffSpells_List.Add("Molten Armor");
  893. LevelSettings.Combat_PreBuffSpells_List.Add("Arcane Intellect");
  894. // pull
  895. LevelSettings.Combat_PullSpell = "Frostbolt";
  896. // spam spells
  897. LevelSettings.Combat_SpamSpells_List.Add("Fireball");
  898. LevelSettings.Combat_SpamSpells_List.Add("Arcane Missiles");
  899. LevelSettings.Combat_SpamSpells_List.Add("Fire Blast");
  900. // save settings
  901. // clsSettings.Logging.AddToLogFormatted("CreateMageSettings", "Saving MAGE Settings for Level {0}", i);
  902. SaveLevelSettings(LevelSettings, i, SettingsName);
  903. }
  904. // 63_70
  905. #endregion
  906. }
  907. catch (Exception excep)
  908. {
  909. clsError.ShowError(excep, "CreateMageSettings");
  910. }
  911. finally
  912. {
  913. // clsSettings.Logging.AddToLog("Finished MAGE settings");
  914. }
  915. }
  916. // Mage
  917. #endregion
  918. #region Priest
  919. /// <summary>
  920. /// Create settings for Mages
  921. /// </summary>
  922. private static void CreatePriestSettings()
  923. {
  924. clsGlobalSettings GlobalSettings = new clsGlobalSettings();
  925. clsLevelSettings LevelSettings = new clsLevelSettings();
  926. string SettingsName = "Default - Shadow Priest";
  927. int i;
  928. try
  929. {
  930. // set global settings
  931. GlobalSettings.DeclineDuelInvite = true;
  932. GlobalSettings.DeclineGroupInvite = true;
  933. GlobalSettings.DeclineGuildInvite = true;
  934. GlobalSettings.ItemSellColors.Grey = true;
  935. // set auto equip list
  936. GlobalSettings.AutoEquipList = AutoCreate_Cloth();
  937. #region Talents
  938. for (i = 10; i < 12; i++)
  939. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Healing Focus", i));
  940. for (i = 12; i < 14; i++)
  941. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Improved Power Word: Fortitude", i));
  942. for (i = 14; i < 19; i++)
  943. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Unbreakable Will", i));
  944. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Improved Power Word: Shield", 19));
  945. for (i = 20; i < 22; i++)
  946. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Martyrdom", i));
  947. for (i = 22; i < 25; i++)
  948. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Meditation", i));
  949. for (i = 25; i < 30; i++)
  950. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Spirit Tap", i));
  951. for (i = 30; i < 35; i++)
  952. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Blackout", i));
  953. for (i = 35; i < 37; i++)
  954. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Improved Shadow Word: Pain", i));
  955. for (i = 37; i < 42; i++)
  956. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Shadow Focus", i));
  957. for (i = 42; i < 44; i++)
  958. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Shadow Reach", i));
  959. for (i = 44; i < 49; i++)
  960. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Shadow Weaving", i));
  961. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Vampiric Embrace", 49));
  962. for (i = 50; i < 52; i++)
  963. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Improved Vampiric Embrace", i));
  964. for (i = 52; i < 54; i++)
  965. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Shadow Resilience", i));
  966. for (i = 54; i < 59; i++)
  967. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Darkness", i));
  968. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Shadowform", 59));
  969. for (i = 60; i < 65; i++)
  970. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Shadow Power", i));
  971. for (i = 65; i < 70; i++)
  972. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Misery", i));
  973. GlobalSettings.TalentList.Add(new ISXBotHelper.Talents.clsPTalent("Vampiric Touch", 70));
  974. // Talents
  975. #endregion
  976. // save the global settings
  977. // clsSettings.Logging.AddToLog("CreatePriestSettings", "Saving Global PRIEST Settings");
  978. SaveGlobalSettings(GlobalSettings, SettingsName);
  979. #region 1_4
  980. for (i = 1; i <= 4; i++)
  981. {
  982. // create settings
  983. LevelSettings = DefaultLevelSettings();
  984. LevelSettings.Combat_ManaSpam = 25;
  985. LevelSettings.Combat_HealthPercent = 45;
  986. LevelSettings.Combat_WaitTime_ms = 1000;
  987. // buffs
  988. LevelSettings.Combat_PreBuffSpells_List.Add("Power Word: Fortitude");
  989. // pull
  990. LevelSettings.Combat_PullSpell = "Smite";
  991. // spam spells
  992. LevelSettings.Combat_SpamSpells_List.Add("Smite");
  993. // healing
  994. LevelSettings.Combat_HealSpell = "Lesser Heal";
  995. // save settings
  996. // clsSettings.Logging.AddToLogFormatted("CreatePriestSettings", "Saving PRIEST Settings for Level {0}", i);
  997. SaveLevelSettings(LevelSettings, i, SettingsName);
  998. }
  999. // 1_4
  1000. #endregion
  1001. #region 5_10
  1002. for (i = 5; i <= 10; i++)
  1003. {
  1004. // create settings
  1005. LevelSettings = DefaultLevelSettings();
  1006. LevelSettings.Combat_ManaSpam = 25;
  1007. LevelSettings.Combat_HealthPercent = 45;
  1008. LevelSettings.Combat_WaitTime_ms = 1000;
  1009. // buffs
  1010. LevelSettings.Combat_PreBuffSpells_List.Add("Power Word: Fortitude");
  1011. // pull
  1012. LevelSettings.Combat_PullSpell = "Smite";
  1013. // spam spells
  1014. LevelSettings.Combat_SpamSpells_List.Add("Smite");
  1015. // dots
  1016. LevelSettings.Combat_DOT_List.Add("Shadow Word: Pain");
  1017. // healing
  1018. LevelSettings.Combat_HealSpell = "Lesser Heal";
  1019. // save settings
  1020. // clsSettings.Logging.AddToLogFormatted("CreatePriestSettings", "Saving PRIEST Settings for Level {0}", i);
  1021. SaveLevelSettings(LevelSettings, i, SettingsName);
  1022. }
  1023. // 5_10
  1024. #endregion
  1025. #region 11_16
  1026. for (i = 11; i <= 16; i++)
  1027. {
  1028. // create settings
  1029. LevelSettings = DefaultLevelSettings();
  1030. LevelSettings.Combat_ManaSpam = 25;
  1031. LevelSettings.Combat_HealthPercent = 45;
  1032. LevelSettings.Combat_WaitTime_ms = 1000;
  1033. LevelSettings.Combat_CastSpamRandomly = true;
  1034. // buffs
  1035. LevelSettings.Combat_PreBuffSpells_List.Add("Power Word: Fortitude");
  1036. // pull
  1037. LevelSettings.Combat_PullSpell = "Smite";
  1038. // spam spells
  1039. LevelSettings.Combat_SpamSpells_List.Add("Smite");
  1040. LevelSettings.Combat_SpamSpells_List.Add("Mind Blast");
  1041. // dots
  1042. LevelSettings.Combat_DOT_List.Add("Shadow Word: Pain");
  1043. // healing
  1044. LevelSettings.Combat_HealSpell = "Lesser Heal";
  1045. LevelSettings.Combat_HealingOT = "Renew";
  1046. // save settings
  1047. // clsSettings.Logging.AddToLogFormatted("CreatePriestSettings", "Saving PRIEST Settings for Level {0}", i);
  1048. SaveLevelSettings(LevelSettings, i, SettingsName);
  1049. }
  1050. // 11_16
  1051. #endregion
  1052. #region 17_20
  1053. for (i = 17; i <= 20; i++)
  1054. {
  1055. // create settings
  1056. LevelSettings = DefaultLevelSettings();
  1057. LevelSettings.Combat_ManaSpam = 25;
  1058. LevelSettings.Combat_HealthPercent = 45;
  1059. LevelSettings.Combat_WaitTime_ms = 1000;
  1060. LevelSettings.Combat_CastSpamRandomly = true;
  1061. // buffs
  1062. LevelSettings.Combat_PreBuffSpells_List.Add("Power Word: Fortitude");
  1063. // pull
  1064. LevelSettings.Combat_PullSpell = "Smite";
  1065. // spam spells
  1066. LevelSettings.Combat_SpamSpells_List.Add("Smite");
  1067. LevelSettings.Combat_SpamSpells_List.Add("Mind Blast");
  1068. // dots
  1069. LevelSettings.Combat_DOT_List.Add("Shadow Word: Pain");
  1070. // healing
  1071. LevelSettings.Combat_HealSpell = "Heal";
  1072. LevelSettings.Combat_HealingOT = "Renew";
  1073. // save settings
  1074. // clsSettings.Logging.AddToLogFormatted("CreatePriestSettings", "Saving PRIEST Settings for Level {0}", i);
  1075. SaveLevelSettings(LevelSettings, i, SettingsName);
  1076. }
  1077. // 17_20
  1078. #endregion
  1079. #region 21_50
  1080. for (i = 21; i <= 50; i++)
  1081. {
  1082. // create settings
  1083. LevelSettings = DefaultLevelSettings();
  1084. LevelSettings.Combat_ManaSpam = 25;
  1085. LevelSettings.Combat_HealthPercent = 45;
  1086. LevelSettings.Combat_WaitTime_ms = 1000;
  1087. LevelSettings.Combat_CastSpamRandomly = true;
  1088. // buffs
  1089. LevelSettings.Combat_PreBuffSpells_List.Add("Power Word: Fortitude");
  1090. // pull
  1091. LevelSettings.Combat_PullSpell = "Smite";
  1092. // spam spells
  1093. LevelSettings.Combat_SpamSpells_List.Add("Smite");
  1094. LevelSettings.Combat_SpamSpells_List.Add("Mind Blast");
  1095. // dots
  1096. LevelSettings.Combat_DOT_List.Add("Shadow Word: Pain");
  1097. LevelSettings.Combat_DOT_List.Add("Holy Fire");
  1098. // healing
  1099. LevelSettings.Combat_HealSpell = "Heal";
  1100. LevelSettings.Combat_HealingOT = "Renew";
  1101. // save settings
  1102. // clsSettings.Logging.AddToLogFormatted("CreatePriestSettings", "Saving PRIEST Settings for Level {0}", i);
  1103. SaveLevelSettings(LevelSettings, i, SettingsName);
  1104. }
  1105. // 21_50
  1106. #endregion
  1107. #region 51_60
  1108. for (i = 51; i <= 60; i++)
  1109. {
  1110. // create settings
  1111. LevelSettings = DefaultLevelSettings();
  1112. LevelSettings.Combat_ManaSpam = 25;
  1113. LevelSettings.Combat_HealthPercent = 45;
  1114. LevelSettings.Combat_WaitTime_ms = 1000;
  1115. LevelSettings.Combat_CastSpamRandomly = true;
  1116. // buffs
  1117. LevelSettings.Combat_PreBuffSpells_List.Add("Power Word: Fortitude");
  1118. // pull
  1119. LevelSettings.Combat_PullSpell = "Smite";
  1120. // spam spells
  1121. LevelSettings.Combat_SpamSpells_List.Add("Smite");
  1122. LevelSettings.Combat_SpamSpells_List.Add("Mind Blast");
  1123. // dots
  1124. LevelSettings.Combat_DOT_List.Add("Shadow Word: Pain");
  1125. LevelSettings.Combat_DOT_List.Add("Holy Fire");
  1126. LevelSettings.Combat_DOT_List.Add("Vampiric Embrace");
  1127. // healing
  1128. LevelSettings.Combat_HealSpell = "Heal";
  1129. LevelSettings.Combat_HealingOT = "Renew";
  1130. // save settings
  1131. // clsSettings.Logging.AddToLogFormatted("CreatePriestSettings", "Saving PRIEST Settings for Level {0}", i);
  1132. SaveLevelSettings(LevelSettings, i, SettingsName);
  1133. }
  1134. // 51_60
  1135. #endregion
  1136. #region 61_69
  1137. for (i = 61; i <= 69; i++)
  1138. {
  1139. // create settings
  1140. LevelSettings = DefaultLevelSettings();
  1141. LevelSettings.Combat_ManaSpam = 25;
  1142. LevelSettings.Combat_HealthPercent = 45;
  1143. LevelSettings.Combat_WaitTime_ms = 1000;
  1144. LevelSettings.Combat_CastSpamRandomly = true;
  1145. // buffs
  1146. LevelSettings.Combat_PreBuffSpells_List.Add("Power Word: Fortitude");
  1147. LevelSettings.Combat_PreBuffSpells_List.Add("Shadowform");
  1148. // pull
  1149. LevelSettings.Combat_PullSpell = "Smite";
  1150. // spam spells
  1151. LevelSettings.Combat_SpamSpells_List.Add("Smite");
  1152. LevelSettings.Combat_SpamSpells_List.Add("Mind Blast");
  1153. // dots
  1154. LevelSettings.Combat_DOT_List.Add("Shadow Word: Pain");
  1155. LevelSettings.Combat_DOT_List.Add("Vampiric Embrace");
  1156. // healing
  1157. LevelSettings.Combat_HealSpell = "Heal";
  1158. LevelSettings.Combat_HealingOT = "Renew";
  1159. // save settings
  1160. // clsSettings.Logging.AddToLogFormatted("CreatePriestSettings", "Saving PRIEST Settings for Level {0}", i);
  1161. SaveLevelSettings(LevelSettings, i, SettingsName);
  1162. }
  1163. // 61_69
  1164. #endregion
  1165. #region 70
  1166. i = 70;
  1167. {
  1168. // create settings
  1169. LevelSettings = DefaultLevelSettings();
  1170. LevelSettings.Combat_ManaSpam = 25;
  1171. LevelSettings.Combat_HealthPercent = 45;
  1172. LevelSettings.Combat_WaitTime_ms = 1000;
  1173. LevelSettings.Combat_CastSpamRandomly = true;
  1174. // buffs
  1175. LevelSettings.Combat_PreBuffSpells_List.Add("Power Word: Fortitude");
  1176. LevelSettings.Combat_PreBuffSpells_List.Add("Shadowform");
  1177. // cast the shadow fiend as a buff (so it is cast every time)
  1178. // Creates a shadowy fiend to attack the target. Caster receives mana when the Shadowfiend deals damage.
  1179. LevelSettings.Combat_PreBuffSpells_List.Add("Shadowfiend");
  1180. // pull
  1181. LevelSettings.Combat_PullSpell = "Smite";
  1182. // spam spells
  1183. LevelSettings.Combat_SpamSpells_List.Add("Smite");
  1184. LevelSettings.Combat_SpamSpells_List.Add("Mind Blast");
  1185. // dots
  1186. LevelSettings.Combat_DOT_List.Add("Shadow Word: Pain");
  1187. LevelSettings.Combat_DOT_List.Add("Vampiric Embrace");
  1188. LevelSettings.Combat_DOT_List.Add("Vampiric Touch");
  1189. // healing
  1190. LevelSettings.Combat_HealSpell = "Heal";
  1191. LevelSettings.Combat_HealingOT = "Renew";
  1192. // save settings
  1193. // clsSettings.Logging.AddToLogFormatted("CreatePriestSettings", "Saving PRIEST Settings for Level {0}", i);
  1194. SaveLevelSettings(LevelSettings, i, SettingsName);
  1195. }
  1196. // 70
  1197. #endregion
  1198. }
  1199. catch (Exception excep)
  1200. {
  1201. clsError.ShowError(excep, "CreatePriestSettings");
  1202. }
  1203. finally
  1204. {
  1205. // clsSettings.Logging.AddToLog("Finished PRIEST settings");
  1206. }
  1207. }
  1208. // Priest
  1209. #endregion
  1210. #region Helpers
  1211. private static clsLevelSettings DefaultLevelSettings()
  1212. {
  1213. clsLevelSettings rSettings = new clsLevelSettings();
  1214. rSettings.Combat_DowntimePercent = 55;
  1215. rSettings.Combat_HealthPercent = 45;
  1216. rSettings.Combat_ManaSpam = 45;
  1217. rSettings.Combat_PanicThreshold = 3;
  1218. rSettings.HighLevelAttack = 4;
  1219. rSettings.LowLevelAttack = 1;
  1220. rSettings.Search_Chest = true;
  1221. rSettings.SearchRange = 30;
  1222. rSettings.TargetElites = false;
  1223. rSettings.TargetRange = 20;
  1224. return rSettings;
  1225. }
  1226. /// <summary>
  1227. /// Auto equip for cloth wearers (favors intellect and spirit)
  1228. /// </summary>
  1229. /// <returns></returns>
  1230. private static List<ISXBotHelper.Items.clsAutoEquipItem> AutoCreate_Cloth()
  1231. {
  1232. List<clsAutoEquipItem> aList = new List<clsAutoEquipItem>();
  1233. aList.Add(new clsAutoEquipItem(
  1234. WoWEquipSlot.Back,
  1235. clsGlobals.EEquipItemMaterialType.Cloth,
  1236. clsGlobals.ENeedEquipStat.Intellect));
  1237. aList.Add(new clsAutoEquipItem(
  1238. WoWEquipSlot.Chest,
  1239. clsGlobals.EEquipItemMaterialType.Cloth,
  1240. clsGlobals.ENeedEquipStat.Stamina));
  1241. aList.Add(new clsAutoEquipItem(
  1242. WoWEquipSlot.Feet,
  1243. clsGlobals.EEquipItemMaterialType.Cloth,
  1244. clsGlobals.ENeedEquipStat.Stamina));
  1245. aList.Add(new clsAutoEquipItem(
  1246. WoWEquipSlot.Finger1,
  1247. clsGlobals.EEquipItemMaterialType.None,
  1248. clsGlobals.ENeedEquipStat.Intellect));
  1249. aList.Add(new clsAutoEquipItem(
  1250. WoWEquipSlot.Finger2,
  1251. clsGlobals.EEquipItemMaterialType.None,
  1252. clsGlobals.ENeedEquipStat.Spirit));
  1253. aList.Add(new clsAutoEquipItem(
  1254. WoWEquipSlot.Hands,
  1255. clsGlobals.EEquipItemMaterialType.Cloth,
  1256. clsGlobals.ENeedEquipStat.Intellect));
  1257. aList.Add(new clsAutoEquipItem(
  1258. WoWEquipSlot.Head,
  1259. clsGlobals.EEquipItemMaterialType.Cloth,
  1260. clsGlobals.ENeedEquipStat.Intellect));
  1261. aList.Add(new clsAutoEquipItem(
  1262. WoWEquipSlot.Legs,
  1263. clsGlobals.EEquipItemMaterialType.Cloth,
  1264. clsGlobals.ENeedEquipStat.Spirit));
  1265. aList.Add(new clsAutoEquipItem(
  1266. WoWEquipSlot.MainHand,
  1267. clsGlobals.EEquipItemMaterialType.None,
  1268. clsGlobals.ENeedEquipStat.Intellect));
  1269. aList.Add(new clsAutoEquipItem(
  1270. WoWEquipSlot.Neck,
  1271. clsGlobals.EEquipItemMaterialType.None,
  1272. clsGlobals.ENeedEquipStat.Intellect));
  1273. aList.Add(new clsAutoEquipItem(
  1274. WoWEquipSlot.Ranged,
  1275. clsGlobals.EEquipItemMaterialType.None,
  1276. clsGlobals.ENeedEquipStat.Intellect));
  1277. aList.Add(new clsAutoEquipItem(
  1278. WoWEquipSlot.Shoulders,
  1279. clsGlobals.EEquipItemMaterialType.Cloth,
  1280. clsGlobals.ENeedEquipStat.Intellect));
  1281. aList.Add(new clsAutoEquipItem(
  1282. WoWEquipSlot.Waist,
  1283. clsGlobals.EEquipItemMaterialType.Cloth,
  1284. clsGlobals.ENeedEquipStat.Spirit));
  1285. aList.Add(new clsAutoEquipItem(
  1286. WoWEquipSlot.Wrists,
  1287. clsGlobals.EEquipItemMaterialType.Cloth,
  1288. clsGlobals.ENeedEquipStat.Intellect));
  1289. // return the list
  1290. return aList;
  1291. }
  1292. /// <summary>
  1293. /// Creates and AutoEqip list for leather wearers
  1294. /// </summary>
  1295. /// <returns></returns>
  1296. private static List<clsAutoEquipItem> AutoCreate_Leather()
  1297. {
  1298. List<clsAutoEquipItem> aList = new List<clsAutoEquipItem>();
  1299. aList.Add(new clsAutoEquipItem(
  1300. WoWEquipSlot.Back,
  1301. clsGlobals.EEquipItemMaterialType.Leather,
  1302. clsGlobals.ENeedEquipStat.Agility));
  1303. aList.Add(new clsAutoEquipItem(
  1304. WoWEquipSlot.Chest,
  1305. clsGlobals.EEquipItemMaterialType.Leather,
  1306. clsGlobals.ENeedEquipStat.Agility));
  1307. aList.Add(new clsAutoEquipItem(
  1308. WoWEquipSlot.Feet,
  1309. clsGlobals.EEquipItemMaterialType.Leather,
  1310. clsGlobals.ENeedEquipStat.Agility));
  1311. aList.Add(new clsAutoEquipItem(
  1312. WoWEquipSlot.Finger1,
  1313. clsGlobals.EEquipItemMaterialType.None,
  1314. clsGlobals.ENeedEquipStat.Intellect));
  1315. aList.Add(new clsAutoEquipItem(
  1316. WoWEquipSlot.Finger2,
  1317. clsGlobals.EEquipItemMaterialType.None,
  1318. clsGlobals.ENeedEquipStat.Intellect));
  1319. aList.Add(new clsAutoEquipItem(
  1320. WoWEquipSlot.Hands,
  1321. clsGlobals.EEquipItemMaterialType.Leather,
  1322. clsGlobals.ENeedEquipStat.Strength));
  1323. aList.Add(new clsAutoEquipItem(
  1324. WoWEquipSlot.Head,
  1325. clsGlobals.EEquipItemMaterialType.Leather,
  1326. clsGlobals.ENeedEquipStat.Intellect));
  1327. aList.Add(new clsAutoEquipItem(
  1328. WoWEquipSlot.Legs,
  1329. clsGlobals.EEquipItemMaterialType.Leather,
  1330. clsGlobals.ENeedEquipStat.Agility));
  1331. aList.Add(new clsAutoEquipItem(
  1332. WoWEquipSlot.MainHand,
  1333. clsGlobals.EEquipItemMaterialType.None,
  1334. clsGlobals.ENeedEquipStat.Intellect));
  1335. aList.Add(new clsAutoEquipItem(
  1336. WoWEquipSlot.Neck,
  1337. clsGlobals.EEquipItemMaterialType.None,
  1338. clsGlobals.ENeedEquipStat.Intellect));
  1339. aList.Add(new clsAutoEquipItem(
  1340. WoWEquipSlot.Ranged,
  1341. clsGlobals.EEquipItemMaterialType.None,
  1342. clsGlobals.ENeedEquipStat.Agility));
  1343. aList.Add(new clsAutoEquipItem(
  1344. WoWEquipSlot.Shoulders,
  1345. clsGlobals.EEquipItemMaterialType.Leather,
  1346. clsGlobals.ENeedEquipStat.Intellect));
  1347. aList.Add(new clsAutoEquipItem(
  1348. WoWEquipSlot.Waist,
  1349. clsGlobals.EEquipItemMaterialType.Leather,
  1350. clsGlobals.ENeedEquipStat.Agility));
  1351. aList.Add(new clsAutoEquipItem(
  1352. WoWEquipSlot.Wrists,
  1353. clsGlobals.EEquipItemMaterialType.Leather,
  1354. clsGlobals.ENeedEquipStat.Intellect));
  1355. // return the list
  1356. return aList;
  1357. }
  1358. // Helpers
  1359. #endregion
  1360. #region Saves
  1361. /// <summary>
  1362. /// Save the global settings
  1363. /// </summary>
  1364. private static void SaveGlobalSettings(clsGlobalSettings GlobalSettings, string SettingsName)
  1365. {
  1366. try
  1367. {
  1368. // add to the dictionary
  1369. GlobalSettings.MSN_Username = SettingsName;
  1370. clsSettings.DefaultSettingsList.Add(GlobalSettings, new Dictionary<int, clsLevelSettings>());
  1371. }
  1372. catch (Exception excep)
  1373. {
  1374. clsError.ShowError(excep, "Unable to save global settings");
  1375. }
  1376. }
  1377. /// <summary>
  1378. /// Saves the settings to the settings file
  1379. /// </summary>
  1380. private static void SaveLevelSettings(clsLevelSettings LevelSettings, int Level, string SettingsName)
  1381. {
  1382. try
  1383. {
  1384. // find the key
  1385. foreach (clsGlobalSettings gs in clsSettings.DefaultSettingsList.Keys)
  1386. {
  1387. // if we found our match, add this item
  1388. if (gs.MSN_Username == SettingsName)
  1389. {
  1390. clsSettings.DefaultSettingsList[gs].Add(Level, LevelSettings);
  1391. return;
  1392. }
  1393. }
  1394. }
  1395. catch (Exception excep)
  1396. {
  1397. clsError.ShowError(excep, "Unable to save level settings");
  1398. }
  1399. }
  1400. // Saves
  1401. #endregion
  1402. }
  1403. }