• 0

    posted a message on LibAuraInfo-1.0
    For now I just want a semi accurate duration to use until user gets a unitID event to retrieve the correct duration info. That's what I'm doing in PlateBuffs.

    I could keep track of durations from each casterGUID (if they don't equal the base) and let user include the srcGUID for a more accurate duration. I'll deal with that later.
    Posted in: Libraries
  • 0

    posted a message on LibAuraInfo-1.0
    Project: http://www.wowace.com/addons/libaurainfo-1-0/create-page/
    API: http://www.wowace.com/addons/libaurainfo-1-0/pages/api/

    LibAuraInfo-1.0 attempts to mimic UNIT_AURA and UnitAura() events and API using info seen in the combatlog. The goal being you won't need a unitID to receive updates on player/mobs active spells.

    When LibAI sees someone gain a spell, it fires a callback LibAuraInfo_AURA_APPLIED(dstGUID, spellID, srcGUID, spellSchool, auraType)
    The addon can then request LibAI:GUIDAuraID(dstGUID, spellID) to receive the stackCount, debuffType, duration, expires, isDebuff and casterGUID info.

    LibAI also keeps a database of aura durations which aren't provided by the combatlog. To keep the durations more accurate, LibAI keeps track if a caster has a unusual spell duration (alerted by talents/glyph/gear) and uses that duration when it sees that person cast the spell again. LibAI also keeps track of diminishing returns on spell durations.


    I created LibAuraInfo so that PlateBuffs would be notified when a player or mob gained/lost a aura. This way the user doesn't need to target/mouseover units to update their known auras.
    Posted in: Libraries
  • 0

    posted a message on Getting duration and debuffType from spellID
    Indeed. I'm already caching info from UnitAura but just wanted to check if there was another way.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Getting duration and debuffType from spellID
    Is it possible to get spell duration and debuffType from a spellID?
    Posted in: Lua Code Discussion
  • 0

    posted a message on LibGuildBankComm-1.0 Official Thread
    Nah, you don't need AceAddon, AceEvent, AceComm. just ChatThottleLib and AceSerializer would do.
    Posted in: Libraries
  • 0

    posted a message on LibGuildBankComm-1.0 Official Thread
    ah I didn't look close enough. Though it was sending item name. :p
    Posted in: Libraries
  • 0

    posted a message on LibGuildBankComm-1.0 Official Thread
    function lib.frame:CHAT_MSG_ADDON(prefix, msg, distribution, sender)
    	if prefix ~= "gBankComm" then return end
    	[B]if sender == "player" then return end[/B]

    Replace "player" with pName.

    local function commSend(contents, distribution, target)
    	ChatThrottleLib:SendAddonMessage("gBankComm", contents, distribution, target)
    end

    With ChatThrottleLib, you need to add a priority to your message in the first variable. Add "BULK" before "gBankComm".

    commSend("gBankComm", lib.guildBank, sender)
    ...
    	local gBankContents = tostring(lib.guildBank)
    	commSend(string.format("gBankComm", "UPDATE %s", gBankContents), "GUILD")

    That won't send the bank contents across comm. It'll just send a string "table: XXXXXXXX".
    You might need to use AceSerializer-3.0 to convert your table to string. (I'm gonna get grilled for saying that)

    	_, _, itemString = string.find(GetGuildBankItemLink(page, slot), "^|c%x+|H(.+)|h%[.+%]")
    	lib.guildBank[guildName].links[page][slot] = itemString

    You should go with itemIDs instead of itemName. It's shorter and I think plays better with GetItemInfo and other such API.


    Also make local references to the global API. eg
    local GetGuildInfo = GetGuildInfo
    local IsInGuild = IsInGuild

    ect
    Posted in: Libraries
  • 0

    posted a message on precise, comparable, date & time stamp
    Quote from lilsparky
    all your comm logic and message handling has nothing to do with guild banks, so it would seem like separating the two would provide a boon to other authors who could utilize your comm setup for other databases.


    That would be so wonderful. I've wanted to share a db with my guild but couldn't think of a good way to sync everyone up.
    Posted in: Lua Code Discussion
  • 0

    posted a message on TotemRadius
    Sorry about the spam. I didn't test it in a long enough to see the spam before I uploaded it. I'm working on it now.

    edit: I uploaded a fix the other day but it's not showing up on curse. You can get 2.0.10beta on the download page.
    Posted in: Map/Minimap AddOns
  • 0

    posted a message on TotemRadius
    @ameyaselene
    what version are you running?
    Posted in: Map/Minimap AddOns
  • 0

    posted a message on TotemRadius
    v2.0.1beta has a option to disable minimap rings. CPU usage is reduced when it's disabled.

    correction, v2.0.3beta can disable minimap rings.
    Posted in: Map/Minimap AddOns
  • 0

    posted a message on TotemRadius
    But I found a bug. After a wipe the AVR circle was still showing in the boss room after I ran back in. The minimap circle was correctly hidden.
    Humm. I'd say it's due to being out of range when the cobatlog message said it was destroyed, but if the minimap icon's missing too then AVR might be the problem. I wonder if I can't hide a scene if I'm outside the zone that it was created in. I'll try to keep my eye out for it.

    Is it possible to colour-code the rings in AVR to match the totem colours? Fire = red, Water = Blue, Air = white, Earth = brown or black or green? It would make each ring's radius more distinguishable.
    In TR's options you can enable solid circles in the AVR tab. I'm looking into other ways to just colour the ring by school and range.
    Posted in: Map/Minimap AddOns
  • 0

    posted a message on TotemRadius
    I added AVR support to display 3D rings around totems.


    click to enlarge
    Posted in: Map/Minimap AddOns
  • 0

    posted a message on Target position
    QuestHelper should release Radar as its own addon. It's pretty nifty.

    Posted in: Lua Code Discussion
  • 0

    posted a message on Target position
    QuestHelper has a feature called Radar (off by default). It uses LibRangeCheck to get the distance to your target, then as you run around it triangulates the location of your target and places the possible location on your minimap.

    Would be nice if there was a addon that did just this.
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.