April 23, 20178 yr Is there a way to move to a lootable corpse and loot it manually? I attempted a few ways but I just couldn't get it to work. I was wondering if anyone knew a way. Thanks in advance!
April 24, 20178 yr This should work in a pulse method: WoWLocalPlayer me = ObjectManager.Me; WoWUnit LootableUnit = ObjectManager.GetObjectWoWUnit() .Where(i => i.IsLootable) .OrderBy(i => i.Position.DistanceTo(ObjectManager.Me.Position)) .FirstOrDefault(); if (LootableUnit != null && MovementManager.CurrentPath.LastOrDefault() != LootableUnit.Position && LootableUnit.Position.DistanceTo(me.Position) > 5) { MovementManager.Go(PathFinder.FindPath(LootableUnit.Position)); } else if (LootableUnit.Position.DistanceTo(me.Position) < 5 && !me.IsLooting()) { Interact.InteractGameObject(LootableUnit.GetBaseAddress, true); }
April 25, 20178 yr var lootables = ObjectManager.GetObjectWoWUnit().Where(u => u != null && u.IsValid && u.IsLootable).ToList(); if (lootables != null && lootables.Count > 0) { LootingTask.Pulse(lootables); }
Create an account or sign in to comment