SendChatMessage behaviour
Hi all,
I had an old addon that prints in a chosen channel when someone died and for what it is happened. Now I have expanded it with the announces also of the spells interrupts/dispell/steals. But the problem is that it only randomly works. It never, never, SendChatMessage the spell interrupts/dispell in the channel chosen but it works only with a simple print(). It sometimes SendChatMessage the death of someone in the chosen channel, and always works with print(). I know that now SendChatMessage() is a restricted in outdoor for the the "SAY", "YELL" and others. But it should work in INSTANCE/GUILD and other channel as well without problems. The code I use is something similar to these: Lua Code:
Lua Code:
Could be related to the fact that sometime this is triggered while in combat sometime while I am out of combat ? Or there is something else I am missing ? Basically I can simplify it because what I want to achieve is to find a method to announce what was happening to the party members. .... If possible :) Thanks for any helps. |
Hi all,
I'd like to refresh this topic because it drives me crazy :) Is possible that in DragonFlight (latest patch) the Lua Code:
I explain better. Lua Code:
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:
I have tried also to use in this way: Lua Code:
But it doesnt want to work. Any idea will be, as always, really appreciated. Thanks. |
SendChatMessage behavior changes based on instance/non instance status not group.
|
Hi Dridzt,
thanks for your answer. Can you explain better please because I was not able to fully understand :) The compact code: Lua Code:
I have found this code was suggested a lot of times and it should work without problems... Only take care of these: https://wowwiki-archive.fandom.com/w...sageCharacters Really thanks ! P.s. I found also this that I wrote on the same addon on 2012 :) Time flies.. :) https://www.wowinterface.com/forums/...ad.php?t=45493 |
Hi guys,
I wrote this only to let you know that I found finally why I was not able to use sendchat. I thought I had cleaned everything and make a plain vanilla string output to send but I was wrong :) The strings were these: Lua Code:
where I used the first in print() the second in sendchat() thinking it was a clean one. But it wasn't because in the first lines of addon I have: local prgname = "|cffffd200"..ADDON.."|r" I really forgot about it and it didn't capture my attention before. Now I have converted the string in something like: Lua Code:
... and everything automagically begins to works like a charm :-) Thanks and sorry for the spam. |
All times are GMT -6. The time now is 12:52 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI