Artek 0 Posted October 21, 2020 Share Posted October 21, 2020 So today during grind player attacked me, bot instead of picking a player, was still attacking and chasing fleeing mob. Is there a way to make wrobot switch attacking player ? Quote Link to post Share on other sites
Apexx 42 Posted October 21, 2020 Share Posted October 21, 2020 Not at the moment, but this might be a plugin feature in the near future....... Quote Link to post Share on other sites
scsfl 2 Posted October 23, 2020 Share Posted October 23, 2020 On 10/22/2020 at 2:57 AM, Artek said: So today during grind player attacked me, bot instead of picking a player, was still attacking and chasing fleeing mob. Is there a way to make wrobot switch attacking player ? You have to modify ur fightclass. public void Initialize() { FightEvents.OnFightLoop += TargetSwitcher; } public void Dispose() { FightEvents.OnFightLoop -= TargetSwitcher; } private void TargetSwitcher(WoWUnit woWPlayer, System.ComponentModel.CancelEventArgs cancelable) { WoWPlayer player = ObjectManager.GetNearestWoWPlayer(ObjectManager.GetObjectWoWPlayer().Where(o => o.IsAttackable).ToList()); if (player == null || !player.IsValid || !player.IsAlive || player.Faction == ObjectManager.Me.Faction || player.IsFlying || player.IsMyTarget || woWPlayer.Guid == player.Guid) return; if (player.InCombatWithMe && ObjectManager.Target.Type != WoWObjectType.Player) { cancelable.Cancel = true; Fight.StartFight(player.Guid, robotManager.Products.Products.ProductName != "WRotation", false); } } Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.