1. Im looking to write a mod or find one that will tell me if someone is changing gear? I have had on more than one occasion a boss go down and a pug change gear to a lower item and then want to roll on what dropped. Are there any API's that I can register with that will tell me when someone is changing gear?

    Im looking to write a mod or find one that will tell me if someone is changing gear? I have had on more than one occasion a boss go down and a pug change gear to a lower item and then want to roll on what dropped. Are there any API's that I can register with that will tell me when someone is changing gear?

    Its sad that you need to worry about things like this, but http://www.wowprogramming.com/docs/events/UNIT_INVENTORY_CHANGED may help you out.

    UNIT_INVENTORY_CHANGED I can't find a lot of information on that API. Does it only work on the player or target or is it a ranged event. Meaning as long as a person is in range of you and their inventory changes the event is triggered...?

     

    Test it and see.  Remember that the documentation is all experimentally determined, Blizzard doesn't really tell us what they do.  If it fires for your target/party/raid.. then it works.

    It should take a few minutes to test.

    OK, I've changed my thinking on this and instead of trying to catch people changing gear, i just want to inspect them if they are the winning roll and see if they have better gear. I can find easy enough help for a simple inspection of equiped items but can you parse another players bags? GetContainerItemLink I don't see any reference to target or anything like that, is it possible to inspect another players bags...???

    No, there is absolutely no way to scan someone else's bags.

    Thnks JN, you've been answering a ton of my questions.

    OK, so back to unit_inventory_changed. without being able to inspect someones bags the unit_inventory_changed will only return the affected players unitID. is there anything that can be used in conjuntions with unit_inventory_changed that will tell you the item that changed...?

     

    I can't use just unit_inventory_changed for policing gear changes because once a boss is down people loot, and get emblems, i would think inventory_changed will fire for each of those occurances so I need another way to determine what changed.

     

    Thnks JN, you've been answering a ton of my questions.

    OK, so back to unit_inventory_changed. without being able to inspect someones bags the unit_inventory_changed will only return the affected players unitID. is there anything that can be used in conjuntions with unit_inventory_changed that will tell you the item that changed...?

    Bags and inventory are not the same thing.  UNIT_INVENTORY_CHANGED fires when the player changes their equipment.  It doesn't fire (as far as I am aware) when the player picks up an item.

    I can't use just unit_inventory_changed for policing gear changes because once a boss is down people loot, and get emblems, i would think inventory_changed will fire for each of those occurances so I need another way to determine what changed.

    There is no other way.  This is the event you should be using, but it's going to be rather difficult to do what you want to do.  You need to use the inspect mechanism to determine what equipment they have on them, and then monitor changes to it.  Not an easy matter.