1. Hey guys.

    Im trying to extract data from my tradeskill chatframe. I want to count the procs i have on the different flasks(Alchemy) - But im way off right now.

    This is what i got right now - Im doing this to learn, and thought that this would be "Fairly" easy to do. ;)

     function TestAddon_OnEvent()
        if(event == "CHAT_MSG_TRADESKILLS") then
         startPos, endPos, me, flask, procs = string.find(arg1, "(.+) create: (.+)x(.+)");
            if(me == "You") then
            DEFAULT_CHAT_FRAME:AddMessage("Something Happened in the tradeskillchat_ChatFrame4");
            DEFAULT_CHAT_FRAME:AddMessage("Flask: " .. flask .. " Procs: " .. procs);
            end
        end
     end
    

    I think im not even going down the right path, but any help is appreciated. Im buying this book, as soon as possible!

    EDIT: ............................................................

    This is what i came up with for now, is there any better way to get the data, than the way im doint it now?

     function Frame1_OnEvent()
        if (event == "CHAT_MSG_LOOT") then
            local myLoot = { strsplit(" ", arg1) };
            if(myLoot[2] == "create:") then
            startPos, endPos, meItemFlask, meProcs = string.find(arg1, "You create: (.+)x(.+)");
                if(meProcs) then
                meProcs = strsub(meProcs, 1, strlen(meProcs)-1);
                    Overskrift:SetText("");
                    Overskrift:SetText("Flask: " .. meItemFlask .. "- ! -" .. meProcs);
                end
            end
        end 
     end