elseif (event == "CHAT_MSG_COMBAT_XP_GAIN") then local _,_,_,killEXP,_ = string.find(a1, LWR_STR_COMBATXPNOTE) if killEXP then LWR_prevXPkill = tonumber(killEXP) end if LWR_prevXPkill < 0 then LWR_prevXPkill = 0 end end
in my localization.lua
LWR_STR_COMBATXPNOTE = "(.*) dies, you gain (%d+) experience."
it may very well be possible that i have more then one _ in the beginning of my call handler but after a lot of testing this is the string that worked for what i was needing called.
credit goes to the author of titanpanel XP of whom i got the idea that it was possible to seperate xp gains from kill gains and based the majority of the code off of.
thanks again for all your guys help! with this line completed i can officially call my addon ready!:D (even if it is just a rehash :P )