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,512
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 08-18-14, 03:22 PM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Version 5.4.7.29
  • Added Portuguese translations from Ogadita on CurseForge
__________________
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 08-18-14, 04:06 PM  
Imithat
A Fallenroot Satyr
 
Imithat's Avatar
AddOn Author - Click to view AddOns

Forum posts: 27
File comments: 201
Uploads: 7
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.

Report comment to moderator  
Reply With Quote
Unread 10-16-14, 04:47 AM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Version 6.0.2.32
  • Updated for WoW 6.0
__________________
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 07-23-16, 07:45 PM  
Spiderkeg
A Deviate Faerie Dragon

Forum posts: 18
File comments: 285
Uploads: 0
I'm receiving errors for this addon since the 7.0 patch:

Code:
Message: ...Forfeit\Libs\LibPetJournal-2.0\LibPetJournal-2.0.lua:56: table index is nil
Time: 07/23/16 21:44:17
Count: 1
Stack: ...Forfeit\Libs\LibPetJournal-2.0\LibPetJournal-2.0.lua:56: in main chunk

Locals: MAJOR = "LibPetJournal-2.0"
MINOR = 27
lib = <table> {
 UnregisterCallback = <function> defined @Interface\AddOns\DataStore\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:179
 callbacks = <table> {
 }
 event_frame = <unnamed> {
 }
 UnregisterAllCallbacks = <function> defined @Interface\AddOns\DataStore\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:200
 RegisterCallback = <function> defined @Interface\AddOns\DataStore\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:116
}
oldminor = nil
_G = <table> {
 ERR_OUT_OF_CHI = "Not enough chi"
 DH_HAVOC_CORE_ABILITY_2 = "Strong melee attack that consumes Fury. If it critical strikes, some Fury is refunded."
 MultiCastActionButton6Cooldown = MultiCastActionButton6Cooldown {
 }
 MerchantItem9ItemButtonStock = MerchantItem9ItemButtonStock {
 }
 GetTrainerServiceTypeFilter = <function> defined =[C]:-1
 UNIT_NAMES_COMBATLOG_TOOLTIP = "Color unit names."
 SetTrainerServiceTypeFilter = <function> defined =[C]:-1
 LE_GAME_ERR_CHAT_RAID_RESTRICTED_TRIAL = 736
 EventTraceFrameButton7HideButton = EventTraceFrameButton7HideButton {
 }
 SPELL_FAILED_CUSTOM_ERROR_71 = "This partygoer wants to dance with you."
 LE_GAME_ERR_PET_SPELL_TARGETS_DEAD = 395
 RecruitAFriendFrame = RecruitAFriendFrame {
 }
 CompactUnitFrameProfilesGeneralOptionsFrameHealthTextDropdownButtonNormalTexture = CompactUnitFrameProfilesGeneralOptionsFrameHealthTextDropdownButtonNormalTexture {
 }
 TutorialFrameLeft19 = TutorialFrameLeft19 {
 }
 MultiCastActionButton2Cooldown = MultiCastActionButton2Cooldown {
 }
 ERR_TRADE_EQUIPPED_BAG = "You can't trade equipped bags."
 PVP_RANK_6_1 = "Corporal"
 BOOKTYPE_PROFESSION = "professions"
 AudioOptionsVoicePanelOutputDeviceDropDownButtonHighlightTexture = AudioOptionsVoicePanelOutputDeviceDropDownButtonHighlightTexture {
 }
 VideoOptionsFrameCategoryFrameButton17ToggleHighlightTexture = VideoOptionsFrameCategoryFrameButton17ToggleHighlightTexture {
 }
 MerchantItem2AltCurrencyFrameItem1Text = MerchantItem2AltCurrencyFrameItem1Text {
 }
 OPTION_TOOLTIP_ACTION_BUTTON_USE_KEY_DOWN = "Action button keybinds will respond on key down, rather than on key up."
 BINDING_NAME_NAMEPLATES = "Show Enemy Name Plates"
 CHAT_HEADER_SUFFIX = ": "
 IsReferAFriendLinked = <function> defined =[C]:-1
 MAIL_LETTER_TOOLTIP = "Click to make a permanent
copy of this letter."
 AudioOptionsVoicePanelMicrophoneVolumeThumb = AudioOptionsVoicePanelMicrophoneVolumeThumb {
 }
 PaperDollTitlesPaneButton12BgTop = PaperDollTitlesPaneButton12BgTop {
 }
 DUNGEON_FLOOR_UPPERBLACKROCKSPIRE3 = "Hall of Blackhand"
 CHAT_CONFIG_OTHER_COMBAT = <table> {
 }
 FCFDockOverflowButton_OnClick = <function> defined @Interface\FrameXML\FloatingChatFrame.lua:2337
 TutorialFrameRight19 = TutorialFrameRight19 {
 }
 ChatFrame6EditBoxFocusMid = ChatFrame6EditBoxFocusMid {
 }
 BN_UNABLE_TO_RESOLVE_NAME = "Unable to whisper '%s'. Battle.net may be unavailable."
 LE_GAME_ERR_RECRUIT_A_FRIEND_FAILED = 941
 CompactRaidFrameManagerDisplayFrameHiddenModeToggleTopRight = CompactRaidFrameManagerDisplayFrameHiddenModeToggleTopRight {
 }
 LFGTeleport = <function> defined =[C]:-1
 LE_GAME_ERR_ONLY_ONE_QUIVER = 32
 SpellButton6Cooldown = SpellButton6Cooldown {
 }
 SLASH_LibQTip1 = "/qtip"
 ToggleEncounterJournal = <function> defined @Interface\FrameXML\UIParent.lua:788
 LOSS_OF_CONTROL_DISPLAY_FEAR = "Feared"
 Graphics_QualityText = Graphics_QualityText {
 }
 TalentMicroButtonAlertShadowTopLeft = TalentMicroButtonAlertShadowTopLeft {
 }
 ROGUE_COMBAT_CORE_ABILITY_4 = "Melee ability with an increased range that consumes Combo Points."
 JoinSkirmish = <function> defined =[C]:-1
 Advanced_GraphicsAPIDropDownButtonHighlightTexture = Advanced_GraphicsAPIDropDownButtonHighlightTexture {
 }
 CompactUnitFrameProfilesSaveButton = CompactUnitFrameProfile
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: