• 0

    posted a message on Associating NPC Death with Currency Award
    Thanks for the feedback! :)

    After experimenting until late last night, I think I have close to what I need by:

    1. Tracking the most recently killed elite npc for a very short time (<1sec)
    2. If currency is updated in that time, associate the currency gain with the tracked npc.

    I'll probably also filter this association so it only watches for Dungeon & Raid currency (Justice and Valor).

    I don't want to maintain a list of mobs known to drop currency for the AddOn. This data gets uploaded by our users and we do some back-end processing, so I can compare each recorded currency gain against such a list outside of the AddOn).

    Thanks again,
    shon
    Posted in: Lua Code Discussion
  • 0

    posted a message on Associating NPC Death with Currency Award
    Hey,

    I'm working on tracking currency rewards. I'd like to be able to associate currencies with the objects they may be looted from, and the NPCs that award them directly when killed.

    I'm stuck on the 'NPC awards currency upon death' part. For example, bosses in Heroic dungeons may award justice/valor points when they die, and I'd like to record those events.

    I'm thinking that I could get *some* data by:
    * Watching for NPC death
    * When we see an npc die, for a short period of time thereafter, the next CURRENCY_DISPLAY_UPDATE event may record the currency as part of the drop for that NPC.

    Doesn't seem like a very reliable system, though.

    Any hints and/or suggestions of APIs/Events/Other AddOns to look at would be greatly appreciated!

    Thanks,
    Shon
    Posted in: Lua Code Discussion
  • 0

    posted a message on My Work on a Lua IDE
    Hey,

    I've been using this IDE for several days now, and I love it! Thanks so much for sharing your work!
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.