August 12, 20187 yr 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?
August 13, 20187 yr 13 hours ago, 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? ObjectManager.Me.Target = wowUnit.Guid;
August 13, 20187 yr Author 2 hours ago, Matenia said: ObjectManager.Me.Target = wowUnit.Guid; unfortunately, this command also select a unit and attacks it... BTW Wow ver 3.3.5
August 13, 20187 yr 5 minutes ago, 79135 said: unfortunately, this command also select a unit and attacks it... 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?
August 13, 20187 yr Author Just now, 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? For pickpocketing
August 13, 20187 yr Author 3 minutes ago, 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? I don't know why it happen, but char begin attack target even if I add Fight.StopFight() before and after.
August 13, 20187 yr Author 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
August 13, 20187 yr 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
Create an account or sign in to comment