Download
(17 Kb)
Download
Updated: 08-18-14 03:22 PM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Updated:08-18-14 03:22 PM
Created:12-18-12 03:12 AM
Downloads:1,322
Favorites:23
MD5:
5.4
PetBattleAutoForfeit  Updated less than 3 days ago!
Version: 5.4.8.29
by: Phanx [More]
Quickly forfeit pet battles with no available upgrades.
Schlägt für die sofortige Aufgeben vor, wenn ein Haustierkampf ohne verfügbare Verbesserungen beginnt.
Sugiere a abandonar inmediatamente al entrar en un duelo de mascotas sin mejoras disponibles.
Propose de déclarer forfait immédiatement lorsque vous entrez dans un combat de mascottes où il n'y a pas d'améliorations disponibles.
Sugere que desistir imediatamente ao entrar numa batalha de mascote sem melhorias disponíveis.
Подсказка для немедленного отступления, когда начинается битва питомцев и нет доступных улучшений.

When you enter a wild pet battle where none of the enemy pets are an upgrade, a full-screen prompt will appear. Click anywhere to forfeit, or right-click to continue the battle anyway.

Note that full automation is not possible, and the click is required, because forfeiting a pet battle requires a hardware action. Also, if you don't click immediately the pet battle system will take a second or two to complete the scripted starting sequence before accepting your forfeit.

You can also shift-click the regular Forfeit button to forfeit immediately at any time without confirmation.

Options

Type “/pbaf” to open the options pane, or browse to it in the game’s Interface Options window.

You can specify the minimum quality to consider an upgrade (eg. if you are only interested in rares) and how many levels higher a wild pet must be to be considered an upgrade at the same quality. The loss of levels that occurs on capture is already accounted for, so if you set this to +5, then a pet will only be considered an upgrade if it will end up at least 5 levels higher than your existing pet after you capture it.

Feedback

Post a comment. Please note that I consider this addon to be complete, and will probably not add any new features.

Note that this addon does not consider breeds (speed, balance, etc.) and such functionality will not be added, as (a) there is no way to get this information from the game client, and it requires comparing pet stats against hardcoded lists and making a guess, and (b) I have no interest in making the options 1000x more compliated to support setting up breed priorities for every pet species.

Language Support

Compatible with all languages. Translated into English, Deutsch, Español, Français, Português and Русский.

To add or update translations for another language, enter them on CurseForge and then send me a PM or post a comment to let me know you made changes, so I can add them to the addon. Or, just PM me your translations if you prefer.
Version 5.4.7.29
  • Added Portuguese translations from Ogadita on CurseForge

Version 5.4.7.25
  • Fixed several minor bugs in the options panel

Version 5.4.1.20
  • Updated for WoW 5.4
  • Added German translations

Version 5.3.0.19
  • Updated for WoW 5.3

Version 5.2.0.18
  • Now considers the expected level loss when determining whether wild pets are upgrades
  • Added an overlay icon on enemy pet unit frames indicating which ones are upgrades
  • Added Russian translations from Wetxius
  • Fixed library loading

Version 5.2.0.14
  • Added detection for non-capturable pets
  • Added Spanish translations
  • Now uses LibPetJournal-2.0 for better compatibility with other pet-related addons

Version 5.1.0.6
  • Fixed scanning when the pet journal is filtered
  • Added French translations from L0relei

Version 5.1.0.3
  • First public release
Archived Files (6)
File Name
Version
Size
Author
Date
5.4.7.25
17kB
Phanx
04-23-14 03:30 AM
5.4.1.20
17kB
Phanx
11-25-13 07:36 AM
5.3.0.19
16kB
Phanx
05-29-13 04:56 AM
5.2.0.18
16kB
Phanx
04-18-13 04:07 AM
5.2.0.14
16kB
Phanx
03-07-13 04:38 AM
5.1.0.6
7kB
Phanx
12-20-12 06:35 AM


Post A Reply Comment Options
Unread 08-18-14, 04:06 PM  
Imithat
A Deviate Faerie Dragon
 
Imithat's Avatar
AddOn Author - Click to view AddOns

Forum posts: 15
File comments: 147
Uploads: 5
Schlägt für die sofortige Aufgeben vor, wenn ein Haustierkampf ohne verfügbare Verbesserungen beginnt.
Schlägt das sofortige Aufgeben vor, wenn ein Haustierkampf ohne verfügbare Verbesserungen beginnt.

Imithat is offline Report comment to moderator  
Reply With Quote
Unread 08-18-14, 03:22 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4095
File comments: 1933
Uploads: 38
Version 5.4.7.29
  • Added Portuguese translations from Ogadita on CurseForge
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 05-22-14, 05:35 PM  
Spiderkeg
A Deviate Faerie Dragon

Forum posts: 14
File comments: 227
Uploads: 0
Originally Posted by Phanx
This addon does not do anything with breeds, as there is no game API to determine that info. Addons that show you breed info (balance, speed, etc) do it by comparing the pet's stats against a hardcoded list and making a guess. If you want to replace your balance rare with a speed rare, this addon will not help you with that. The only stats this addon considers are rarity and level.
Originally Posted by Phanx
If you already have a level 25 rare of the same species as the rare in the battle, this addon will always prompt you to forfeit. If you want to replace your rare with another rare of the same or lower level, this addon will not help you with that. If you only want to capture pets of certain breeds, this addon will not help you with that.
Alright, good to know all of this. I wasn't sure to what, if any, extent this addon used breeds for decision making. I was experiencing situations where a rare was in the back row but I was still being offered to forfeit, and I was trying to understand the reasoning behind it. I appreciate more clarity on the inner workings and on what to expect from this addon.
Last edited by Spiderkeg : 05-22-14 at 05:36 PM.
Spiderkeg is offline Report comment to moderator  
Reply With Quote
Unread 05-21-14, 07:47 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4095
File comments: 1933
Uploads: 38
This addon does not do anything with breeds, as there is no game API to determine that info. Addons that show you breed info (balance, speed, etc) do it by comparing the pet's stats against a hardcoded list and making a guess. If you want to replace your balance rare with a speed rare, this addon will not help you with that. The only stats this addon considers are rarity and level.

Originally Posted by Spiderkeg
If I set the option to rare quality, should the forfeit window come up at all (unless ANY rare is present) or ONLY if the rare is one I don't have yet?
If your minimum quality is rare, then you will be prompted to forfeit if none of the enemy pets are rare, or if you already have a rare of the same species the enemy rare and the enemy rare's level is less than X levels higher than your rare of the same species, where X is your selected minimum level gain plus the amount of levels the enemy pet would lose upon capture. If there are multiple rares on the enemy team, then the same comparison will be performed for each one. If none meet the criteria, you will be prompted to forfeit.

Originally Posted by Spiderkeg
What I'd like is for the forfeit window to NOT come up if the battle has ANY rare present, regardless of breed, but as I've said this is not what is happening.
If you already have a level 25 rare of the same species as the rare in the battle, this addon will always prompt you to forfeit. If you want to replace your rare with another rare of the same or lower level, this addon will not help you with that. If you only want to capture pets of certain breeds, this addon will not help you with that.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Last edited by Phanx : 05-21-14 at 07:53 PM.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 05-21-14, 12:31 PM  
Spiderkeg
A Deviate Faerie Dragon

Forum posts: 14
File comments: 227
Uploads: 0
Hmm, but if you start a pet battle and a rare is present, regardless of breed, if you already have a breed of said rare then the addon will forfeit, yes?

Because that's what it currently seems to be doing... perhaps I'm not understanding how the option is supposed to work then. If I set the option to rare quality, should the forfeit window come up at all (unless ANY rare is present) or ONLY if the rare is one I don't have yet?

What I'd like is for the forfeit window to NOT come up if the battle has ANY rare present, regardless of breed, but as I've said this is not what is happening.
Last edited by Spiderkeg : 05-21-14 at 12:33 PM.
Spiderkeg is offline Report comment to moderator  
Reply With Quote
Unread 05-20-14, 03:43 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4095
File comments: 1933
Uploads: 38
A rare is always considered an upgrade over an uncommon, even if the rare is level 1 and your uncommon is level 25. Levels are only checked if the rarity is the same as yours.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Last edited by Phanx : 05-20-14 at 03:43 AM.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 05-19-14, 01:55 PM  
Spiderkeg
A Deviate Faerie Dragon

Forum posts: 14
File comments: 227
Uploads: 0
Sometimes I want to replace an existing pet that is less than rare with a rare, and I'm only looking for those. However, since the lowest level increase you can go is +1, and even if the rare is in the back row, the addon will still consider this worth forfeiting. Any chance you could augment level requirements to be from zero to plus ten?

If not, can you offer some help on how to do this myself within the code?
Spiderkeg is offline Report comment to moderator  
Reply With Quote
Unread 04-23-14, 03:31 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4095
File comments: 1933
Uploads: 38
Version 5.4.7.25
  • Fixed several minor bugs in the options panel
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 12-29-13, 05:32 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4095
File comments: 1933
Uploads: 38
Nope. There are plenty of addons that will add breed info to tooltips. If you need that info, you'll have to use one of those addons and make the decision yourself. If I were to add something like that in PBAF I'd need a whole panel of options so people could customize which breeds they preferred, and that's just too much work for too little benefit.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 12-28-13, 06:52 PM  
Flawlessa
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 15
Uploads: 1
breeds?

Any way we can get an upgrade selector for different breeds?

In most cases, an S/S, P/P or H/H is going to be preferable to B/B. If there's a way they could be weighted higher than the latter, that'd be great.
Flawlessa is offline Report comment to moderator  
Reply With Quote
Unread 11-25-13, 07:56 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4095
File comments: 1933
Uploads: 38
Version 5.4.1.20
  • Updated for WoW 5.4
  • Added German translations

Tatsächliche Deutscher, wie schlecht habe ich getan? >_>
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 05-29-13, 04:56 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4095
File comments: 1933
Uploads: 38
Version 5.3.0.19
  • Updated for WoW 5.3
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 04-21-13, 10:35 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4095
File comments: 1933
Uploads: 38
Originally Posted by Marthisdil
have the Addon monitor if you have used a pet ability, and if so, it clears the dimming/cancel message.
Not planned. If you're battling for XP or achievements, rather than for the purpose of upgrading your pets, you should probably just disable the addon temporarily, rather than trying to get the scope of the addon expanded.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Last edited by Phanx : 04-21-13 at 10:37 PM.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 04-21-13, 12:25 PM  
Marthisdil
An Onyxian Warder
AddOn Author - Click to view AddOns

Forum posts: 350
File comments: 98
Uploads: 1
Originally Posted by Phanx
Can't you just look at the enemy unit frames to see that info? Flooding the chat frame with info about the pets you're fighting seems rather outside the scope of an addon whose sole purpose is to help you identify whether there is an upgrade available, and forfeit if there isn't, as quickly as possible.
Phanx, certainly can do that

Another idea - have the Addon monitor if you have used a pet ability, and if so, it clears the dimming/cancel message.

Thanks again for the addon!
__________________

Marth


Marthisdil is offline Report comment to moderator  
Reply With Quote
Unread 04-18-13, 03:07 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4095
File comments: 1933
Uploads: 38
Can't you just look at the enemy unit frames to see that info? Flooding the chat frame with info about the pets you're fighting seems rather outside the scope of an addon whose sole purpose is to help you identify whether there is an upgrade available, and forfeit if there isn't, as quickly as possible.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Last edited by Phanx : 04-18-13 at 09:49 PM.
Phanx is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: