Apexx 60 Posted July 26, 2017 Share Posted July 26, 2017 I am curious if WRobot targets units around the player on its own. It seems that once I finish combat with a unit or multiple units, I immediately target the next closest unit around me. Maybe I missed an option in Settings somewhere? Thanks! Link to comment https://wrobot.eu/forums/topic/6606-wrobot-targeting-units/ Share on other sites More sharing options...
iMod 99 Posted July 26, 2017 Share Posted July 26, 2017 46 minutes ago, apexx said: I am curious if WRobot targets units around the player on its own. It seems that once I finish combat with a unit or multiple units, I immediately target the next closest unit around me. Maybe I missed an option in Settings somewhere? Thanks! What kind of botbase are you using? The target engine is in the product so its different. Link to comment https://wrobot.eu/forums/topic/6606-wrobot-targeting-units/#findComment-29921 Share on other sites More sharing options...
Apexx 60 Posted July 26, 2017 Author Share Posted July 26, 2017 Just using WRotation Link to comment https://wrobot.eu/forums/topic/6606-wrobot-targeting-units/#findComment-29923 Share on other sites More sharing options...
Apexx 60 Posted July 27, 2017 Author Share Posted July 27, 2017 It appears to be happening in Wrath of the Lich King. I turned the bot off, disabled all addons, and checked settings. When I initiated combat with one unit (surrounded by other units not in aggro range) and killed the mob, If I was to continue mashing the ability buttons, it automatically targets the next mob around me despite not being in combat anymore. Link to comment https://wrobot.eu/forums/topic/6606-wrobot-targeting-units/#findComment-29955 Share on other sites More sharing options...
iMod 99 Posted July 27, 2017 Share Posted July 27, 2017 8 minutes ago, Apexx said: It appears to be happening in Wrath of the Lich King. I turned the bot off, disabled all addons, and checked settings. When I initiated combat with one unit (surrounded by other units not in aggro range) and killed the mob, If I was to continue mashing the ability buttons, it automatically targets the next mob around me despite not being in combat anymore. Yeah noticed it, too. Thats why i was asking if its happenm to you too. Didn't know you are playing wotlk, too. Welcome to the club Link to comment https://wrobot.eu/forums/topic/6606-wrobot-targeting-units/#findComment-29958 Share on other sites More sharing options...
Apexx 60 Posted July 27, 2017 Author Share Posted July 27, 2017 /console stopAutoAttackOnTargetChange 1 I wonder if there is another cvar close to this to disable Auto Targeting all together. Link to comment https://wrobot.eu/forums/topic/6606-wrobot-targeting-units/#findComment-29959 Share on other sites More sharing options...
iMod 99 Posted July 27, 2017 Share Posted July 27, 2017 Just now, Apexx said: /console stopAutoAttackOnTargetChange 1 I wonder if there is another cvar close to this to disable Auto Targeting all together. Well normaly you just need to make sure that you really stop using skills after the target is dead. Link to comment https://wrobot.eu/forums/topic/6606-wrobot-targeting-units/#findComment-29960 Share on other sites More sharing options...
Apexx 60 Posted July 27, 2017 Author Share Posted July 27, 2017 You would think using player.inCombat would register that effect. *EDIT* modified !player.inCombat to player.inCombat Link to comment https://wrobot.eu/forums/topic/6606-wrobot-targeting-units/#findComment-29961 Share on other sites More sharing options...
iMod 99 Posted July 27, 2017 Share Posted July 27, 2017 Just now, Apexx said: You would think using !player.inCombat would register that effect. Make sure that your spell validation contains Me.HasTarget && !Me.TargetObject.IsDead Well if you are validating InCombat you will get in trouble if you want that the bot attack enemies who are not in fight. Link to comment https://wrobot.eu/forums/topic/6606-wrobot-targeting-units/#findComment-29962 Share on other sites More sharing options...
Apexx 60 Posted July 27, 2017 Author Share Posted July 27, 2017 I can add those checks. What do you mean get in trouble? Link to comment https://wrobot.eu/forums/topic/6606-wrobot-targeting-units/#findComment-29963 Share on other sites More sharing options...
iMod 99 Posted July 27, 2017 Share Posted July 27, 2017 17 minutes ago, Apexx said: I can add those checks. What do you mean get in trouble? I mean that if you use wrotation and use a validation like this: // Invalid if(ObjectManager.Me.TargetObject.IsDead || !ObjectManager.Me.TargetObject.InCombat) { return; } The bot wont attack any mobs who are not in combat. You need attack them by yourself first before the bot does something. Link to comment https://wrobot.eu/forums/topic/6606-wrobot-targeting-units/#findComment-29966 Share on other sites More sharing options...
iMod 99 Posted July 27, 2017 Share Posted July 27, 2017 those checks should be enough i think. Just modified my own one. /// <summary> /// Determine if the spell can be cast /// </summary> /// <param name="target">The target we want to cast at</param> /// <returns>Returns true if we can cast the spell, otherwise false</returns> public bool IsValid(WoWUnit target, WoWSpell spell) { // Target available? if (target == null) { // Skip return false; } // Validate own conditions if (ObjectManager.Me.Silenced || ObjectManager.Me.IsStunned) { // Skip return false; } // Valid? if (target.IsDead || !spell.IsKnown || !spell.IsSpellUsable || !spell.IsDistanceGood || TraceLine.TraceLineGo(target.Position)) { // Skip return false; } // Return return true; } Link to comment https://wrobot.eu/forums/topic/6606-wrobot-targeting-units/#findComment-29968 Share on other sites More sharing options...
Apexx 60 Posted July 27, 2017 Author Share Posted July 27, 2017 The Protection Warrior Fight Class I am making is more for those that would rather control their own character in game. Such things like targeting and initial pulling would be up to the player. However, if the user would like to allow the Fight Class to pull (Found in Settings), it was an issue with Wrath of the Lich King that once the initial targeted mob died, the in-game auto target feature continuously makes my character go as long as there are mobs around me (despite setting the advanced settings for eating at certain health percentage) because of how quick theauto target reacts. Link to comment https://wrobot.eu/forums/topic/6606-wrobot-targeting-units/#findComment-29969 Share on other sites More sharing options...
iMod 99 Posted July 27, 2017 Share Posted July 27, 2017 (edited) 6 minutes ago, Apexx said: The Protection Warrior Fight Class I am making is more for those that would rather control their own character in game. Such things like targeting and initial pulling would be up to the player. However, if the user would like to allow the Fight Class to pull (Found in Settings), it was an issue with Wrath of the Lich King that once the initial targeted mob died, the in-game auto target feature continuously makes my character go as long as there are mobs around me (despite setting the advanced settings for eating at certain health percentage) because of how quick theauto target reacts. Ah i see, well i'm doing the same. Its a bit out of topic but here is my small rotation i made to tank some stuff. Its way not optimized Protection.cs Edited July 27, 2017 by iMod Hero Link to comment https://wrobot.eu/forums/topic/6606-wrobot-targeting-units/#findComment-29970 Share on other sites More sharing options...
Apexx 60 Posted July 27, 2017 Author Share Posted July 27, 2017 I will have a look! Thanks for sharing. Link to comment https://wrobot.eu/forums/topic/6606-wrobot-targeting-units/#findComment-29971 Share on other sites More sharing options...
Photogenic 24 Posted August 12, 2017 Share Posted August 12, 2017 This is another thing that is built-in-game lol. If you click (melee), abilities usually in a distance like 0-20 yards, it will auto target the closest enemy in your view. This, if I am not mistaken, is how the game work. It is not a bug. But if you have a macro for each ability that has condition (have target/true = fire ability) then it would fix the problem since it will never use this ability unless have a target.. Due to latency difference, bot press an extra ability after the mob is dead so it targets whoever is near. Link to comment https://wrobot.eu/forums/topic/6606-wrobot-targeting-units/#findComment-30661 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