Download
(96 Kb)
Download
Updated: 04-06-14 02:05 PM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Updated:04-06-14 02:05 PM
Created:03-13-13 10:58 PM
Downloads:2,395
Favorites:70
MD5:
5.4
Rematch
Version: 2.3.8
by: Gello [More]
Rematch is an addon to help create, store, recall and share battle pet teams.

Its primary purpose is to store and recall battle pets for targets. For instance:
  • When you target Aki the Chosen, bring up the Rematch window and hit Save, it will record under her name the pets you have out.
  • When you return to Aki another day, you can target her, bring up the window and hit Load to bring those pets back.

New in 2.3.8
  • Update for zhTW, zhCN and deDE clients.

How to Use

You can summon the Rematch window a few ways:
  • Set a key binding in the default key binding interface.
  • Use the /rematch command.
  • Click the Rematch button in the pet journal.
  • Have 'Auto Show' checked in options and target something for which you have a saved team that's not already loaded.

As mentioned at the top, this addon's primary purpose is to save for targets. Target an NPC, click Save, and a team is saved for that target.
  • If you don't have an NPC targeted, 'Save' will turn to 'Save As' and if clicked it will ask for a name for the team.
  • If you name a team the same as a player, it will react to that player just like an NPC.
  • You can bring up a list of teams you've saved by clicking the pullout button at the bottom.

New Pet Browser

The 2.3 update has a pet browser you can open alongside the main window for help creating your teams. You can open it with the 'Pets' button on the main window, or by setting up a key binding in the default key binding interface.

Some advantages it has over the default pet journal:
  • Search will also search for abilities: 'call lightning' will list all pets that have the Call Lightning ability.
  • Search will also search abilities' text: 'blinded' will list all pets with abilities that mention Blinded pets.
  • In addition to filtering pets by type, you can filter by 'Strong vs': if you filter Strong vs Dragonkin, it will list all pets with magic attacks.
  • You can also filter to pets that are Tough vs a type of attack: filtering Tough vs Elemental will list all critters.
  • A 'Type Bar' to filter by the various types without going through the dropdown menus.
  • You can choose what levels to list from the search box: <25 will list pets below 25, =25 will list pets that are 25, 11-15 will list pets between levels 11 and 15, etc.
  • A counter at the bottom of the browser tells you how many pets are listed: search =25 and you'll see how many level 25 pets you own.
  • If Jump to Key is enabled, you can hit a letter and it will jump to the next pet that begins with that letter.

To clear filters, you can click the little X button in the search box or the type bar, or you can click the X along the bottom when filters are applied. You can also click 'Reset All' within the filters menu. Closing the browser itself will also clear most filters.

Leveling Pets

Thanks to suggestions from Behub, Aloek and others, Rematch has a robust system to make leveling pets easy.

In the pullout drawer there is a leveling slot with a shiny gold border. Within this slot you can build a queue of pets you want to level. Drag a pet to the slot or right-click a pet elsewhere (like the pet journal) and choose 'Start Leveling' to make a leveling pet.
  • Any teams saved with a leveling pet will reserve that pet's slot for future leveling pets.
  • When you see a shiny gold border around a pet in Rematch, it means that is a leveling pet.
  • As pets reach 25 (gratz!) the next pet in the leveling queue automatically becomes your new leveling pet.

Sharing Teams

There are two ways to share battle pet teams when you right-click it in the pullout drawer:
  • The Send option to send a team to someone online on your faction.
  • The Export option to create a WeakAuras-like text string that you can copy/paste.

When a user receives a team that you Send, they'll receive a popup displaying the team with the option to save it.

To use an Export string, click the Import button in the pullout drawer and paste the string. You can review the team before saving it.

If you receive or import a team that includes pets you don't have, that's fine. They'll be greyed out and only the pets you have will attempt to load. You can keep the team as is for the day when you get the pet, or you can choose to save over it if you find a suitable substitute for the missing pet.

Note: Battle.net and RealID are not supported yet, sorry. It will happen in a future update. But you can send to Name-Realm if they're on the same faction.

Miscellaneous
  • The "tooltip" for pets is a card with stats. Hold Alt to flip the card over for more about your pet. Click the pet to lock the card in place so you can mouseover abilities.
  • When a card is locked and has a wooden frame around it, you can unlock it several ways: clicking one of the little screws on the corner, clicking the pet again from where you locked it, hitting ESCape or any other action that dismisses the card.
  • You can Rename, Delete, Send or Export a team by right-clicking it in the pullout drawer.
  • When a team is selected, the little window to the right of your saved pets lists the types your team is strong against, sorted by the number of strong attacks loaded on your team. Abilities that don't attack are excluded.
  • Teams with white names have an NPC ID stored in them to focus its target awareness to that NPC ID. If they have a gold name then any target of that name is considered its target.
  • This addon will peacefully co-exist with all other battle pet addons. If the addon is installed it will pull breed information from Battle Pet Breed ID.
  • You can shift-click pets and abilities to chat like you can from the pet journal.
  • You can manually edit the names at the start of an import string to save it under a different name.
  • The Escape key will pull back most panels opened within the addon. For instance, if you pull up the Rematch window, open the drawer and go into options: hitting escape will close options and return to the drawer, hitting escape again will collapse the drawer, and hitting escape again will close the window.
  • Clicking a pet or one of its abilities will jump to that pet in the Pet Journal.
  • You can view or rearrange pets in the leveling queue by moving the mouse over the leveling slot in the pullout drawer.
  • If you have the addon Pet Battle Teams enabled, "/rematch import" will import your PBT teams into Rematch. It will convert empty slots into leveling pet slots and also turn on 'Empty Missing' option for an easier transition.

Special thanks to those providing translations to other clients:
deDE by Tonyleila at wowinterface (Leilameda at EU-Anetheron)
zhCN by Zkpjy at wowinterface
zhTW by Leg883 at curse
If you're interested in helping translate Rematch into different languages, it would be greatly appreciated! You can PM me here or on curse (or leave a comment) if you have any questions.
If you have any comments, suggestions or bugs to report feel free to post them here in the comments. Thanks!
04/06/2014 2.3.8 localization updates for zhTW, zhCN and deDE clients
04/03/2014 2.3.7 new OnlyLeveling filter option, new Close Pet Journal option, sort order saved to savedvar
03/30/2014 2.3.6 zhTW localization, fix for current zone in kun-lai summit
03/29/2014 2.3.5 options panel changed to scrollable list, deDE localization, zhCN localization
03/21/2014 2.3.4 strings separated out to localization files
03/17/2014 2.3.3 search hits highlights on pet card, typebar radio buttons turned to tabs, all three type modes can be filtered simultaneously, dropdown type menu behavior made same as typebar, fix for non-battle pets having wrong damage taken for their type, strong/tough searches no longer include non-battle pets, buttons added to browser scrollbar to scroll to top and bottom
03/09/2014 2.3.2 fix for 'start leveling' in pet journal, double-click in browser to summon/dismiss pets, browser pets marked if dead, possible fix for a scrollframe bug (when scrollbar disabled move offset to 0 if not already there)
03/08/2014 2.3.1 removed portrait mask for ability icons on default ability tooltip, jump to key only if no modifier down, added link to chat for browser pets, browser opens back up after journal closes (if it was up before), favorite filter turned into a soft filter
03/07/2014 2.3.0 new pet browser, pet card lock/mouseover mechanism, SmartAnchor system references the main window instead of relativeTo, Jump to Team changed to Jump to Key, species aren't filled when when caging a species that has multiples in a saved team, fix for abilities not linking from current pets
02/22/2014 2.2.9 new option StayForBattle, added "weak vs" row to hints window, SmartAnchor system for pet card and tooltips, reworked dropdown menu build to make options more consistent, added Swap with Next in Queue to dropdown, added pullout side panel for leveling pet/queue auto load, added option ShowSidePanel to enable side panel
02/19/2014 2.2.8 window hides when a battle starts/returns after, fix for 5.4.7 patch and revoked pets
02/11/2014 2.2.7 fix for pet names on leveling slot/queue right-click menu, pets in the journal show an icon if they're a leveling pet, leveling icon changed, when queue is empty 'Put Leveling Pet Here' still given as an option but disabled, removed highlight texture from saved pets
02/01/2014 2.2.6 when pets are loaded, there is no longer an effort to have loaded teams move into first slots, but instead to the slots they were saved, fix for dead X icon persisting on empty slots, auto load only fires once per encounter with a saved target, added AutoLoad->AutoLoadAlways option, added AutoLoad->EmptyMissing option, fixed minor xml errors, fix for current header not being draggable, pet loading more rigorous (checks if pet/ability needs loading, verifies it loaded, sets up a reload in 0.3 seconds or after battle if failed), /rematch import converts empty slots to leveling pets and turns on 'Empty Missing', /rematch import over to overwrite existing teams, /rematch help
01/29/2014 2.2.5 fix for right-click menu on leveling slot
01/29/2014 2.2.4 species ID is saved with teams and used when the pet ID is no longer valid, 'Send to End of Queue' option added for current leveling pets, full support for empty slots, petload process changed from OnUpdate one swap per frame to all swaps at once
01/25/2014 2.2.3 rename/send/export/delete moved to right-click of a team; fix for current team title not updating if pets don't change, fix for ESC sometimes failing with unexpected UISpecialFrame entry, possible fix for pet loading issue (petID check in ValidateAbilities)
01/18/2014 2.2.2 ESC system switched from UISpecialFrames to propagated keys, "Current Battle Pets" header will show last loaded team (if current pets are still last loaded team), teams can be renamed, hitting a letter over teams will jump to a team that begins with that letter, new toggle auto load binding
01/10/2014 2.2.1 changed 'frame' to 'rematch' in RematchSharedDropDown CreateFrame
01/10/2014 2.2.0 code restructured, UI/ESCable system reworked, saved pet section collapses, Lock Drawer option, esc clears selected team, auto-show/load will not dismiss the window if it was up already, 'Use Leveling Pet' added to right-click menu of current pets that can't level, save button is 'Save As' when it will ask for a name, help button and help plates
12/14/2013 2.1.5a Fix for ability icons made too big from today's update oops
12/14/2013 2.1.5 'Add to Leveling Queue' option added for journal pet menus to send to end of queue, removed 5.4.1 taint bug fix, queue only processes when out of combat/pet battle
12/06/2013 2.1.4 auto upgrade (aka best of species) option added
11/29/2013 2.1.3 leveling queue system, right-click menus added to journal current pets and leveling pets, level displayed on current pets under 25
11/07/2013 2.1.2 confirmation on save/import/receive over existing teams, confirmation on delete, option to disable confirmations, changed icon of the pullout button, new option: Auto Load->On Mouseover to auto load teams on mouseover instead of target
11/04/2013 2.1.1 caged pets replaced by their species in saved teams, fix for auto load preventing opening window, petsNeedLoading will take leveling pets into account
11/03/2013 2.1.0 removed lock system, replaced with leveling slot system; pet journal onshow HookScript instead of SetScript; removed requirement for selected team to be scrolled in to save/delete; saveAs will allow saving over a team with same name
10/29/2013 2.0.10 fix for taint issue with microbuttons: setfenv onshow to empty UpdateMicroButtons()
10/28/2013 2.0.9 removed visibility requirement to update pet journal loadouts
10/27/2013 2.0.8 fix for disconnect bug when dragging pets to a saved slot; PetBattleTeam migration moved to /rematch migrate
10/27/2013 2.0.7 rematch button on pet journal will move based on the existence of other buttons along the bottom
10/24/2013 2.0.6 if 'Auto Show' and 'Lock Window' are both checked, window will remain after pets load; all three slots can be locked; auto show/load trigger more intelligently with locked pets; added Rematch button to pet journal; ability tooltip mouse disabled; holding Shift will let you move the window while it's locked; 'Keep Companion' system reworked around UNIT_PET with a timeout
10/18/2013 2.0.5 fix for saving low level pets caused by fix from last update
10/18/2013 2.0.4 low level pets with abilities higher than they can use will load the lower tier ability instead, low level current pets only show abilities they can use, team loads taking too long will stop trying, BAG_UPDATE throttled
10/18/2013 2.0.3 rewrite: new UI, new options, custom teams, send/import/export teams
09/11/2013 1.0.5 toc update for 5.4
08/06/2013 1.0.4 fix for saved pets caged or missing
05/21/2013 1.0.3 toc update for 5.3
03/16/2013 1.0.2 added 'Auto Show' option, changed UI a bit
03/13/2013 1.0.1 initial release
Optional Files (1)
File Name
Version
Size
Author
Date
Type
2.0.beta2
29kB
10-17-13 11:09 AM
Addon


Archived Files (38)
File Name
Version
Size
Author
Date
2.3.7
96kB
Gello
04-03-14 08:30 PM
2.3.6
95kB
Gello
03-30-14 07:21 PM
2.3.5
91kB
Gello
03-29-14 03:01 PM
2.3.4
87kB
Gello
03-21-14 07:42 PM
2.3.3
81kB
Gello
03-17-14 05:01 PM
2.3.2
79kB
Gello
03-09-14 10:58 PM
2.3.1
79kB
Gello
03-08-14 02:45 PM
2.3.0
78kB
Gello
03-07-14 01:07 PM
2.2.9
63kB
Gello
02-22-14 01:08 PM
2.2.8
61kB
Gello
02-18-14 10:43 PM
2.2.7
61kB
Gello
02-11-14 07:06 PM
2.2.6
56kB
Gello
02-01-14 07:54 AM
2.2.5
56kB
Gello
01-29-14 07:57 PM
2.2.4
56kB
Gello
01-29-14 05:10 PM
2.2.3
55kB
Gello
01-25-14 11:27 AM
2.2.2
54kB
Gello
01-18-14 12:27 PM
2.2.1
53kB
Gello
01-10-14 03:07 PM
2.2.0
53kB
Gello
01-10-14 01:48 AM
2.1.5a
43kB
Gello
12-14-13 02:38 PM
2.1.5
43kB
Gello
12-14-13 11:16 AM
2.1.4
43kB
Gello
12-06-13 04:30 PM
2.1.3
42kB
Gello
11-29-13 06:40 PM
2.1.2
37kB
Gello
11-07-13 12:57 PM
2.1.1
35kB
Gello
11-04-13 10:42 AM
2.1.0
35kB
Gello
11-03-13 11:22 AM
2.0.10
32kB
Gello
10-29-13 09:00 PM
2.0.9
32kB
Gello
10-28-13 04:22 PM
2.0.8
32kB
Gello
10-27-13 06:49 PM
2.0.7
32kB
Gello
10-27-13 06:00 AM
2.0.6
32kB
Gello
10-24-13 06:16 PM
2.0.5
30kB
Gello
10-18-13 03:36 PM
2.0.4
30kB
Gello
10-18-13 10:21 AM
2.0.3
29kB
Gello
10-17-13 11:48 PM
1.0.5
6kB
Gello
09-11-13 10:06 AM
1.0.4
6kB
Gello
08-06-13 10:19 AM
1.0.3
6kB
Gello
05-21-13 11:07 AM
1.0.2
6kB
Gello
03-16-13 05:24 PM
1.0.1
6kB
Gello
03-13-13 10:58 PM


Post A Reply Comment Options
Old 04-08-14, 05:31 AM  
nickyjean
A Frostmaul Preserver

Forum posts: 275
File comments: 112
Uploads: 0
Re: Re: Battle Pet Current Stats

Originally Posted by zkpjy
Originally Posted by Tonyleila
Originally Posted by Gello
Originally Posted by zkpjy
Sorry, it should be able to see the picture! Change of address.
It's pretty trivial to get the base stats and current hp % of a pet. I'd rather not support it so posting it here and if you or anyone wants to take it and make it their own you're more than welcome:

Create the two files named in bold in a folder called "Battle Pet Current Stats" under Interface\AddOns, and the next time you run WoW you'll see those icons and numbers:
Ohh I realy love this Battle Pet Current Stats Addon! Very nice, especially the % is usefull for many pets that have % abbilitys! I agree to not implement it into rematch but as extra addon its cool. Woud love to see someone to take this over. Maybe you can post this as beta addon? Then its maybe easy to find someone to work on it? (well there is not much to work on as I see its done 99%)
Support Battle Pet Current Stats "release"
I also think this is the bee's knees but see why it might not be something the author might want to support for changes. I'm just glad that Gello put the code in here.

If it helps, I have an old app called baud auction. As soon as it has a glitch because of an update, I put it in the addon help forum here, and someone always helps me with the code which I can cut and paste into it and then it works fine. So if all else fails there's that.
__________________
[IMG]http://www.************/sig/5378.jpg[/IMG][IMG]http://www.wowinterface.com/forums/%3Cimg%20src=%22http://www.************/sig/5378.jpg%22%20border=%220%22%3E[/IMG]
nickyjean is offline Report comment to moderator  
Reply With Quote
Old 04-06-14, 02:10 PM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 424
File comments: 296
Uploads: 85
Today's update (2.3.8) is just translations of new strings for non-English clients. If you're not on one of those clients, no need to download.

The next planned update will be the leveling queue overhaul.
Gello is offline Report comment to moderator  
Reply With Quote
Old 04-06-14, 09:47 AM  
sezz
A Murloc Raider

Forum posts: 4
File comments: 5
Uploads: 0
Originally Posted by Gello
A team with a saved npc ID has its name colored in white and will be restricted to that version of the npc only. A team without an npc ID will be colored in gold and will load on any version of that npc.
Didn't know that this is already implemented. That explains why all my imported teams are yellow and only one is white. I also just noticed that the help button also explains that - didn't click it before, my fault, sorry.

Originally Posted by Gello
Two ways to add an npc ID to your existing teams after they've been created/imported: (...)
Thanks, I'll just load and save the teams next time I'm there. No need for an extra "add NPC id" button for this, as it only needs to be done once.

Originally Posted by Gello
That's a good idea. I'll add something even if it's to pop the window up to show that pets are dead/missing.
That would be great, I sometimes forget to resurrect the pets from my explode team after using them
sezz is offline Report comment to moderator  
Reply With Quote
Old 04-05-14, 10:00 PM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 424
File comments: 296
Uploads: 85
Originally Posted by sezz
Is it possible to add map IDs for some NPCs/tamers, so auto-loading teams only loads them when we are in the correct zone? Some of them can be found in more than one place (Chen Stormstout is a good example, that guy is everywhere. Also Blingtron 4000 of course) and it's a little bit annoying when auto-show is enabled.
Actually, if you save a team with the npc targeted, it saves their npc ID so a table isn't needed. Chen Stormstout and Blingtron 4000 have a unique ID for their celestial tournament versions. A team with a saved npc ID has its name colored in white and will be restricted to that version of the npc only. A team without an npc ID will be colored in gold and will load on any version of that npc.

Two ways to add an npc ID to your existing teams after they've been created/imported:

1. When you're visiting the npc next, load the team and save it with that npc targeted. The listed name should turn from gold to white.

2. If you can't get to that npc (like you've already done tournament for the week), you can manually add an id by first exporting the team (right-click team and export) and them import it and replace the first 0 with their npc ID. For instance if your Blingtron team exports as:

Blingtron 4000:0:868:118:513:564:244:202:362:159:1124:113:178:179:

if you replace that first 0 with 71933 (Blingtron's celestial npc ID), and import this:

Blingtron 4000:71933:868:118:513:564:244:202:362:159:1124:113:178:179:

it will save the npc ID with the team.

I could probably add a right-click to manually add an NPC id too.

Oh, and another feature request: It would be great to get a message when one of the pets is dead/missing health when auto-show is disabled and auto-load on mouseover in enabled (or just show the Rematch frame).
That's a good idea. I'll add something even if it's to pop the window up to show that pets are dead/missing.
Last edited by Gello : 04-05-14 at 10:59 PM.
Gello is offline Report comment to moderator  
Reply With Quote
Old 04-05-14, 09:05 PM  
sezz
A Murloc Raider

Forum posts: 4
File comments: 5
Uploads: 0
I recently switched to Rematch because of the leveling slot (and because /rematch import made it easy, all my teams already had the correct names).

Is it possible to add map IDs for some NPCs/tamers, so auto-loading teams only loads them when we are in the correct zone? Some of them can be found in more than one place (Chen Stormstout is a good example, that guy is everywhere. Also Blingtron 4000 of course) and it's a little bit annoying when auto-show is enabled.

I didn't have a look at your code, but this is the table (NPC ID - Map ID(s)) I used for my small PetBattleTeams team switching module, some of them are not needed but I just added them all:

Code:
	-- Cataclysm Tamers
	[66815] = 640, -- Bordin Steadyfist
	[66824] = 720, -- Obalis

	-- Pandaria Tamers
	[68465] = {809, 811}, -- Thundering Pandaren Spirit
	[66738] = 809, -- Courageous Yon
	[68463] = 810, -- Burning Pandaren Spirit
	[66918] = 810, -- Seeker Zusshi
	[66741] = 811, -- Aki the Chosen
	[66739] = 858, -- Wastewalker Shu
	[68462] = 858, -- Flowing Pandaren Spirit
	[66733] = 857, -- Mo'ruk
	[66734] = 807, -- Farmer Nishi
	[66730] = 806, -- Hyuna of the Shrines
	[68464] = 806, -- Whispering Pandaren Spirit

	-- Beasts of Fable
	[68564] = 809, -- Dos-Ryga
	[68563] = 809, -- Kafi
	[68562] = 810, -- Ti'un the Wanderer
	[68559] = 811, -- No-No
	[68558] = 858, -- Gorespine
	[68560] = 807, -- Greyhoof
	[68566] = 857, -- Skitterer Xi'a
	[68561] = 807, -- Lucky Yi
	[68565] = 806, -- Nitun
	[68555] = 806, -- Ka'wi the Gorger

	-- Others
	[73626] = 951, -- Little Tommy Newcomer
	[67370] = 823, -- Jeremy Feasel
	
	-- Celestial Tournament
	[71926] = 955, -- Lorewalker Cho
	[71934] = 955, -- Dr. Ion Goldbloom
	[71929] = 955, -- Sully "The Pickle" McLeary

	[71931] = 955, -- Taran Zhu
	[71927] = 955, -- Chen Stormstout
	[71924] = 955, -- Wrathion

	[71932] = 955, -- Wise Mari
	[71933] = 955, -- Blingtron 4000
	[71930] = 955, -- Shademaster Kiryn

	[72009] = 955, -- Fu-Xu, Cub of Xuen
	[72285] = 955, -- Chi-Chi, Hatchling of Chi-Ji
	[72290] = 955, -- Zao, Calfling of Niuzao
	[72291] = 955, -- Yu'la, Broodling of Yu'lon
Oh, and another feature request: It would be great to get a message when one of the pets is dead/missing health when auto-show is disabled and auto-load on mouseover in enabled (or just show the Rematch frame).

PS: Love the ability search feature!
sezz is offline Report comment to moderator  
Reply With Quote
Old 04-04-14, 06:55 AM  
zkpjy
A Kobold Labourer
 
zkpjy's Avatar

Forum posts: 0
File comments: 10
Uploads: 0
Re: Battle Pet Current Stats

Originally Posted by Tonyleila
Originally Posted by Gello
Originally Posted by zkpjy
Sorry, it should be able to see the picture! Change of address.
It's pretty trivial to get the base stats and current hp % of a pet. I'd rather not support it so posting it here and if you or anyone wants to take it and make it their own you're more than welcome:

Create the two files named in bold in a folder called "Battle Pet Current Stats" under Interface\AddOns, and the next time you run WoW you'll see those icons and numbers:
Ohh I realy love this Battle Pet Current Stats Addon! Very nice, especially the % is usefull for many pets that have % abbilitys! I agree to not implement it into rematch but as extra addon its cool. Woud love to see someone to take this over. Maybe you can post this as beta addon? Then its maybe easy to find someone to work on it? (well there is not much to work on as I see its done 99%)
Support Battle Pet Current Stats "release"
zkpjy is offline Report comment to moderator  
Reply With Quote
Old 03-30-14, 03:50 AM  
zkpjy
A Kobold Labourer
 
zkpjy's Avatar

Forum posts: 0
File comments: 10
Uploads: 0
For 3.30.2014_v2.3.5 rematch zhCN.lua

http://pan.baidu.com/s/1kToLYdh

Hope to join the search function on the skills of pet. Support at the same time search pet with two skills

Thank you!

For 4.4.2014_V2.3.7 rematch zhCN.lua
http://pan.baidu.com/s/1pJx1zv1
Last edited by zkpjy : 04-04-14 at 03:14 AM.
zkpjy is offline Report comment to moderator  
Reply With Quote
Old 03-29-14, 03:46 PM  
Tonyleila
A Frostmaul Preserver
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 279
File comments: 1228
Uploads: 31
Battle Pet Current Stats

Originally Posted by Gello
Originally Posted by zkpjy
Sorry, it should be able to see the picture! Change of address.
It's pretty trivial to get the base stats and current hp % of a pet. I'd rather not support it so posting it here and if you or anyone wants to take it and make it their own you're more than welcome:

Create the two files named in bold in a folder called "Battle Pet Current Stats" under Interface\AddOns, and the next time you run WoW you'll see those icons and numbers:
Ohh I realy love this Battle Pet Current Stats Addon! Very nice, especially the % is usefull for many pets that have % abbilitys! I agree to not implement it into rematch but as extra addon its cool. Woud love to see someone to take this over. Maybe you can post this as beta addon? Then its maybe easy to find someone to work on it? (well there is not much to work on as I see its done 99%)
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
Last edited by Tonyleila : 03-29-14 at 04:00 PM.
Tonyleila is offline Report comment to moderator  
Reply With Quote
Old 03-28-14, 06:16 PM  
zkpjy
A Kobold Labourer
 
zkpjy's Avatar

Forum posts: 0
File comments: 10
Uploads: 0
Hi,Gello!
Thank you very much) Success!!
Has been published in China maximum WOW fan site NGA forum. In time, thank you!

http://nga.178.com/read.php?tid=6966921&page=e
Last edited by zkpjy : 03-28-14 at 07:49 PM.
zkpjy is offline Report comment to moderator  
Reply With Quote
Old 03-28-14, 04:19 PM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 424
File comments: 296
Uploads: 85
Re: Re: Re: Re: Re: Re: Re: Re: Localisation?

Originally Posted by zkpjy
Sorry, it should be able to see the picture! Change of address.
It's pretty trivial to get the base stats and current hp % of a pet. I'd rather not support it so posting it here and if you or anyone wants to take it and make it their own you're more than welcome:

Create the two files named in bold in a folder called "Battle Pet Current Stats" under Interface\AddOns, and the next time you run WoW you'll see those icons and numbers:

Battle Pet Current Stats.toc
Code:
## Interface: 50400
## Title: Battle Pet Current Stats
## Notes: Displays the stats of battle pets in play during a pet battle.
## Version: 1.0.0
Battle Pet Current Stats.lua
Battle Pet Current Stats.lua
Code:
local frame = CreateFrame("Frame")
frame.notSetUp = true
frame.texCoords = {Power={0,.5,0,.5}, Speed={0,.5,.5,1}, Health={.5,1,.5,1}}

-- PetBattleUI appears to load very early, but not guaranteed: check if loaded
-- at PLAYER_LOGIN to setup, and then watch for ADDON_LOADED until setup turns it off
frame:SetScript("OnEvent",function(self,event,...)
  if self.notSetUp and IsAddOnLoaded("Blizzard_PetBattleUI") then
    self:SetUpWidgets() -- runs once when PetBattleUI known to be loaded
  else
    self:UpdateWidgets() -- runs every other time (events registered in setup)
  end
end)
frame:RegisterEvent("ADDON_LOADED")
frame:RegisterEvent("PLAYER_LOGIN")

-- sets up a icon+text widget
-- parent: PetBattleFrame.ActiveAlly or PetBattleFrame.ActiveEnemy
-- widgetType: "Health" "Power" or "Speed"
-- anchor: the corner of the parent to anchor the top of the widget's icon
-- xoff: x-offset from the anchor
function frame:CreateWidget(parent,widgetType,anchor,xoff)
  local widget = CreateFrame("Frame",nil,parent)
  widget:SetSize(16,16)
  widget.icon = widget:CreateTexture(nil,"OVERLAY")
  widget.icon:SetAllPoints(true)
  widget.icon:SetTexture("Interface\\PetBattles\\PetBattle-StatIcons")
  if frame.texCoords[widgetType] then
    widget.icon:SetTexCoord(unpack(frame.texCoords[widgetType]))
  end
  widget.text = widget:CreateFontString(nil,"OVERLAY","GameFontHighlightSmall")
  widget.text:SetPoint("LEFT",widget.icon,"RIGHT",2,0)
  widget:SetPoint("TOP",parent,anchor,xoff,10)
  return widget
end

-- creates widgets and registers for events
function frame:SetUpWidgets()
  self.notSetUp = nil
  self.widgets = {}
  for i=1,2 do
    self.widgets[i] = {}
    local parent = i==1 and PetBattleFrame.ActiveAlly or PetBattleFrame.ActiveEnemy
    local anchor = i==1 and "BOTTOMRIGHT" or "BOTTOMLEFT"
    local offset = i==1 and -180 or 50
    self.widgets[i].Health = self:CreateWidget(parent,"Health",anchor,offset)
    self.widgets[i].Power = self:CreateWidget(parent,"Power",anchor,offset+55)
    self.widgets[i].Speed = self:CreateWidget(parent,"Speed",anchor,offset+110)
  end
  self:UnregisterEvent("ADDON_LOADED")
  self:RegisterEvent("PET_BATTLE_AURA_APPLIED")
  self:RegisterEvent("PET_BATTLE_AURA_CHANGED")
  self:RegisterEvent("PET_BATTLE_AURA_CANCELED")
  self:RegisterEvent("PET_BATTLE_HEALTH_CHANGED")
  self:RegisterEvent("PET_BATTLE_PET_CHANGED")
  self:RegisterEvent("PET_BATTLE_PET_ROUND_PLAYBACK_COMPLETE")
end

-- updates both ally and enemy active pet stats
-- NOTE: the stat is the same as the one on the tooltip! It does NOT adjust
-- based on auras or pet type "racials" like flyer's speed over 50% life.
function frame:UpdateWidgets()
  for i=1,2 do
    local pet = C_PetBattles.GetActivePet(i)
    local health = C_PetBattles.GetHealth(i,pet)
    local maxHealth = C_PetBattles.GetMaxHealth(i,pet)
    self.widgets[i].Health.text:SetText(format("%.0f%%",health*100/maxHealth))
    self.widgets[i].Power.text:SetText(C_PetBattles.GetPower(i,pet))
    self.widgets[i].Speed.text:SetText(C_PetBattles.GetSpeed(i,pet))
  end
end
Make special note of the "NOTE:" near the end there: it gets the stat that you also see on the tooltip. It doesn't adjust speed due to auras or flyers over 50% life or anything like that. I have an idea how it'd be accomplished but it'd take a lot more time than I have to spend on this sorry!

Hopefully someone can take it and make it their own and modify it to adjust due to auras and stuff.
Gello is offline Report comment to moderator  
Reply With Quote
Old 03-28-14, 12:48 PM  
zkpjy
A Kobold Labourer
 
zkpjy's Avatar

Forum posts: 0
File comments: 10
Uploads: 0
Re: Re: Re: Re: Re: Re: Re: Localisation?

Originally Posted by Gello
Originally Posted by zkpjy
Hello, Gello!
Can write a addons, to achieve this function? thank you very much!!
I'm not sure what you're asking, sorry.

Hopefully I'll have something posted this weekend. Localization has been a lot more work than expected.
Sorry, it should be able to see the picture! Change of address.
Last edited by zkpjy : 03-28-14 at 12:51 PM.
zkpjy is offline Report comment to moderator  
Reply With Quote
Old 03-28-14, 11:25 AM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 424
File comments: 296
Uploads: 85
Re: Re: Re: Re: Re: Re: Localisation?

Originally Posted by zkpjy
Hello, Gello!
Can write a addons, to achieve this function? thank you very much!!
I'm not sure what you're asking, sorry.

Hopefully I'll have something posted this weekend. Localization has been a lot more work than expected.
Gello is offline Report comment to moderator  
Reply With Quote
Old 03-27-14, 02:59 PM  
zkpjy
A Kobold Labourer
 
zkpjy's Avatar

Forum posts: 0
File comments: 10
Uploads: 0
Thumbs up Re: Re: Re: Re: Re: Localisation?

Hello, Gello!
Can write a addons, to achieve this function? thank you very much!!
Last edited by zkpjy : 03-28-14 at 12:51 PM.
zkpjy is offline Report comment to moderator  
Reply With Quote
Old 03-23-14, 10:35 AM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 424
File comments: 296
Uploads: 85
Re: Re: Re: Re: Localisation?

Originally Posted by zkpjy
Hello, Gello!
This is China localized translation, thank you.

http://pan.baidu.com/s/1pekxg
Thanks! I'll be sure to include this too.

Originally Posted by Tonyleila
Code:
	REMATCH_START_LEVELING = "Start Leveln"
This is showing up as black square ingame there is no text.

Code:
	REMATCH_WITH_THIS = "Damit:"
	REMATCH_DAMAGE_TAKEN = "Schaden genommen"
	REMATCH_FROM = "von"
Where are this used? Can't find them ingame

Also Side Pannel is missing a translation for auto load = auto laden

So here it is:
http://pastebin.com/VzRRf7yz
I have some time to work on this. Thanks for all your help.

The "with this" is in the confirmation window when you want to save over a team when pets change (checked and it looks good), and "Damage Taken" and "from" are on the back of the pet card at the bottom. (hold ALT to flip the card over or mouseover an icon at the top of the card when it's locked) I'll probably scoot the icons over to the right a bit more so Schaden genommen is more centered.

That blank text on Start Leveling is a bug on enUS clients too woops. (I checked them all via the pet browser and not the journal.)

I'm going to take some extra time to rework that options panel a bit, to give more room for text. But I'll probably flesh out the strings more from your feedback first so everything is covered.
Gello is offline Report comment to moderator  
Reply With Quote
Old 03-23-14, 08:33 AM  
zkpjy
A Kobold Labourer
 
zkpjy's Avatar

Forum posts: 0
File comments: 10
Uploads: 0
Re: Re: Re: Re: Re: Localisation?

Hello, Gello!
This is China localized translation, thank you.

http://pan.baidu.com/s/1pekxg
Last edited by zkpjy : 03-23-14 at 08:36 AM.
zkpjy is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: