I tried to expand EnchantList to Guildchat and failed...
Ive used another EnchantList addon for quite along time (~since july) which worked in every channel especially guildchat, so my guild is quite used to it.
But it doesnt offer some of the features from EnchantList which i like quite alot but so far i didnt want to change due to the missing gchat triggering.
My idea was:
self:Hook("ChatFrame_MessageEventHandler", "WhisperHandler", true)
if self.db.account.autoscan then self:RegisterEvent("CRAFT_SHOW") end
if arg1 and arg1~="" then
if (string.sub(arg1,1,string.len(chatprefix))==chatprefix and not self.db.account.showincmessages and event=="CHAT_MSG_WHISPER" or event=="CHAT_MSG_GUILD") then
if ( string.sub(arg1,1,string.len(self.db.account.chatprefix2))==self.db.account.chatprefix2 and not self.db.account.showexmessages and event=="CHAT_MSG_WHISPER" or event=="CHAT_MSG_GUILD") then
And copied the function EnchantList:CHAT_MSG_WHISPER
[whole big function that is unchanged]
Marked changes in red!
The response if someone types it in gchat etc. works as i wanted, but sadly iam missing the guildchat now it doesnt show anymore in my chat window :-(
Could you tell me where you let the Whisper message show again so i can expand it to guildchat aswell? Because iam a noob when it comes to programming :-(
EnchantList now has a "Watch Guildchat and spam there as soon as anybody is writing "!enchant" in there...
I really miss the option to fully DISABLE Guild-Chat watching/posting, since I never really need posting anything in the Guildchat. So, I don't care if EnchantList has the functionality to post and watch in teh Guildchat, but please, give us an option to disable it!
I just started using this AddOn, and I have one suggestion:
Would it be possible to add a sale value to enchants? This AddOn is pretty useful for guilds, but it can also be useful for people trying to sell their services. If there could just be some simple way to assign a money value to each enchant, so when someone gets a !enchant response, it might look something like "[Enchant Weapon - Mongoose] (39g99s99c)" (with zero values of each coin hidden), and perhaps having an option to hide sale values from those in the same guild, or perhaps (again), having a list of player names and/or guild names that would not see sale values as well.