in your browser.
Addon help, Kills and XP
Return to board index
I am writing an addon to tell if I am getting experience for kills but cant seem to find the right event.
UNIT_DIED event fires before CHAT_MSG_COMBAT_XP_GAIN and PLAYER_XP_UPDATE so not sure how to go about programming this.
Basically I want to know if I get to far away from my party member and I am no longer getting experience from his kills.
local x = UnitXP("player") -- Define the experience baseline
local function InRange(event) -- Define the function and pass it the event
if event == "UNIT_DIED" then
if UnitXP("player") ~= x then -- Compare exp before and after kill
fireAlert() -- Whatever your alert function is
x = UnitXP("player") -- Reset the experience baseline
Just how I would do it. I'm sure there are a hundred or more ways and several better than my own, but I'm pretty sure this would work.
You are not logged in. Please
to post a reply or
if you don't already have an account.
Connect with Wowhead:
Featured Game Sites
Final Fantasy XI
Join the world's largest
MMO gaming network.
Sign up now!
Connect With ZAM
© 2017 ZAM Network LLC