November 25, 20178 yr I found this code on forum what is wrong here? It just keeps attacking with everything I have and kills the mob before it uses item. Thread t = new Thread(() => { uint itemId = 60206; int questId = 26720; while (robotManager.Products.Products.IsStarted) { if (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause) { if (!Quest.HasQuest(questId)) break; if (ObjectManager.Target.IsValid && ObjectManager.Target.IsAlive && ObjectManager.Target.HealthPercent <= 25) { ItemsManager.UseItem(itemId); } } Thread.Sleep(500); } }); t.Start();
December 2, 20178 yr Try: Fight.StopFight();ItemsManager.UseItem(itemId); instead of just ItemsManager.UseItem(itemId);
Create an account or sign in to comment