Jump to content

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...