A few months ago, I wrote EnchantList, that addon allowed people to whisper you !enchant followed by keywords, and get back a list of enchantments you can do, matching the keywords. GemList was created a little later, based on EnchantList, and was doing the same for Jewelcrafting.
CraftList2 is a rewrite from almost scratch of those. It now works for every profession in the game and is handling 3 triggers:
!enchant <any combination of keywords and itemlinks>
example: !enchant [Ashbringer] 35 heal
Originally posted by DJZod I'm having the same problem. /clist and /craftlist both do nothing and there is no response given when "!craft" whispers are received.
Pour faire fonctionner CraftList2 avec la dernière version de WIM
Chercher dans CraftList2.lua:
Code:
if IsAddOnLoaded("WIM") then
self:Hook("WIM_ChatFrame_MessageEventHandler",function(event, internalEvent)
if arg1 and arg1~="" then
if (string.sub(arg1,1,string.len(prefix_ench))==prefix_ench and not self.db.realm.showrequests and self.db.realm.trigger_ench and event=="CHAT_MSG_WHISPER") then return end
if (string.sub(arg1,1,string.len(prefix_gem))==prefix_gem and not self.db.realm.showrequests and self.db.realm.trigger_gem and event=="CHAT_MSG_WHISPER") then return end
if (string.sub(arg1,1,string.len(prefix_other))==prefix_other and not self.db.realm.showrequests and self.db.realm.trigger_other and event=="CHAT_MSG_WHISPER") then return end
if (string.sub(arg1,1,string.len(prefix_answers))==prefix_answers and not self.db.realm.showanswers and event=="CHAT_MSG_WHISPER_INFORM") then return end
end
return self.hooks["WIM_ChatFrame_MessageEventHandler"](event, internalEvent)
end,
true)
end
Remplacer par :
Code:
if IsAddOnLoaded("WIM") then
self:Hook("WIM_MessageEventHandler",function(event, internalEvent)
if arg1 and arg1~="" then
if (string.sub(arg1,1,string.len(prefix_ench))==prefix_ench and not self.db.realm.showrequests and self.db.realm.trigger_ench and event=="CHAT_MSG_WHISPER") then return end
if (string.sub(arg1,1,string.len(prefix_gem))==prefix_gem and not self.db.realm.showrequests and self.db.realm.trigger_gem and event=="CHAT_MSG_WHISPER") then return end
if (string.sub(arg1,1,string.len(prefix_other))==prefix_other and not self.db.realm.showrequests and self.db.realm.trigger_other and event=="CHAT_MSG_WHISPER") then return end
if (string.sub(arg1,1,string.len(prefix_answers))==prefix_answers and not self.db.realm.showanswers and event=="CHAT_MSG_WHISPER_INFORM") then return end
end
return self.hooks["WIM_MessageEventHandler"](event, internalEvent)
end,
true)
end
Originally posted by Noxious i'm getting the following error, is this a problem with clist or WIM? as they both worked fine before, this has only started to happen recently
Code:
Error: AceHook-2.1: Attempt to hook a non-existant function "WIM_ChatFrame_MessageEventHandler"
AddOn: CraftList2
File: CraftList2.lua
Line: 1059
Count: 1
Originally posted by Boedicia When customers whisper me with the command !enchant, they get spammed many times with the same results over and over again until they eventually put me on ignore. Does anyone else get this bug?
I havent had anyone report this to me when I use it, and plenty of my guildmates still forget to put [itemlink] and I get !enchant whispers all the time.
I wonder if they you and/or your customers have an antiSpam mod that is whispering back to you, triggering CL2 again, which you cant see.
When customers whisper me with the command !enchant, they get spammed many times with the same results over and over again until they eventually put me on ignore. Does anyone else get this bug?
I love this addon. I have a feature request, though.
Many people don't understand how to use this addon, despite me telling them. Might be nice to be able to use CL2 to link stuff to other people....example...
Mycustomer: Can you link me mats for agi to gloves?
Me: sure
Me: /el Mycustomer agility gloves
/el could stand for enchantlink
Would make it a lot easier for the people who refuse to read the "whisper me !enchant for mats" portion of my trade spam
Can you make an option to allow specific items for sale? For example if I have a [Primal Life] and want to sell it for a specific amount. !mats for show you what I have for mats.
Maybe a window where it would show you what items you have on you and in your bank, and you could put specif prices next to the items.
I sell a lot of items and this would make my life soooo much easier. Plus I would not have to use the AH and could save TONS on deposits and fees!