Pikacuq is tweaking A-Bot :)

If your modules are deactivating slowly or bot is clicking by mouse instead of shortcut, it’s caused by bug mentioned in previous post in Bot.cs

But as well in Modules.cs there is code around line 33:

if (module?.IsActive(bot) == false || module?.RampActive == false)

which you wanna change to

if (module?.IsActive(bot) == false || module?.RampActive == false || module?.BusyVisible == true)

and around line 67 you have

				if (0 < toggleKey?.Length)
					yield return toggleKey?.KeyboardPressCombined();

				yield return module?.MouseClick(MouseButtonIdEnum.Left);

which you wanna change to

				if (0 < toggleKey?.Length)
				{
					yield return toggleKey?.KeyboardPressCombined();
				}
				else
				{
					yield return module?.MouseClick(MouseButtonIdEnum.Left);
				}

previous code basically pushed keyboard and clicked on module as well (dunno who is original author tho)
and BusyVisible helps you to ignore state when module is deactivating, because before bot just waited till redglow is not present and then continued in tasks.

Now it’s smoother and faster

Enjoy

1 Like