Hi all,
I'd like to refresh this topic because it drives me crazy
Is possible that in DragonFlight (latest patch) the
has known limitations that unfortunately I am unable to find ?
I explain better.
Lua Code:
[... parse COMBAT_LOG_EVENT_UNFILTERED ... ]
if clevent=="SPELL_DISPEL" then
p_autopsy_msg = string.format(L["%s: %s dispelled %s %s %s"],prgname,classcolor(sourceName), destName, GetSpellLink(suffixParam1) or suffixParam2, usedSpell)
autopsy_msg = string.format(L["%s: %s dispelled %s %s %s"],prgname,sourceName, destName, suffixParam2, usedSpell)
end
-- I want to send in chat the dispel announce for example.
-- I made 2 message because I remembered that there was problem with color code in sendchat.
-- if , for example, I am in a dungeon5 finder I am inside here:
if IsInGroup(LE_PARTY_CATEGORY_INSTANCE) then
print(p_autopsy_msg)
SendChatMessage(autopsy_msg, "INSTANCE_CHAT")
end
to test I have used also a print() and it works while the second SendChatMessage() no.
And I dont understand why :/
Same story for:
Lua Code:
if IsInGroup(LE_PARTY_CATEGORY_HOME) then
if IsInRaid() then SendChatMessage(autopsy_msg, "RAID") end
if IsInGroup() then SendChatMessage(autopsy_msg, "PARTY") end
end
if not inGroup then
print(p_autopsy_msg)
end
I have tried also to use in this way:
Lua Code:
SendChatMessage(autopsy_msg, IsInGroup(LE_PARTY_CATEGORY_INSTANCE) and 'INSTANCE_CHAT' or IsInRaid() and 'RAID' or IsInGroup() and 'PARTY' or 'SAY')
But it doesnt want to work.
Any idea will be, as always, really appreciated.
Thanks.