First, I got not a single result while searching for "alchcheck", and second I hope this is the right place to post.
I'm responsible in my guild for the dkp-system. Our Raidleader has just added new rules, so that everybody who is not taking pots and buffood on bossfights, will get some "adjustements" on his dkp.
So I searched a little bit and found the Addon "AlchCheck", what just looked like to be the thing I wanted. But the apprehension of our raidleader was, that our members would get behind the method we are checking pots and food and would try to avoid it by taking the cheap pots, which are no improvements for the raid.
So I edited the lua and deleted the lines with all the "lowlevel" pots, so it is only checking for "good" pots. Next thing I did, I edited the code, so that the output is not in party/raidchannel but in an selfcreated channel. I also translated the relevant strings in the locale-deDE.lua so that there are no complications if someone is running this addon with an german client.
Until this point it works just like I want it to.
The problem what I have now is the food. Every single food gives the buff "Well Fed", even if it is a level-5-or-sth-buff with +2 stam/spirit. My idea now was, that in some way the tooltip of this Well-Fed-Buff is scanned for the numbers 20, 23, 30 and 44, because this are the most common raid-food we use. For example 20 Agility/Strength/stamina, 30 Stamina, 23 Spelldmg and 44 Healing.
I found the Library Gratuity-2.0 (Tooltip scanning library), I think this is the thing I'm searching for. By the help of a friend I've added the path into the AlchCheck.toc and the Lib itself into the Libs-Subfolder inside the Alchcheck-addon-folder. I also added the Line local GT = AceLibrary("Gratuity-2.0") into the alchcheck.lua, so I can call the funcions of the lib. But this is the point where the knowledge of my friend an mine stops... and I need your help :)
The only reasonable point in the code where the addon is checking the buffood is this:
135 if temp_list==nil then
136 for q,w in pairs(AlchFood) do
137 if cur_buff==w then temp_list,_,_,_,_,temp_list=UnitBuff(indx,b)
138 end end end
So if there is anyone (maybe the author him/herself?) who can help me with coding this so the function is not checking the buffname only but the tooltip for the strings 20, 23, 30 and 44, I would owe you a lot :D
Thanks a lot in advise (and excuse my bad english, I am german),