What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

check the amount of Mobs that can be looted

izzy

Member
Joined
Jan 15, 2010
Messages
249
Reaction score
7
I am trying to get HB to check how many mobs are ready to be looted while in combat but can't seem find the right command for it. Anyone get some suggestions ?
 
Code:
public List<WoWUnit> lootList        {
            get
            {
                return ObjectManager.GetObjectsOfType<WoWUnit>()
                                            .Where(u => u.Lootable && u.Distance < Styx.Helpers.CharacterSettings.Instance.LootRadius)
                                            .OrderBy(u => u.Distance).ToList();
            }
        }

then you can do this to get how many it has found.

Code:
lootList.Count
 
this is my fault but i guess i should have said that i was trying to add this to the singular Hunter.cs.in my attempt to make it pull more while in combat. btw i'm vary new to this and i appreciate your the quick response/help thank you..
 
Last edited:
Back
Top