|
|
#111 |
|
Legendary Member
Join Date: May 2006
Location: Arizona
Posts: 3,787
|
Considering you can only do one instance per toon that gets you your frost badges. Link in for the LFG event you mentioned, then test the rewards for the frost badge. If it's there then flag the toon an attach the GetQuestResetTime() on to it. In SOCD I setup a simple check.
local resetTime = time()+GetQuestResetTime() if time() > resetTime then --Clear Data end It has a 1 or 2 second real offset, but it's not that bad considering that most players are not awake when dailies reset.
__________________
Author of GuildCraft, SickOfClickingDailies, CursorCooldown, Broken_LFD WoWAce Addon List WoWInterface Addon List "I was there in the beginning... and things were very different back then" --An Echo from a time before. |
|
|
|
|
|
#112 |
|
Senior Member
|
Thanks heaps for that, OrionShock.
I'm currently gonna test the contents of the Dungeon Finder window, since the text changes once you've done a daily random. This should mean I have a future-proof way of detecting the daily since I don't need to hard code in specific rewards or numbers of rewards. That GetQuestResetTime() is genius though. Trying to work it in now. |
|
|
|
|
|
#113 |
|
Legendary Member
Join Date: May 2006
Location: Arizona
Posts: 3,787
|
262 --WotLK Random Heroic ID
261 --WotLK Random Non-Heroic ID 260 --BC Random Heroic doneToday, moneyBase, moneyVar, experienceBase, experienceVar, numRewards = GetLFGDungeonRewards(dungeonID); name, texturePath, quantity = GetLFGDungeonRewardInfo(dungeonID, rewardIndex); Sadly i couldn't find a easy way to extract an item id for the rewards. however this did work tooltip:SetLFGDungeonReward(id, index) tooltip:GetItem() returned values as one would expect.
__________________
Author of GuildCraft, SickOfClickingDailies, CursorCooldown, Broken_LFD WoWAce Addon List WoWInterface Addon List "I was there in the beginning... and things were very different back then" --An Echo from a time before. Last edited by OrionShock; 01-01-2010 at 10:27 AM. |
|
|
|
|
|
#114 | |
|
Member
Join Date: Sep 2005
Posts: 37
|
Quote:
|
|
|
|
|
|
|
#115 |
|
Legendary Member
Join Date: May 2006
Location: Arizona
Posts: 3,787
|
considering that the SavedInstances works mostly with instances that have RaidID's, and only 3 classes of instances available that work with the LFD tool are available. So really only those 3 are important, as the LFD tool dosn't work the same way with raids.
__________________
Author of GuildCraft, SickOfClickingDailies, CursorCooldown, Broken_LFD WoWAce Addon List WoWInterface Addon List "I was there in the beginning... and things were very different back then" --An Echo from a time before. |
|
|
|
|
|
#116 |
|
Senior Member
|
I was using those calls you mentioned (OrionShock) for a while, and then it hit me: why not just save the quest time remaining after the first random daily completion? I've stopped checking altogether to see if it's actually been done according to Blizzard.
I literally wait for the LFG_COMPLETION_REWARD event, and check to see if we have the Luck of the Draw buff, that's all. I'm testing it now.
|
|
|
|
|
|
#117 |
|
Member
Join Date: Sep 2005
Posts: 37
|
Had a weird thing happen yesterday, got Azjol-Nerub as my daily random heroic, but when I was looking at it under SavedInstances it showed up under the Classic category versus under Wrath of the Lich King (not sure if it didn't match or what, but it even shows an Expansion of 0 in my SavedVariables file).
|
|
|
|
|
|
#118 |
|
Senior Member
|
Yeah, it's a glitch. I don't know why, but the database of instances in the Dungeon Finder sometimes uses different names when compared to the instance zones (used for the lockouts). Even when this isn't the case, sometimes certain instances just don't get paired up with their Dungeon Finder information.
Note that there isn't really a great way for me to tell which expansion introduces which instance. I could define a whole database for it, but since there isn't really such thing as a universal Dungeon ID, I'd have to localise it which is where it gets crazy. So for the time being, you may need to manually correct a few. I'm trying to iron this out. |
|
|
|
|
|
#119 | |
|
Member
Join Date: Sep 2005
Posts: 37
|
Quote:
I found the problem. In GetLFDID you call strfind twice in order to do a match for the name (and I was doing a direct compare and getting a match). The problem is that strfind does regular expression matching, and any name that has a regular expression operator will possibly trigger a non-match. I fixed it by adding in the optional fourth parameter which specify's PLAIN matching versus regular expressions. Now Azjol-Nerub shows up properly. It looks like this. Code:
if (strfind(details[1], name, 1, true) or strfind(name, details[1], 1, true))
and (vars.db.Instances[name].Raid == (details[2] == 2)) then
Last edited by zaphon; 01-04-2010 at 04:03 PM. |
|
|
|
|
|
|
#120 |
|
Legendary Member
Join Date: May 2006
Location: Arizona
Posts: 3,787
|
Actually there is, just a pain to get to
__________________
Author of GuildCraft, SickOfClickingDailies, CursorCooldown, Broken_LFD WoWAce Addon List WoWInterface Addon List "I was there in the beginning... and things were very different back then" --An Echo from a time before. |
|
|
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
All times are GMT. The time now is 06:51 PM.
WowAce Forums







I literally wait for the LFG_COMPLETION_REWARD event, and check to see if we have the Luck of the Draw buff, that's all. I'm testing it now.
