This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Addon help, Kills and XP
Post Reply
Return to board index
Post by
355167
This post was from a user who has deleted their account.
Post by
TheReal
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
end
end
x = UnitXP("player") -- Reset the experience baseline
end
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.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.