Rusty_Trombone
Member
- Joined
- Oct 30, 2011
- Messages
- 348
I think I found it. The CanLoot is to blame, since according to documentation "Returns true if you can loot this gameobject, works for herbs minerals and chests.". Remove CanLoot and use something like !IsHerb && !IsMineral
This is quick and dirty. You need to use the variables in the other post that indicated whenther the toon has the profession of course.
Code:
List<WoWGameObject> chests = ObjectManager.GetObjectsOfTypeFast<WoWGameObject>().Where(c => c != null
&& c.Distance <= Range
&& c.SubType == WoWGameObjectType.Chest
&& !Blacklist.Contains(c.Guid, BlacklistFlags.All)
&& c.Distance <= Range
&& !c.IsHerb
&& !c.IsMineral).OrderBy(c => c.Distance).ToList();
This is quick and dirty. You need to use the variables in the other post that indicated whenther the toon has the profession of course.
Last edited: