using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Configuration; using System.ComponentModel; using System.IO; using System.Diagnostics; using System.Threading; using System.Runtime.InteropServices; using System.Windows.Forms; using robotManager.Helpful; using robotManager.Products; using wManager.Wow.Helpers; using wManager.Wow.ObjectManager; using wManager.Wow.Bot.Tasks; using wManager.Plugin; using wManager.Wow.Enums; public class Main : wManager.Plugin.IPlugin { private bool isRunning; private BackgroundWorker pulseThread; private static WoWLocalPlayer Me = ObjectManager.Me; public void Start() { WorldQuestBagItemsSettings.Load(); pulseThread = new BackgroundWorker(); pulseThread.DoWork += Pulse; pulseThread.RunWorkerAsync(); Logging.Write("[WorldQuestBagItems] started."); } private bool ArtifactWeaponEquipped() { var equipedItemBySlotID = wManager.Wow.ObjectManager.ObjectManager.Me.GetEquipedItemBySlot(InventorySlot.INVSLOT_MAINHAND); var equipedItemBySlot = ItemsManager.GetNameById(equipedItemBySlotID); if (equipedItemBySlotID == WorldQuestBagItemsSettings.CurrentSetting.ArtifactWeaponID) { return true; } else { return false; } } public void Pulse(object sender, DoWorkEventArgs args) { try { while (isRunning) { if (robotManager.Products.Products.ProductName.ToLower() == "fisherbot") { //Logging.Write("[WorldQuestBagItems] Fisherbot is activated."); if (!Products.InPause && Products.IsStarted && !ObjectManager.Me.InCombat) { //Oodelfjisk 139661 // Test Fish 133734 // Test Fish 2 = 143748 if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(139661) && !ObjectManager.Me.IsDeadMe) { robotManager.Helpful.Keyboard.DownKey(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, System.Windows.Forms.Keys.ShiftKey); Thread.Sleep(robotManager.Helpful.Others.Random(50, 1000)); ItemsManager.UseItem(WorldQuestBagItemsSettings.CurrentSetting.ArtifactWeaponID); ItemsManager.UseItem(139661); Logging.Write("[WorldQuestBagItems] Throw back the fish"); Thread.Sleep(Usefuls.Latency + 300); //Equip Fishing pole ItemsManager.UseItem(WorldQuestBagItemsSettings.CurrentSetting.FishingPoleID); Thread.Sleep(robotManager.Helpful.Others.Random(50, 1000)); robotManager.Helpful.Keyboard.UpKey(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, System.Windows.Forms.Keys.ShiftKey); Thread.Sleep(robotManager.Helpful.Others.Random(500, 1000)); } } } else { //Logging.Write("[WorldQuestBagItems] other Product is activated."); if (ArtifactWeaponEquipped() == false) { //Logging.Write("[WorldQuestBagItems] No Artifact Weapon Equipped."); //Logging.Write("[WorldQuestBagItems] ArtifactWeaponEquipped = " + ArtifactWeaponEquipped()); ItemsManager.UseItem(WorldQuestBagItemsSettings.CurrentSetting.ArtifactWeaponID); //Lua.LuaDoString("EquipItemByName(" + WorldQuestBagItemsSettings.CurrentSetting.ArtifactWeaponID + ")"); //Logging.Write("[WorldQuestBagItems] ArtifactWeapon= " + WorldQuestBagItemsSettings.CurrentSetting.ArtifactWeaponID); } else { if (!Products.InPause && Products.IsStarted && !ObjectManager.Me.InCombat) { if (WorldQuestBagItemsSettings.CurrentSetting.UABool) { // Artifacts if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141926) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141926); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152435) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152435); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152654) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152654); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141682) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141682); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141684) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141684); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141945) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141945); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140396) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140396); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140847) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140847); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140445) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140445); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141673) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141673); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141681) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141681); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141683) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141683); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140252) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140252); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(143488) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(143488); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(143739) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(143739); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(142555) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(142555); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(143738) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(143738); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(142001) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(142001); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(142003) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(142003); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146123) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146123); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151619) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151619); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(147581) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(147581); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(142002) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(142002); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140327) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140327); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(142054) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(142054); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140255) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140255); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141669) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141669); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141937) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141937); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141936) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141936); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(138781) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(138781); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141940) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141940); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140250) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140250); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152435) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152435); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140238) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140238); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141711) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141711); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141708) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141708); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(139616) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(139616); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141024) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141024); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(142004) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(142004); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146126) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146126); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141689) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141689); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(138785) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(138785); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152430) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152430); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153048) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153048); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152434) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152434); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152712) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152712); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152431) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152431); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152433) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152433); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152432) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152432); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152962) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152962); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153220) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153220); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153009) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153009); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153199) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153199); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141703) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141703); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153221) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153221); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153052) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153052); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153046) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153046); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153217) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153217); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151246) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151246); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153201) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153201); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153222) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153222); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152700) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152700); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152711) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152711); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152707) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152707); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151247) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151247); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153224) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153224); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153225) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153225); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151245) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151245); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152709) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152709); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153218) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153218); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153198) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153198); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153007) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153007); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152710) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152710); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152706) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152706); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153223) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153223); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153047) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153047); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153008) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153008); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(138814) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(138814); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(144268) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(144268); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141883) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141883); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(139614) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(139614); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151241) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151241); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(144267) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(144267); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(139608) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(139608); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141924) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141924); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141922) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141922); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141927) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141927); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141706) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141706); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(147482) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(147482); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151240) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151240); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(147485) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(147485); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(139507) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(139507); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141886) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141886); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153160) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153160); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140310) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140310); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(147483) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(147483); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146129) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146129); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(139609) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(139609); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141921) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141921); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141888) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141888); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141705) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141705); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153159) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153159); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(139508) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(139508); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152713) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152713); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146124) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146124); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(138839) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(138839); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(147270) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(147270); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141704) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141704); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(143677) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(143677); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(147198) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(147198); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151914) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151914); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151915) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151915); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151916) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151916); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151917) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151917); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151918) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151918); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151919) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151919); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151920) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151920); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151921) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151921); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151922) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151922); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(138865) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(138865); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(147199) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(147199); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(138783) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(138783); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153163) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153163); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(139511) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(139511); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(144269) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(144269); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(139612) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(139612); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141929) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141929); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(138732) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(138732); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(139615) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(139615); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153161) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153161); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151244) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151244); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146125) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146125); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(147486) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(147486); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141887) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141887); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146128) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146128); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152433) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152433); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153162) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153162); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153164) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153164); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141890) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141890); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141923) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141923); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151242) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151242); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(139611) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(139611); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141925) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141925); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141928) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141928); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141956) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141956); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(144271) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(144271); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(144266) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(144266); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(147484) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(147484); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(138864) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(138864); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141930) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141930); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141857) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141857); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141858) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141858); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151243) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151243); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141702) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141702); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153246) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153246); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141931) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141931); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140322) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140322); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(138885) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(138885); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(139509) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(139509); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146324) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146324); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146318) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146318); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146313) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146313); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146309) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146309); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146319) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146319); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146323) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146323); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(130152) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(130152); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146127) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146127); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141710) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141710); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(143487) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(143487); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(139510) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(139510); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141709) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141709); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(139512) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(139512); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(139617) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(139617); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(142007) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(142007); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(139613) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(139613); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(138782) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(138782); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146122) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146122); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(138816) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(138816); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140247) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140247); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(143741) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(143741); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(143486) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(143486); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(141949) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(141949); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(143499) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(143499); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(143749) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(143749); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(143744) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(143477); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(143498) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(143498); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(143742) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(143742); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(143533) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(143533); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(143743) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(143743); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(143744) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(143744); Logging.WriteDebug("Using Artifact Power"); Thread.Sleep(Usefuls.Latency + 300); } } if (WorldQuestBagItemsSettings.CurrentSetting.URBool) { // Repurtation if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(147727) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(147727); Logging.WriteDebug("Using Repurtation"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146937) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146937); Logging.WriteDebug("Using Repurtation"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(147410) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(147410); Logging.WriteDebug("Using Repurtation"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(147413) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(147413); Logging.WriteDebug("Using Repurtation"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(147415) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(147415); Logging.WriteDebug("Using Repurtation"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146938) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146938); Logging.WriteDebug("Using Repurtation"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146935) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146935); Logging.WriteDebug("Using Repurtation"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146940) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146940); Logging.WriteDebug("Using Repurtation"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(142006) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(142006); Logging.WriteDebug("Using Repurtation"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146949) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146949); Logging.WriteDebug("Using Repurtation"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152959) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152959); Logging.WriteDebug("Using Repurtation"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152958) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152958); Logging.WriteDebug("Using Repurtation"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(147414) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(147414); Logging.WriteDebug("Using Repurtation"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(147411) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(147411); Logging.WriteDebug("Using Repurtation"); Thread.Sleep(Usefuls.Latency + 300); } } if (WorldQuestBagItemsSettings.CurrentSetting.OCBool) { // Loot Containers if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140225) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140225); Logging.WriteDebug("Open Salvagde Armor"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140226) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140226); Logging.WriteDebug("Open Mana-Tinged Pack"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140227) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140227); Logging.WriteDebug("Open Bloodhunter's Quarry"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140222) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140222); Logging.WriteDebug("Open Harvested Goods"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140224) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140224); Logging.WriteDebug("Open Butchered Meat"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140221) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140221); Logging.WriteDebug("Open Found Sack of Gems"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(140220) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(140220); Logging.WriteDebug("Open Scavenged Cloth"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153248) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153248); Logging.WriteDebug("Open Gunst des Lichts"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(153120) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(153120); Logging.WriteDebug("Open Gunst des Lichts"); Thread.Sleep(Usefuls.Latency + 300); } } if (WorldQuestBagItemsSettings.CurrentSetting.OCBool) { // Chests if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151467) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151467); Logging.WriteDebug("Open Chest"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151465) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151465); Logging.WriteDebug("Open Chest"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151469) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151469); Logging.WriteDebug("Open Chest"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151464) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151464); Logging.WriteDebug("Open Chest"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(150924) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(150924); Logging.WriteDebug("Open Chest"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(152649) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(152649); Logging.WriteDebug("Open Chest"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(146948) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(146948); Logging.WriteDebug("Open Chest"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151470) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151470); Logging.WriteDebug("Open Chest"); Thread.Sleep(Usefuls.Latency + 300); } else if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(151466) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(151466); Logging.WriteDebug("Open Chest"); Thread.Sleep(Usefuls.Latency + 300); } } // Misc if (!ObjectManager.Me.IsMounted && ItemsManager.HasItemById(147729) && !ObjectManager.Me.IsDeadMe) { ItemsManager.UseItem(147729); Logging.WriteDebug("Using Repurtation"); Thread.Sleep(Usefuls.Latency + 300); } } } } Thread.Sleep(1000); } } catch (Exception ex) { } } public void Dispose() { try { isRunning = false; } catch (Exception e) { } } public void Initialize() { isRunning = true; Start(); } public void Settings() { WorldQuestBagItemsSettings.Load(); WorldQuestBagItemsSettings.CurrentSetting.ToForm(); WorldQuestBagItemsSettings.CurrentSetting.Save(); } } public class WorldQuestBagItemsSettings : Settings { public WorldQuestBagItemsSettings() { ArtifactWeaponID = 120978; FishingPoleID = 44050; UABool = true; UCBool = false; URBool = false; OCBool = false; ODBool = false; } public static WorldQuestBagItemsSettings CurrentSetting { get; set; } public bool Save() { try { return Save(AdviserFilePathAndName("WorldQuestBagItems", ObjectManager.Me.Name + "." + Usefuls.RealmName)); } catch (Exception e) { Logging.WriteDebug("WorldQuestBagItems => Save(): " + e); return false; } } public static bool Load() { try { if (File.Exists(AdviserFilePathAndName("WorldQuestBagItems", ObjectManager.Me.Name + "." + Usefuls.RealmName))) { CurrentSetting = Load(AdviserFilePathAndName("WorldQuestBagItems", ObjectManager.Me.Name + "." + Usefuls.RealmName)); return true; } CurrentSetting = new WorldQuestBagItemsSettings(); } catch (Exception e) { Logging.WriteDebug("WorldQuestBagItems => Load(): " + e); } return false; } [Setting] [Category("Settings Fishing")] [DisplayName("Artifact Weapon ID")] [Description("ID of Artifact Weapon in Mainhand to equip")] public uint ArtifactWeaponID { get; set; } [Setting] [Category("Settings Fishing")] [DisplayName("Fishing pole ID")] [Description("ID of Fishing pole to equip")] public uint FishingPoleID { get; set; } [Setting] [Category("Settings Items Use")] [DisplayName("Use Artifacts")] [Description("The usage of Artifact Items is set on at default")] public bool UABool { get; set; } [Setting] [Category("Settings Items Use")] [DisplayName("Use Companion")] [Description("The usage of Repurtation items is set off at default")] public bool UCBool { get; set; } [Setting] [Category("Settings Items Use")] [DisplayName("Use Repurtation Items")] [Description("The usage of Companion Spell is set off at default")] public bool URBool { get; set; } [Setting] [Category("Settings Open")] [DisplayName("Open Chests")] [Description("To open Chests is set on ast default")] public bool OCBool { get; set; } [Setting] [Category("Settings Open")] [DisplayName("Open Loot Containers")] [Description("To open the Loot Containers by enchants - is on at default")] public bool ODBool { get; set; } }