------------------------------------------------------------------------
r41 | profplump | 2010-03-10 10:58:23 +0000 (Wed, 10 Mar 2010) | 11 lines
Changed paths:
   A /tags/v2.0.0 (from /trunk:40)

Tagging as v2.0.0

New core event strategy. Same great turn-in flavor.

TiE now scans your quest log for completed quests, and compares the name of those quests against the names of active quests at the current NPC. If there is a match TiE tries to turn in that specific quest. I'd match by questID, but for the life of me I can't figure out how get a questID out of the gossip frame that lists quests.
 
This means that TiE will no longer thrash through all the active quests every time you click on an NPC. That not only makes it nicer to use, but it simplifies the code a good bit too, so it's a win all around.

This release should also fix the race condition that sometimes occurred when multiple completed quests were available at the same NPC. TiE will now close the gossip frame after turning in a quest, which should prevent it from every trying to process more than one at a time, and which will leave the UI in a convenient state to allow you to re-select the NPC to turn in additional quests. It will also give the game more time to catch up with the new state of quests, which will help avoid the race condition in the first place.

Testing is pretty light in this initial release, but I am sure people will complain if I missed something important.
------------------------------------------------------------------------
r40 | profplump | 2010-03-10 10:54:09 +0000 (Wed, 10 Mar 2010) | 1 line
Changed paths:
   M /trunk/TurnInEverything.toc

Missed a digit there
------------------------------------------------------------------------
r39 | profplump | 2010-03-10 09:42:12 +0000 (Wed, 10 Mar 2010) | 1 line
Changed paths:
   M /trunk/TurnInEverything.lua

Always register progress/complete events -- some NPCs that complete quests do not throw up a gossip or greeting window first.
------------------------------------------------------------------------
r38 | profplump | 2010-03-10 09:32:11 +0000 (Wed, 10 Mar 2010) | 1 line
Changed paths:
   M /trunk/TurnInEverything.lua

Go ahead and force that gossip frame close.
------------------------------------------------------------------------
r37 | profplump | 2010-03-10 09:25:33 +0000 (Wed, 10 Mar 2010) | 9 lines
Changed paths:
   M /trunk/TurnInEverything.lua
   M /trunk/TurnInEverything.toc

New core event strategy. Same great turn-in flavor.

TiE now scans your quest log for completed quests, and compares the name of those quests against the names of active quests at the current NPC. If there is a match TiE tries to turn in that specific quest.

This means that TiE will no longer thrash through all the active quests every time you click on an NPC. That not only makes it nicer to use, but it simplifies the code a good bit too.

Testing is pretty light in this initial release, but I am sure people will complain if I missed something important.

I am not sure if this change will have any effect on the race condition that sometimes occurs when more than one quest can be turned in at the same time to the same NPC. That is inherent to the game design (i.e. not my fault) but I will try to work around it if I continue to see the problem with the new version. At the very least I could probably force you out of the quest/gossip frame after turning in a quest, so the game has a chance to catch up while you click on the NPC again.
------------------------------------------------------------------------
