Thread Tools Display Modes
09-09-09, 11:43 AM   #1
nickyjean
Premium Member
Premium Member
Join Date: Sep 2008
Posts: 284
Turning in Daily Quests before logging off.

Is there a way to create an addon that will throw up a Confirmation box to exit if you still have Daily quests that have been completed but not turned in. Then you can select either "Yes still LogOut" or "Cancel Exit" Something like that.
  Reply With Quote
09-10-09, 02:42 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
That actually is a good idea. Several times I have woke up in the middle of the night my time to wonder if I forgot to hand in a daily rofl.

However, it may not be possible to make the difference between leaving the world ( logging out ) or leaving an instance to join the world. So unless we want to spam the message every time people zone in and out of instances it won't be viable.

Of course if someone can think of another way to do this that is cool too.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
09-10-09, 04:50 AM   #3
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 125
You could always have the addon check the zone they are in before it sends a message or stops you from logging out, though I'm not sure there is API to see if a quest is complete or not.

Last edited by Soulofsin_007 : 09-10-09 at 05:13 AM.
  Reply With Quote
09-10-09, 05:16 AM   #4
Gruffness
A Deviate Faerie Dragon
 
Gruffness's Avatar
Join Date: Apr 2008
Posts: 18
Perhaps a simple icon or Active Daily counter to show active and completed quests. Even without a confirmation, one could still be informed about dailies that haven't been turned in.
  Reply With Quote
09-10-09, 05:35 AM   #5
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 125
Originally Posted by Gruffness View Post
Perhaps a simple icon or Active Daily counter to show active and completed quests. Even without a confirmation, one could still be informed about dailies that haven't been turned in.
Good idea, that would pry work out just fine. Still the only problem is, I don't think you can detect a completed quest until you are in the quest frame for it. (If I am getting it right from the WoWWiki page on IsQuestCompletable). But a frame that will show active daily quests and maybe put out a reminder when you go into Dalaran or something similar to that.

Last edited by Soulofsin_007 : 09-10-09 at 05:47 AM.
  Reply With Quote
09-10-09, 08:15 AM   #6
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Hmm, I wonder if it would be possible to use libquixote to register when a quest is done. You could then hook the logout confirmation dialog to run a script? You might also want to try and get in touch with OrionShock (SickOfClickingDailies)
  Reply With Quote
09-10-09, 08:41 AM   #7
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
I asked on #wowace on irc, orionshock told me to make a ticket
  Reply With Quote
09-10-09, 11:58 AM   #8
forty2j
A Cobalt Mageweaver
Join Date: May 2007
Posts: 232
It would seem to be that this kind of addon would need to do its own tracking.. e.g. it can't query the quest log for completed dailies, but it can capture events for quests accepted, completed, abandoned, and turned in and, if they are dailies, update counters accordingly.

Then, even if it can't capture logout appropriately, it can put a big number in front of your face (like some old Healthstone mods lol).
  Reply With Quote
09-10-09, 01:12 PM   #9
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
I believe this would be the function to use there :

http://www.wowwiki.com/API_GetQuestLogTitle
questTitle, level, questTag, suggestedGroup, isHeader, isCollapsed, isComplete, isDaily = GetQuestLogTitle(index)

http://www.wowwiki.com/API_GetNumQuestLogEntries
numEntries, numQuests = GetNumQuestLogEntries();


But yes, after reading it somemore it is similar to the tradeskills info function and requires the frame to be open, perhaps. Theoretically you could use this function to expand the quests if it is a collapsed header item. Whether it still needs to be open I don't know.

http://www.wowwiki.com/API_ExpandQuestHeader
ExpandQuestHeader(questID);

For curiosity sake I will see what happens when they are used.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
09-10-09, 03:24 PM   #10
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
Well, it looks like those functions will work. Although for some strange reason the Ebonblade dailies aren't being included in the Quest List I generate using that information. I will add screenshots shortly once I confirm the daily quest completed shows up in the count seeing as it is one that does show up in the list.

Code:
	QuestCounter_ClearQuestList();
	ExpandQuestHeader(0);
	local numEntries, numQuests = GetNumQuestLogEntries();
	local QTotal = 0;
	local QCompleted = 0;
	local QDailies = 0;
	local QDailiesCompleted = 0;
	for index = 1,numEntries do
		local questTitle, level, questTag, suggestedGroup, isHeader, isCollapsed, isComplete, isDaily = GetQuestLogTitle(index);
		local QuestInfo = {};
		if ( not isHeader ) then
			if ( isDaily ) then
				QDailies = QDailies + 1;
				if ( isComplete ) then
					QDailiesCompleted = QDailiesCompleted + 1;
				end
			else
				QTotal = QTotal + 1;
				if ( isComplete ) then
					QCompleted = QCompleted + 1;
				end
			end
			QuestCounters = { Total = QTotal, Completed = QCompleted, Dailies = QDailies, DailiesCompleted = QDailiesCompleted };
			QuestInfo.Title = questTitle;
			QuestInfo.Completed = isComplete;
			QuestInfo.Daily = isDaily;					
			table.insert(QuestCounterData,QuestInfo);			
		end
	end
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
09-10-09, 03:52 PM   #11
zero-kill
A Firelord
 
zero-kill's Avatar
Join Date: Aug 2009
Posts: 497
Good old fashioned, pushing "L" and looking for the "complete" has worked wonders for me.
  Reply With Quote
09-10-09, 04:57 PM   #12
Marthisdil
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 363
Originally Posted by zero-kill View Post
Good old fashioned, pushing "L" and looking for the "complete" has worked wonders for me.
`Quit making sense! People are lazy around here!
__________________

Marth



  Reply With Quote
09-10-09, 06:44 PM   #13
zero-kill
A Firelord
 
zero-kill's Avatar
Join Date: Aug 2009
Posts: 497
haha
  Reply With Quote
09-10-09, 07:17 PM   #14
voodoodad
Large, Friendly Letters!
 
voodoodad's Avatar
Join Date: Oct 2008
Posts: 1,632
/mumbles under breath

Next thing ya know, they'll want to turn the dailies automatically before logout without going anywhere near the quest-giver.
__________________

~ no need to make the message completely obnoxious - Cairenn
  Reply With Quote
09-10-09, 10:45 PM   #15
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
Originally Posted by voodoodad View Post
/mumbles under breath

Next thing ya know, they'll want to turn the dailies automatically before logout without going anywhere near the quest-giver.
Darn it voodoo ... always seeing through my ideas .. rofl .. well Im getting close to get something runnable Was in the process of one last change when our Ulduar Raid was being set up ...
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
09-11-09, 02:11 AM   #16
orionshock
A Wyrmkin Dreamwalker
 
orionshock's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 50
Hi all...

At the request of MrRuben5 in IRC, this was added recently to my addon SickOfClickingDailies. It's in the alpha versions after r292 over on wowace.com. All it really does is print to the default chat frame the quests that are completed and are a daily quest.

I know some of you don't use my addon but would like this feature any ways, so it was written in a way that could be transposed into it's own file, all you have to do is copy out the centre lines and the OnEnable into your own file & should work just fine.

Enjoy

http://www.wowace.com/addons/sick-of...dailies/files/
__________________
"I was there in the beginning... and things were very different back then" --An Echo from a time before.

Last edited by orionshock : 09-11-09 at 05:08 AM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Turning in Daily Quests before logging off.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off