Hi,
Looking at the loot alert source it periodically iterates through the acd actors. But when a desired
item is flagged as "interesting" by the filter, it is simply put into an ignore list until current level area changes and ignorelist is reset.
What i've been experimenting with is calculating the amount of gold gained.
This is quite easy:
PHP Code:
List<int> ignoreList = new List<int>();
int goldGained = 0;
foreach (var item in diablo.GetItems())
{
if(!item.isValid() || ignoreList.Contains(item.Seed)) continue;
if(item.ItemType == ItemType.Gold) {
goldGained += item.GetInt(Attrib.Gold);
ignoreList.Add(item.Seed);
}
}
But.. how do i really know that i actually picked up the gold and did not just walk far enough
away that they disappeared from the acd list anyway?