Download
(17Kb)
Download
Updated: 02-10-18 12:04 AM
Pictures
File Info
Updated:02-10-18 12:04 AM
Created:12-18-12 03:12 AM
Downloads:4,493
Favorites:23
MD5:

PetBattleAutoForfeit

Version: 7.3.5.0
by: Phanx, Akkorian

I am no longer developing or maintaining World of Warcraft addons. I haven't played in years, and don't have the time or interest to continue working on addons for a game I don't play anymore. If you are an addon author interested in continuing one of my addons, please see https://phanx.net/addons/. If you are an addon user, sorry, but there won't be any more fixes or updates from me.
Quickly forfeit pet battles with no available upgrades.
Schlägt das 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 7.3.5.0
  • Fixed a PlaySound error in the options panel

Version 7.3.0.0
  • Updated for WoW 7.3

Version 7.1.0.0
  • Updated for WoW 7.1

Version 7.0.3.0
  • Updated for WoW 7.0

Version 6.2.0.11
  • Updated for WoW 6.2
  • Fixed upgrade icons sometimes showing in PVP pet battles
  • Fixed the initial state of the "Enable" option checkbox

Version 6.1.0.10
  • Updated for WoW 6.1
  • Improved handling of unobtainable wild pets

Version 6.0.2.32
  • Updated for WoW 6.0

Version 5.4.7.29
  • Added Portuguese translations from Ogadita

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
Post A Reply Comment Options
Unread 12-18-12, 09:01 AM  
L0relei
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Hi, I can help with french translation :

## Notes: 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.

CLICK_TEXT = "|cffff9900Pas d'améliorations disponibles !|r|n|nCliquez n'importe où pour déclarer forfait.|nCliquez droit pour continuer quand même le combat."

local L = {
ENABLE_TIP = "Vous pourriez vouloir désactiver temporairement l'addon tandis que vous montez vos mascottes en niveau.",
MIN_QUALITY = "Qualité minimum",
MIN_QUALITY_TIP = "Les mascottes en-dessous de cette qualité ne sont jamais considérées comme des améliorations.",
MIN_LEVEL_DIFF = "Gain de niveau minimum",
MIN_LEVEL_DIFF_TIP = "Les mascottes qui ont au moins ce nombre de niveaux de plus que les vôtres sont considérées comme des améliorations à qualité égale.",
}

Please let me know if you need other strings to be translated.

Thank you for this great addon! I have used Cancel Pet Fight, but it doesn't allow to set up the quality and level gain. This one is much better!
Report comment to moderator  
Reply With Quote
Unread 12-18-12, 08:40 PM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Thanks. I'll add those in the next release. I'm currently working to resolve issues with pet journal filters. Depending on how much time I get to work on it, it'll be out sometime this week.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Report comment to moderator  
Reply With Quote
Unread 12-20-12, 02:55 AM  
natassja72
A Wyrmkin Dreamwalker

Forum posts: 59
File comments: 73
Uploads: 0
Thanks a lot for the addon!
Could you add option to set treshold which triggers quit prompt to blue quality upgrade? What I mean is that quit prompt would come up every time unless upgrade is blue.
I have over 400 unique pets, a lot of them are poor quality because at some point I didn't care for quality as long as they counted towards achievement, but now I'm continuously upgrading my collection and I'm only interested in blue quality. I don't really need white or green upgrade.
Last edited by natassja72 : 12-20-12 at 02:59 AM.
Report comment to moderator  
Reply With Quote
Unread 12-20-12, 06:23 AM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
That's what the "Minimum Quality" option is for. If you are only interested in rares, set the minimum quality to rare, and then pets that are not rare will never be considered an upgrade, even if they are a better quality or higher level than what you have.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Last edited by Phanx : 12-20-12 at 06:23 AM.
Report comment to moderator  
Reply With Quote
Unread 12-20-12, 06:35 AM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Version 5.1.0.6
  • Fixed scanning when the pet journal is filtered
  • Added French translations from L0relei
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Report comment to moderator  
Reply With Quote
Unread 12-30-12, 08:15 PM  
ArtemBovin
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Tnx for addon.
Can you make option to choose forfeit on leftclick or rigthclick.
I prefer cancel actions on rightclick.
Report comment to moderator  
Reply With Quote
Unread 12-31-12, 09:51 AM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
I don't plan to add any options. Left-click was an intentional decision to avoid accidents. I generally spam right-click trying to hit the pet to start the battle, and I'd rather not lose a rare pet by accidentally right-clicking one too many times.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Report comment to moderator  
Reply With Quote
Unread 01-20-13, 02:24 PM  
Darst
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Level Slider

Can you make the Pet Level Slider in the Options allow for a wider range? If you could set it to -25 though 25 that would allow any blue quality pet to trigger a battle.

Great addon btw
Last edited by Darst : 01-20-13 at 02:35 PM.
Report comment to moderator  
Reply With Quote
Unread 01-21-13, 03:14 AM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
I think you may be misunderstanding what that option does.

Let's say you have a level 25 green Scorpid. You enter a battle with a level 1 blue Scorpid. Regardless of your level setting, you will not be prompted to forfeit, because a higher quality always allows a battle.

Now, if you have a level 15 blue Scorpid and enter battle with a level 12 blue Scorpid, you will be prompted to forfeit, because it wouldn't make sense to capture a lower level of the same quality.

If you have a level 15 blue Scorpid and enter battle with a level 17 blue Scorpid, the level setting is consulted. The enemy pet is 2 levels higher than yours, so if your level setting is lower than 2, you will be prompted to forfeit, but if it's 2 or higher, you won't be prompted.

Any blue quality pet already skips the forfeit prompt if you don't already have a blue quality of that pet. The level setting only comes into play when the available pet is the same quality as the one you already have.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Report comment to moderator  
Reply With Quote
Unread 01-22-13, 07:41 AM  
Darst
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Originally Posted by Phanx
Now, if you have a level 15 blue Scorpid and enter battle with a level 12 blue Scorpid, you will be prompted to forfeit, because it wouldn't make sense to capture a lower level of the same quality.
This is the reason I requested the slider to have a larger range. If I want to capture any level blue quality pet it would not forfeit. This would allow you to collect up to 3 of that pet at the highest quality regardless of its level. Therefor if Blizz adds the option to trade wild pets or if I want a team of the same pet I have backups.

The slider might not be the best way but maybe a checkbox to not forfeit at the sign of any level blue quality pet.

*
Report comment to moderator  
Reply With Quote
Unread 01-22-13, 07:57 PM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Collecting pets that aren't upgrades is outside the scope of what I wrote this addon to do. If that's what you're after, you can either (a) seek out higher level pets to battle, (b) modify the addon yourself, or (c) disable the addon and click the forfeit button yourself if you don't see a pet you want.

Edit: Actually, as long as you never open the options window, you can probably just edit the value in your saved variables file to -25 or even -10000000 in Notepad, and it will probably work the way you want.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Last edited by Phanx : 01-22-13 at 11:18 PM.
Report comment to moderator  
Reply With Quote
Unread 03-06-13, 04:48 AM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
There'll be an update shortly. I'm converting the addon to use LibPetJournal-2.0 so I can quit copy-pasting the same pet journal scanning code between all of my pet-related addons, and adding shift-clicking on the regular forfeit button to skip the confirmation dialog and forfeit immediately. In the meantime, just check "Load out of date addons" on the in-game addons list and it should work just fine.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Report comment to moderator  
Reply With Quote
Unread 03-07-13, 05:28 PM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Version 5.2.0.14
  • Added detection for non-capturable pets
  • Added Español translations
  • Now uses LibPetJournal-2.0 for better compatibility with other pet-related addons
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Report comment to moderator  
Reply With Quote
Unread 04-12-13, 12:11 PM  
Calebzor
A Kobold Labourer
 
Calebzor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 3
Uploads: 2
In the .toc file Libs\ is missing in front of all the libraries. They don't load right now.
Report comment to moderator  
Reply With Quote
Unread 04-12-13, 06:21 PM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
WTF, I already fixed that... I blame Dropbox and its lack of support for symlinks. I'll post a re-fix soon; working on something else at the moment.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: