Hello, I have no knowledge regarding LUA (or weakauras), i've been trying to set up weakaura's to announce a certain debuff that a boss does to the raid which players have been afflicted with.
example: Blade Lord does Wind Step on 2 people called Alice & Bob, these two get announced then by weakaura's.
Now I've used http://www.wowace.com/addons/weakaur...ayer-names/#p2 as it had pretty much what I wanted, so far I have the following:
PHP Code:
dCewiaqiav1IOuJcO6uaLvPemlO4wkQDbvggG0XGOSmkP6zkvvtJs4AsiTnPiFtsX4uQkNtPk6DkvH7rj5FaQYbLKfkHQhciMOs0fvsBKs0hLqzKsioPuyLkLxcOmtGCtPO2js9tLkdvcwkeEkQMkaxvQQTcOYxvcDwkPyUusP9I4VsPbloSQwmeXJLktgsxMQnlP6ZqvJwQYPvKxRuLMTkDBKSBq(TkgUeTCfEoktNIRdQTlP03HinEiQopuA)KjiJaGWPiCuchLaGWho(PdeaSLoHp1DGiCS7QxN5gILZfTO7VMAkQf1S)A2hq3V1BYcs9zlSGW)oZ0bIraq4mZpmeaeoLZypEV1GT0jCEL1q4ONwkNXE8objeoLZypENW75yjgIHWHGPamMWJ3hmcnYiCKVREDMBiwo3K1RbznvttnbuKTVMakq3ZMi1NTWcc3mMWJ3heaeUbBPt4DWmZHIWrHhVz6ar4wq4DWmZHQT3eQt4DWmZHIW7GzMdfHxhgQZmDGa3R1HmyumtuoZ8uLyuOCg7X7yu6nH6a5zgFGrHDGhDEX63yjgf2bE050pLJrHDGhDUL3hpdJc7ap6Ce)eQL3hpdJcQZmfRFJLyuqDMH(PCmkOoZy59XZWOG6mdIFc1Y7JNHrbhoCGPnfL5zfG0Z72Rs9ZqbYrQYdpEfVwhYGrP7Hu(l7OGexrBkkZZkklOWlSccuBvFevTvfkaQX6sLhE8aWw6kGd5iv5HhpyAtrzEwrzbfEHvqGAR6JOQfXAZ7aU1Lkp84bGT0va)HhVs3HQ86g)Ivz4uNADuW0MIY8SIYck8cRGa1w1hrvBvHcGASUSD5o(QYdpEaylDLN6adzuahYrQcZ8D7v5ux5HhpyAtrzEwrzbf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(sNzgWDgc)EEucachM5TqpLtqcHpoxNaGWPGVMjcaIHyiCyM3c516dcsi8U7ZyeaeoBcc)1jCErQAUIMWPGVMjcacNxKQMROjfNyigIHyiCgHpS((AIWRLqJmlakqjgcba
The entire code is denoted using COMBAT_LOG_EVENT_UNFILTERED event:
PHP Code:
function(event, timestamp, message, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, ...)
-- Check for new aura event, can also be
-- * SPELL_AURA_APPLIED auraType (new aura)
-- * SPELL_AURA_REMOVED auraType (aura completely removed)
-- * SPELL_AURA_APPLIED_DOSE auraType amount (new stack of aura)
-- * SPELL_AURA_REMOVED_DOSE auraType amount (removed stack of aura)
-- * SPELL_AURA_REFRESH auraType (existing aura refreshed)
-- * SPELL_AURA_BROKEN auraType
-- * SPELL_AURA_BROKEN_SPELL extraSpellID extraSpellName extraSchool auraType
if message == "SPELL_AURA_APPLIED" then
-- Additional arguments
local spellId, spellName, spellSchool, auraType = ...
-- Compare caster and spell
if sourceName == "PlayerName" and (spellName == "Sated" or spellId == 57724) then
-- Add chat ("RAID" can also be "RAID_WARNING")
SendChatMessage(sourceName or "UNKNOWN" .. " applied Aura " .. spellName or "UNKNOWN" .. (destName and " to " or "") .. destName or "", "SAY");
-- Want to whisper?
if destName then
SendChatMessage(sourceName or "UNKNOWN" .. " applied Aura " .. spellName or "UNKNOWN" .. " to you!", "WHISPER", nil, destName);
end
-- Show display
return true
end
end
end
Now I've tested this code using Bloodlust on my shaman, the event triggers and it works fine however the chat function does not seem to be working correctly. It displays the sourcename and that's it, it does not add the applied aura or any of the rest, the whisper function works as in it whispers myself when I get the sated debuff (with my own BL) but again only with the playername and nothing else. I've had 2 others in the raid but none of them had a message or anything. I've played around slightly and got spellname, sourcename working however destName does not work, if I enter just a simple chat message with destname it just breaks for some reason.
I've no clue what went wrong with the sendchatmessage, I hope someone could enlighten me.
Thanks in advance.