nicozo 11 Posted December 28, 2017 Share Posted December 28, 2017 Hello, I'm on a quest where you have to use an object on a mob, but only from a certain percentage. The problem is that the mob die too fast. Is there a code to force the bot to just auto attack to do the minimum damage to use this code then: Thread t = new Thread(() => { uint itemId = 62899; int questId = 28000; 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(); Thanks in advance <3 Link to comment https://wrobot.eu/forums/topic/8124-force-to-just-auto-attack/ Share on other sites More sharing options...
Matenia 628 Posted December 28, 2017 Share Posted December 28, 2017 Fight.StopFight(); ItemsManager.UseItem(xxx); Thread.Sleep(10000); Link to comment https://wrobot.eu/forums/topic/8124-force-to-just-auto-attack/#findComment-37136 Share on other sites More sharing options...
nicozo 11 Posted December 28, 2017 Author Share Posted December 28, 2017 hello matenia and thank you for the speed therefore, it will give: 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 <= 50) { Fight.StopFight(); ItemsManager.UseItem(itemId); } } Thread.Sleep(10000); } }); t.Start(); the problem is that the mob stun me, then the bot go to the next step Link to comment https://wrobot.eu/forums/topic/8124-force-to-just-auto-attack/#findComment-37139 Share on other sites More sharing options...
nicozo 11 Posted December 28, 2017 Author Share Posted December 28, 2017 it's this quest: http://www.wowhead.com/quest=26720/a-curse-we-cannot-lift Link to comment https://wrobot.eu/forums/topic/8124-force-to-just-auto-attack/#findComment-37140 Share on other sites More sharing options...
Matenia 628 Posted December 28, 2017 Share Posted December 28, 2017 Use !ObjectManager.Me.IsStunned to make sure you're not stunned before using the item Link to comment https://wrobot.eu/forums/topic/8124-force-to-just-auto-attack/#findComment-37141 Share on other sites More sharing options...
nicozo 11 Posted December 28, 2017 Author Share Posted December 28, 2017 ok, where should I put this line? Link to comment https://wrobot.eu/forums/topic/8124-force-to-just-auto-attack/#findComment-37142 Share on other sites More sharing options...
nicozo 11 Posted December 28, 2017 Author Share Posted December 28, 2017 It's good thanks for all <3 Link to comment https://wrobot.eu/forums/topic/8124-force-to-just-auto-attack/#findComment-37144 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now