Thread Tools Display Modes
11-29-10, 05:29 PM   #1
Canities
A Wyrmkin Dreamwalker
Join Date: Oct 2007
Posts: 54
Pet XP Bar

Evenin all,
Does anyone know if are an working pet experiance bars?
I've tried all the ones on both here and curse but they all seem to churn out errors (sad panda face). Even PetXPBarCataclysmBeta which is supposed to work with 4.0.1 throws out errors.

Any suggestions?

Cani
  Reply With Quote
11-29-10, 06:56 PM   #2
brotherhobbes
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 313
this says it shows pet xp on a data broker display:
http://www.wowinterface.com/download...wPetStats.html
  Reply With Quote
11-30-10, 02:24 PM   #3
Canities
A Wyrmkin Dreamwalker
Join Date: Oct 2007
Posts: 54
Originally Posted by brotherhobbes View Post
this says it shows pet xp on a data broker display:
http://www.wowinterface.com/download...wPetStats.html
As i said ive tried all on here and curse. That addon runs with no errors but shows no XP for any of my low level pets. Maybe i can do a hack'n'slash with a xpbar addon to see if blizzard have changed the api enought to make this not possible.
  Reply With Quote
11-30-10, 03:39 PM   #4
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
Honestly, I think you could just rip off the Blizzard pet XP bar. Why make it harder than it is.

Code:
PetPaperDollFrameExpBar:ClearAllPoints()
PetPaperDollFrameExpBar:SetParent(newparent)
PetPaperDollFrameExpBar:SetPoint(new position)
PetPaperDollFrameExpBar:SetSize(newwidth, newheight)
select(1, PetPaperDollFrameExpBar:GetRegions()):Hide()
select(2, PetPaperDollFrameExpBar:GetRegions()):Hide()
and additionally:

Code:
PetPaperDollFrameExpBar:SetStatusBarTexture(newtexture)
PetPaperDollFrameExpBar:SetStatusBarColor(newcolor)
  Reply With Quote
11-30-10, 06:09 PM   #5
Canities
A Wyrmkin Dreamwalker
Join Date: Oct 2007
Posts: 54
Originally Posted by Haleth View Post
Honestly, I think you could just rip off the Blizzard pet XP bar. Why make it harder than it is.
Haleth,
I like your thinking, and have tried this but it looks, well fugly...
I did find this code on wowprogramming.com:
Code:
	function PetExpBar_Update()
		local currXP, nextXP = GetPetExperience();
		PetPaperDollFrameExpBar:SetMinMaxValues(min(0, currXP), nextXP);
		PetPaperDollFrameExpBar:SetValue(currXP);
	end
which i'm tempted to try hack'n'slash into a small and simple addon to look like the modified version of the saftXPbar you use in your UI. Unless i just create a frame with backdrop for what you suggested to sit on top off.
  Reply With Quote
11-30-10, 06:58 PM   #6
Canities
A Wyrmkin Dreamwalker
Join Date: Oct 2007
Posts: 54
So after Haleth's advice, trying to make this code work and failing, i have this other code that works in creating a pet XP bar (see attchement).
Attached Thumbnails
Click image for larger version

Name:	petXPbar.jpg
Views:	644
Size:	38.5 KB
ID:	5382  

Last edited by Canities : 11-30-10 at 07:51 PM. Reason: modified pastebin link
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Pet XP Bar


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off