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.
- Curse Premium
Member for 10 years and 11 months
Last active Mon, Aug, 15 2016 15:35:45
- 0 Followers
- 75 Total Posts
- 0 Thanks
Jun 12, 2010Project: http://www.wowace.com/addons/libaurainfo-1-0/create-page/Posted in: Libraries
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.
May 23, 2010Posted in: Libraries
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
May 23, 2010Posted in: Lua Code DiscussionQuote from lilsparkyall 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.
May 16, 2010Sorry 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.Posted in: Map/Minimap AddOns
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.
May 1, 2010But 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.Posted in: Map/Minimap AddOns
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.
Apr 22, 2010QuestHelper 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.Posted in: Lua Code Discussion
Would be nice if there was a addon that did just this.
- To post a comment, please login or register a new account.