XPBarNone
XPBarNone
XPBarNone is an XP bar with handy feature set.
Description
Lightweight XP bar with a nice set of features, the text display is customisable, the default setting resembles the following:
Exp: 1234/56789 (7586) :: 12.5% through level 34 :: 1234 XP left :: 12 kills to level
Menus
You can access two different menus to configure XPBarNone.
Shift + Right Click: This accesses the main configuration menu. It's the same menu you could get through the slash commands, but in a nice graphical form.
Control + Right Click: This menu allows you to select which faction you would like to watch on your XP Bar.
Slash Commands
/xpbarnone or /xpbn
-
View User Profile
-
Send Message
Posted Nov 10, 2010self.diffXP = (prevXP ~= 0) and (self.cXP - prevXP) or 0
A better approach to estimating the KTL would be to only use the last X amount of XP gains instead of all of them. If you use all of them, then you're also taking into account minimal XP gains and XP gained from quests. I personally think flushing lastXPValues after it reaches an array size of 24 would give a more accurate result, although you may wish to increase or decrease this value. Anyways, after the suggested changes, UpdateXPData() should look like this:
function XPBarNone:UpdateXPData()
local prevXP = self.cXP or 0
self.cXP = UnitXP("player")
self.nXP = UnitXPMax("player")
self.remXP = self.nXP - self.cXP
self.diffXP = (prevXP ~= 0) and (self.cXP - prevXP) or 0
-- Flush lastXPValues if it contains more than X amount of values. This will give a more accurate result.
if #lastXPValues == 24 then
lastXPValues = {}
sessionkills = 0
end
if self.diffXP > 0 then
lastXPValues[math_mod(sessionkills, 10) + 1] = self.diffXP
sessionkills = sessionkills + 1
end
self:UpdateXPBar()
end
-
View User Profile
-
Send Message
Posted Nov 28, 2010-
View User Profile
-
Send Message
Posted Aug 31, 2011-
View User Profile
-
Send Message
Posted Nov 6, 2010-
View User Profile
-
Send Message
Posted Dec 12, 2010-
View User Profile
-
Send Message
Posted Oct 24, 2010-
View User Profile
-
Send Message
Posted Jun 25, 2010-
View User Profile
-
Send Message
Posted Oct 13, 2010-
View User Profile
-
Send Message
Posted Jun 21, 2010-
View User Profile
-
Send Message
Posted Jun 11, 2010Thanks.
-
View User Profile
-
Send Message
Posted May 10, 2010-
View User Profile
-
Send Message
Posted Apr 15, 2010"Interface\AddOns\XPBarNone\Core.lua:638: Cannot find a library instance of "AceDBOptions-3.0"."
I had to pull a copy of that part of the library out of Ace3 and put it in my XPBN addon folder, this needs to be fixed in future downloads.
-
View User Profile
-
Send Message
Posted Mar 7, 2010is it possible to display the text values for leveling xp only on mouse over?
thanks
-
View User Profile
-
Send Message
Posted Dec 24, 2009-
View User Profile
-
Send Message
Posted Dec 10, 2009-
View User Profile
-
Send Message
Posted Dec 10, 2009I want to make the bar very thin and position it at the botton of the screen, I can't do this any more.
Downgrading until this is fixed
-
View User Profile
-
Send Message
Posted Dec 9, 2009-
View User Profile
-
Send Message
Posted Dec 7, 2009-
View User Profile
-
Send Message
Posted Dec 7, 2009-
View User Profile
-
Send Message
Posted Dec 1, 2009any chance this will ever be upgraded to use Ace3?
its the last ace2 mod I have and because of that it uses nearly 1MB, but since there is no other mod like it, I keep on usin it =)