Iterating ACD attributes - how to identify that an item has been picked up? menu

Shout-Out

User Tag List

Results 1 to 6 of 6
  1. #1
    peterrs's Avatar Private
    Reputation
    1
    Join Date
    Jan 2013
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Iterating ACD attributes - how to identify that an item has been picked up?

    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<intignoreList = 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?
    Last edited by peterrs; 01-15-2013 at 01:57 PM.

    Iterating ACD attributes - how to identify that an item has been picked up?
  2. #2
    iamclint's Avatar Master Sergeant
    Reputation
    14
    Join Date
    Aug 2012
    Posts
    84
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well you could check if that actors location is in your inventory position is at 0x114
    PlayerBackpack = 0 I would assume maybe? i haven't done a check with gold

  3. #3
    KillerJohn's Avatar TurboHUD HUDmaster CoreCoins Purchaser Authenticator enabled
    Reputation
    3696
    Join Date
    Jul 2012
    Posts
    2,532
    Thanks G/R
    46/3338
    Trade Feedback
    0 (0%)
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by iamclint View Post
    well you could check if that actors location is in your inventory position is at 0x114
    PlayerBackpack = 0 I would assume maybe? i haven't done a check with gold
    picked up gold actors will not appear in your inventory like normal items. It's values will be added to your total gold count.

    So, the answer is that you don't know why an actor disappears from the memory.

    With normal items the "workflow" is this:
    - when you pick it up, the actor's location is changing to "inventory", and world coordinates will be invalidated, but inventory positions will be set
    - when you drop an item, the item's actor is GONE (!), and in a half second a new actor (with new ID) will appear on the ground (**** yeah...)

  4. #4
    peterrs's Avatar Private
    Reputation
    1
    Join Date
    Jan 2013
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ahh, that really explains it. Thanks guys

  5. #5
    peterrs's Avatar Private
    Reputation
    1
    Join Date
    Jan 2013
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    when you drop an item, the item's actor is GONE (!),
    Is the seed invalidated also?

  6. #6
    g4b51l's Avatar Corporal
    Reputation
    2
    Join Date
    Nov 2012
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm...the gold gained...isnt it end gold - starting gold... do not know if lootAlert source allows this from scratch...

Similar Threads

  1. How is it that this player has the BWD title showing in his profile?
    By crunk001 in forum World of Warcraft General
    Replies: 2
    Last Post: 10-22-2015, 07:24 AM
  2. How to check if a criteria has been met in an achievement?
    By hellokill11 in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 06-23-2011, 12:16 AM
  3. How to play WOTLK that has been posted around the forums...
    By PuffDank in forum World of Warcraft Guides
    Replies: 16
    Last Post: 09-09-2008, 01:21 PM
  4. For people who dont know how to Identify Files
    By Fault in forum World of Warcraft Model Editing
    Replies: 0
    Last Post: 08-14-2006, 08:22 PM
All times are GMT -5. The time now is 08:55 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search