• 0

    posted a message on Localization help with quests
    You 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
  • 0

    posted a message on Localization help with quests
    To get the localized names of the factions that have reputation you can use:

    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.)
    Posted in: Lua Code Discussion
  • 0

    posted a message on Localization help with quests
    If 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
  • 0

    posted a message on Localization help with quests
    Reading 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
  • 0

    posted a message on Event for achievment progress update box
    Grail records the pieces of the achievement using CRITERIA_EARNED:

    ['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..")")
    end
    end,
    Posted in: Lua Code Discussion
  • 0

    posted a message on old addon need help updating for personal use
    You might be able to put something like this into your code:

    if nil == GetNumRaidMembers then
    GetNumRaidMembers = function()
    return IsInRaid() and GetNumGroupMembers() or 0
    end
    end
    Posted in: AddOn HELP!
  • 0

    posted a message on [FeedTillers] Official Thread
    Nice way to use Blizzard's API to localized the entire contents of the LDB feed.
    Posted in: Data Broker AddOns
  • 0

    posted a message on CalendarGetDate - changed values for weekday?
    No idea what they did, but can confirm that on 2012-11-28 the first return value is in fact 0.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Daily quest tracker
    You 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
  • 0

    posted a message on Best way to know about user interactions with NPCs
    Not 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.

    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).
    Posted in: AddOn HELP!
  • 0

    posted a message on Best way to know about user interactions with NPCs
    In 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!
  • 0

    posted a message on Detect what form that druid is in?
    I would like to be able to detect the form that the druid unit is in. Basically something like:

    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?

    Thanks.
    Posted in: Addon Ideas
  • To post a comment, please or register a new account.