79135 4 Posted August 12, 2018 Share Posted August 12, 2018 Hello, var listUnit = new List<WoWUnit>(); listUnit.AddRange(ObjectManager.GetWoWUnitHostile().Where(u => u.GetDistance2D <= 5).OrderBy(u => u.GetDistance)); foreach (var woWUnit in listUnit) Interact.InteractGameObject(woWUnit.GetBaseAddress, true); The code select target, but char begin attack the "woWUnit" , how just select target without autoattack? Link to comment https://wrobot.eu/forums/topic/9933-select-target/ Share on other sites More sharing options...
Matenia 630 Posted August 13, 2018 Share Posted August 13, 2018 On 8/12/2018 at 7:54 PM, 79135 said: Hello, var listUnit = new List<WoWUnit>(); listUnit.AddRange(ObjectManager.GetWoWUnitHostile().Where(u => u.GetDistance2D <= 5).OrderBy(u => u.GetDistance)); foreach (var woWUnit in listUnit) Interact.InteractGameObject(woWUnit.GetBaseAddress, true); The code select target, but char begin attack the "woWUnit" , how just select target without autoattack? Expand ObjectManager.Me.Target = wowUnit.Guid; Link to comment https://wrobot.eu/forums/topic/9933-select-target/#findComment-46567 Share on other sites More sharing options...
79135 4 Posted August 13, 2018 Author Share Posted August 13, 2018 On 8/13/2018 at 9:00 AM, Matenia said: ObjectManager.Me.Target = wowUnit.Guid; Expand unfortunately, this command also select a unit and attacks it... BTW Wow ver 3.3.5 Link to comment https://wrobot.eu/forums/topic/9933-select-target/#findComment-46569 Share on other sites More sharing options...
Matenia 630 Posted August 13, 2018 Share Posted August 13, 2018 On 8/13/2018 at 11:17 AM, 79135 said: unfortunately, this command also select a unit and attacks it... Expand By itself, it absolutely does not start the fight. It only sets the target. You can call Fight.StopFight() before and after. Why do you even need to target a unit? Link to comment https://wrobot.eu/forums/topic/9933-select-target/#findComment-46570 Share on other sites More sharing options...
79135 4 Posted August 13, 2018 Author Share Posted August 13, 2018 On 8/13/2018 at 11:22 AM, Matenia said: By itself, it absolutely does not start the fight. It only sets the target. You can call Fight.StopFight() before and after. Why do you even need to target a unit? Expand For pickpocketing Link to comment https://wrobot.eu/forums/topic/9933-select-target/#findComment-46571 Share on other sites More sharing options...
79135 4 Posted August 13, 2018 Author Share Posted August 13, 2018 On 8/13/2018 at 11:22 AM, Matenia said: By itself, it absolutely does not start the fight. It only sets the target. You can call Fight.StopFight() before and after. Why do you even need to target a unit? Expand I don't know why it happen, but char begin attack target even if I add Fight.StopFight() before and after. Link to comment https://wrobot.eu/forums/topic/9933-select-target/#findComment-46572 Share on other sites More sharing options...
79135 4 Posted August 13, 2018 Author Share Posted August 13, 2018 var unit = new WoWUnit(ObjectManager.GetObjectByGuid (17379391364021616671).GetBaseAddress); Fight.StopFight(); ObjectManager.Me.Target = unit.Guid; Fight.StopFight(); If I use the code: var unit = new WoWUnit(ObjectManager.GetObjectByGuid (17379391364021616671).GetBaseAddress); wManager.Wow.Bot.Tasks.GoToTask.ToPosition(unit.Position); Work good, but don't select target. If use macro for select target after I get to the goal - it not always correctly selects the target Link to comment https://wrobot.eu/forums/topic/9933-select-target/#findComment-46573 Share on other sites More sharing options...
Matenia 630 Posted August 13, 2018 Share Posted August 13, 2018 Has working pickpocket in vanilla. It saps enemy, targets enemy, prevents all fighting, actively pick pockets + loots and then moves on. You can check out all the code there Link to comment https://wrobot.eu/forums/topic/9933-select-target/#findComment-46576 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