Detecting conduits
Hello, as per title, is there a "Conduits" interface similar perhaps to C_AzeriteEssence.GetEssences() ?
|
I took a quick look at the API Documentation but all I can see are a bunch of items in the namespace C_Covenants but nothing referencing Conduits. That could mean there is not current API for us to use or they haven't added it to the documentation yet. With a month to go before release I would have hoped they would have had them added by now.
Hopefully someone who has got into the beta and/or is using the PTR to work on a conduit related addon has come across something can offer some suggestions. |
This is what I found (may be typos):
C_Soulbinds.AddPendingConduit C_Soulbinds.CanResetConduitsInSoulbind C_Soulbinds.CommitPendingConduitsInSoulbind C_Soulbinds.GetConduitCollection C_Soulbinds.GetConduitCollectionData C_Soulbinds.GetConduitCollectionDataAtCursor C_Soulbinds.GetConduitHyperlink C_Soulbinds.GetConduitItemLevel C_Soulbinds.GetConduitQuality C_Soulbinds.GetConduitSpellID C_Soulbinds.GetPendingConduitID C_Soulbinds.HasAnyInstalledConduitInSoulbind C_Soulbinds.HasAnyPendingConduits C_Soulbinds.HasPendingConduitInSoulbind C_Soulbinds.HasPendingConduitsInSoulbind C_Soulbinds.IsConduitInstalled C_Soulbinds.IsConduitInstalledInSoulbind C_Soulbinds.IsItemConduitByItemInfo C_Soulbinds.IsUnselectedConduitPendingInSoulbind C_Soulbinds.RemovePendingConduit C_Soulbinds.ResetSoulbindConduits |
In the Beta/PTR you can type "/api C_Soulbinds" in-game, click on the pink link to get a list of functions, events and tables or, extract the code and open SoulbindsDocumentation.lua under the Blizzard_APIDocumantation addon.
|
D'oh forgot Conduits were connected to the Soulbinds and not the Covenant itself
|
OK, great. Now this has brought me to another (I am sure basic) subject which I am confused about. How can an addon log/copy all the messages in a chat window? For example my addons display diagnostics like,
DEFAULT_CHAT_FRAME :AddMessage("hello",0,1,0); How can another addon read those messages? They are not SAY, not SYSTEM, not Channel anything. I have even tried setprinthandler(newPrintHandler) did not do anything. |
Quote:
|
I had a look, cannot run because my son is using my WoW account, anyway, it seems it uses
ChatFrame_AddMessageEventFilter and RegisterEvent Firstly, there is no event being fired when system or other messages appear in the chat frame. Also there is no way to add a filter because these messages are not channel messages. That is how I understand it and I doubt that WIM "sees" or copies those messages. Remember they are not "SAY" or "YELL" or channel, eg "TRADE" or "PARTY" - they are "System" messages or even, unclassified? I am not sure. I will wait for my son to stop playing and will have a look again at WIM. |
You might be right there. It was just a thought. It still may help you see how it may work for you. A little trial and error when your son isn't playing :P
|
You could just hook the AddMessage method:
Code:
hooksecurefunc(DEFAULT_CHAT_FRAME, "AddMessage", function(self, message, ...) |
OK, I have managed to hook onto the chat functions!
Regarding covenants and conduits, I think the below extracts your active conduits. I have just tested it with all combinations I could think of, eg some conduits taken, some not, changing paths etc. It returns a table with spell ID and spell name for each node and conduit in your chosen soulbind's path. Code:
-- ********************************************************************* |
All times are GMT -6. The time now is 05:24 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI