- Registered User
Member for 10 years, 10 months, and 18 days
Last active Mon, May, 27 2013 17:00:40
- 0 Followers
- 28 Total Posts
- 0 Thanks
May 8, 2013You might think about having your numbers in quotes (like quest IDs 7385, 6801, etc.) not in quotes. When you put them in quotes they become strings and you may need to convert them to numbers to use various APIs.Posted in: Lua Code Discussion
May 5, 2013To get the localized names of the factions that have reputation you can use:Posted in: Lua Code Discussion
local name = GetFactionInfoByID(reputationIndex)
The reputationIndex would be the values that are used internally by Blizzard (like 21 for Booty Bay, 47 for Ironforge, etc.).
Likewise, the localized names of the maps can be gotten using:
local mapName = GetMapNameByID(mapId)
The mapId is Blizzard's value that is returned from GetCurrentMapAreaID() when the map is set to the proper location.
To get all the mapIds that you want to use can be just creating a list of the specific ones you want, or by some other automated processes. (For example, my addon Grail determines all the normal zones by using Blizzard API to ask for continents and the zones they contain, but also has a set list of dungeon mapIds that are hardcoded.)
May 2, 2013If you are localizing the quests, you probably want to think about localizing the names of the items as well. And technically, you would probably want to localize any requirements you want to show like "Some cool item 0/8".Posted in: Lua Code Discussion
Apr 30, 2013Reading the quest tooltip for the localized name of any quest works for all quests, even those you have not seen, cannot get because of level, faction, race, etc. You can get every single quest in the game by reading the tooltip names.Posted in: Lua Code Discussion
Mar 24, 2013Grail records the pieces of the achievement using CRITERIA_EARNED:Posted in: Lua Code Discussion
['CRITERIA_EARNED'] = function(self, frame, ...)
if self.debug or self.tracking then
local achievementId, criterionId = ...
local _, achievementName = GetAchievementInfo(achievementId)
local criterionName = GetAchievementCriteriaInfoByID(achievementId, criterionId)
self:_AddTrackingMessage("Criterion earned: "..criterionName.." ("..criterionId..") for achievement "..achievementName.." ("..achievementId..")")
Jan 27, 2013You might be able to put something like this into your code:Posted in: AddOn HELP!
if nil == GetNumRaidMembers then
GetNumRaidMembers = function()
return IsInRaid() and GetNumGroupMembers() or 0
Nov 26, 2012You might want to look at the addons Wholly and Grail. They record what quests you have done, but also understand quest relationships so will remove quests that cannot be done from the list of available quests. For example, when you have selected a Klaxxi daily, the other Klaxxi dailies that are not available that day will be removed from the list. Or when you have selected the third Anglers quest for the day the others will be removed, etc. This should help for one toon, but does not monitor across toons.Posted in: Addon Ideas
May 29, 2012_ForgeUser1192189 posted a message on Best way to know about user interactions with NPCsNot knowing the "event" is the problem. I can deal with the npc as I do that for all the other quest work, like being able to differentiate between the quests one gets from the candy buckets when they all have the same name, and do not appear in the quest log.Posted in: AddOn HELP!
To expand upon this a bit, I also would like to know the position of Fiona's caravan. Unfortunately, I have seen that asking the caravan to move (which is an interaction with that NPC (45400)) does not cause a hidden quest to be completed. However, the process of asking the caravan to move is an interaction with the NPC on the same page as all the currently available repeatable quests.
And whatever solution I come up with, I want to be able to be smart about it and not have it bog down the system as I do not want it to be active for the thousands of NPCs that I care nothing about (as they do not do this special behavior).
May 28, 2012_ForgeUser1192189 posted a message on Best way to know about user interactions with NPCsIn my attempts to make Grail ever more accurate and "live" I have discovered that I need to know when a user has interacted with an NPC and asked them to join Fiona's caravan in Eastern Plaguelands. Basically, when this happens Blizzard completes a flag quest the user never knows about, thus making one of the caravan's quests available to the user. Grail can handle this situation once the user has logged in again, or performed a server query to get the list of completed quests. However, I would prefer that Grail knew immediately which means it will have to know that the user has clicked on the dialog with the NPC to join the caravan. Of course I want this to work no matter which localization of the Blizzard client is being used. Does anyone have any advice how best to go about doing this?Posted in: AddOn HELP!
Dec 13, 2006I would like to be able to detect the form that the druid unit is in. Basically something like:Posted in: Addon Ideas
form = FormOfDruidUnit(unitId)
I can do it if I am checking the player's form with GetShapeshiftFormInfo() but as far as I know that does not give me an option to pass in a unitId. Does anyone know how to do this?
- To post a comment, please login or register a new account.