Addon that allows more control and functionality from your pet
What can it do?
Make pet more responsive to attack and follow commands
Make pet use its abilities as soon as possible or turn them off completely
Make pet use its abilities in an order the player specifies
Make pet stop using its abilities after its target's health reaches a certain percentage
Make pet attack any enemy the player is attacking automatically while in a passive stance if it has no current target
Make pet attack any enemy that attacks the player automatically while in a passive stance if it has no current target
Make pet always attack same target as the player
Make pet automatically switch to follow mode if its target exceeds the range of the player's longest attack
Make pet follow you anytime the player targets himself
Automatically switches pet back to stance it was in before player mounted
Bind pet attack/follow commands to additional simple mouse/keyboard combinations
Features can easily be enabled/disabled through gui(/lpet gui)
How do I use it?
Manual Install - Unzip LoyalPet-*.*.zip into your interface\addons directory.
Curse Install - Select LoyalPet click Install Addon or Update Addon if it's already installed.
Now just run WAR and once logged in, type /lpet to get the options list. Or /lpet gui to view options window
Slash commands
/lpet - display option list
/lpet gui - toggle gui window. Allows you to set options with gui interface
/lpet reset current|all - command that allows you to reset values to their default
Option Meanings
Current - reset current settings back to their default values
All - reset everything back to their default settings. This includes saved profiles
The default setting for the General Tab is "off"
The default setting for the Mouse Tab is "off"
The default settings for the Abilities Tab are Mode=Auto, Priority=1, Health Limit=5
/lpet loadprofile <profile number> - Loads specified profile into current configuration
/lpet saveprofile <profile number> - Saves current configuration into specified profile
Available profile number values for the loadprofile and saveprofile commands depend on the number of profiles you have saved
Changes
Version 2.9.1
Updated settings for version 1.3.1
Fixed some pet command conditions. Pet should be more responsive to the manual commands, and its auto-attacking should occur sooner than previous versions
Improved timing speed in which pet begins using abilities. It should now start using its abilities much sooner in combat.
More code cleanup
Fixed Rename profile bug where it would not rename profile it is contained a space.
Added/modified tooltips to help make some settings less confusing in gui
Version 2.8.6
Removed more unused code.
Added more target checking to hopefully clear up more of the "moonwalking". Little by little it's happening less often
Fixed Mythic mount bug. Pet will now return to the stance it was in before the player summoned his mount.
Updated auto-switch, auto-attack, and auto-defend functionality to work better with 1.3.0b game version. Now whenever auto-switch is enabled, auto-attack and auto-defend will be disabled,and when either auto-attack or auto-defend is enabled, auto-switch will be disabled
Added more string verification to Rename profile functionality. Now strings with all blanks will be considered invalid
Fixed some spelling and grammar in tooltips
Version 2.8.5
Removed checking for auto attack and follow functionality. Hopefully this will help with client-server syncs to improve addon responsiveness.
Adjusted timing of auto-follow checking so it's not making too many request to servers too frequently.
Version 2.8.4
Added the new Add and Remove buttons to profiles tab. You can now add/remove as many profiles as you want
Updated some tooltips in the gui to better describe some features' functionalities.
Added special combo boxes to the general and abilities tabs in the gui. These combo boxes allow you to quickly changing all settings below them to the same value. This should help decrease the time to setup various profiles
Because these boxes were added, allfeatures and allabilities options have been removed from the command line options
Added a quicker way to bring up the gui. Simply mouse hover over your career resources icon, and press shift+right click
Version 2.8.3
Removed some unused code
Added some string verification for Rename profile function
Version 2.8.2
Added Rename functionality for profiles
To rename a profile, simply select the profile you want to change from the combobox, then enter a name in the textbox, and click the rename button
When saving a profile, if you enter a new in the rename textbox, the newly saved profile will automatically be renamed.
There is no need to add the profile number and "-" sign to the name of a profile, this is automatically done by the addon.
Version 2.8.1
Fixed a bug where profile loading didn't always update all of the ability settings
Changed the priority range values to be more aligned with actual number of simultaneous abilities for pets. Magus, engineer, and squigherder range is 1-2, white lion is 1-3 for priorities
Version 2.8
Profiles have been added. You can now save/load your configurations. There are 4 configurations in addition to your "current" configuration basically giving your 5 savable configurations. This will allow macros so you can switch settings on the fly like having one configuration for PvE, one for Scenarios, and one for oRVR.
To setup your macros use: /script LPET.LoadProfile(<profile #>) for loading a profile and /script LPET.SaveProfile(<profile #>) for saving a profile i.e. for loading the first profile, do /script LPET.Profile(1). The profile number proceeds the profile name in the gui
Important Note: Profiles are not saved on a per-character basis. Meaning the same profiles will be used for all your toons. If you want to save your profiles on a per-character basis, go here to learn how: http://www.warhammeralliance.com/forums/showthread.php?t=67885
Fixed a saved variables initialization bug. This is the bug that was causing some player's pet abilities to be missing in 2.6.x to 2.7.x
Version 2.7.1
Fixed bug where gui would display "Auto-Switch" and "Auto Switch Close Targets Only" options as "Off" even though they were "On"
Further adjusted speed at which pet begins to use abilities set to "Auto"
Removed a testing function that caused Tells to not be displayed. This function was supposed to only be used by me for developing features or testing the addon.
Version 2.7
Removed all slash commands that can also be changed via gui. Updating and maintaining those commands was tedious and practically unnecessary since gui is available. Sorry for those who liked them but gui is what I want to update
Fixed magus gui
Fixed case where abilities would not activate properly if you commanded pet to attack via pet's hotbar or certain keybindings
Added new option in gui called Auto-Switch Target. This option allows the pet to auto switch targets anytime you switch even if it has a current target. Also it can be used with all stances
Various small workarounds for pet target bug
Version 2.6.2
Added helper function for ability scanning so that non-English clients can run until I finish localizing strings
More workarounds added for Pet Target Updated Event bug
Version 2.6
Further adjustments to Auto-Attack, Auto-Defend, and Auto-Follow to improve stability and reliability of these features
Full Support for ability priorities and ability use based on health. Use the gui to modify these values for each ability
Improved control of pet abilities. The addon completely removes the games control of the abilities to allow you to when the ability should be used and in what order
IMPORTANT: When your pet hotbar is visible, you will notice that the shimmering toggles on the pet abilities every now and then. This is normal since the addon is taking control away from the game settings
Fixed an issue with the addon not displaying the engineer's "High-Explosive Grenade" ability on the hotbar
Fixed an issue with the addon not displaying the magus' Pink Horror abilities on the pet hotbar
Fixed an issue with the addon not displaying the squig herder's "Head Butt" ability on the hotbar
Cleaned up some unused code
Cleanup up the gui a little. More work is still needed
Fixed pet command toggling
By popular demand, modified ability command options yet again. This probably will be the last change for these options. Now the settings are off|auto|manual|ignore.
Off - completely removes the command from the pet hotbar so it won't be used
Auto - makes the addon control when to use the ability based on cooldown, priority, healthLimit, and some other variables
Manual - allow the command to remain on the pet hotbar, but it will not automatically activate. Player must click to activate
Ignore - allow the command to remain on the pet hotbar, but addon will completely ignore it to allow default game settings to be used or other changes from the user
Version 2.5
Addon now searches for ability names instead of ability id numbers. This should prevent the addon from breaking if Mythic decides to changes the ability id values again in the future
Changed Ability Command options. Now the only options are on and off. On is equivalent to the old fast setting, and off is off. The default option has been removed since it was pretty much useless.
Fixed off setting for pet abilities. Now when you turn off and ability if will be removed from the pet bar to indicate that it's disabled.
Fixed close range check for auto-attack and auto-defend for engineers, magi, and squig herders
Fixed some coding syntax errors.
Added initial framework to support command prioritization and command use based on target's health. You can manually change these values by editing the LoyalPetActions file. Simply find the ability you want to adjust, and edit its priority and/or healthlimit setting
Version 2.4
Update Engineer, Magus, and Squig Herder Ability values to work properly with WAR 1.1
Version 2.3
Updated to support WAR 1.1 update
Version 2.2
Additional fix for autoattack. There were some cases where autoattack would fail to activate. Added a few more checks for autoattack for when player or pet switch targets.
Fixed gui toggle. If you close the gui using the close button, you have to enter /lpet gui twice to make gui show again
Added more UpdateFromClient calls in an effort to increase client-server synchronization. Doing as much as I can to sync the pet actions but it's really up to Mythic on the client-server syncs.
Minor fix to autofollow. Found case where autofollow would not activate if autoattack was not turned on.
Fixed manual follow. There was an issue where the pet would not follow as commanded unless you had a target selected. This should no longer occur.
AutoAttack and AutoDefend changed slightly. AutoAttack and AutoDefend will no longer force pet into Passive Stance. Instead, they will now only be active when the player switches the pet to Passive stance. The functionality is the same except now the player no longer has to disable the features just to switch stances. The gui tooltip have also be updated to note this change.
Added reset option to make it easier to get all settings back to their default values.
Version 2.1
Hotfix for 2.0
Version 2.0
GUI implemented. It's a little crude but gets the job done. I'll improve it as time goes on. Even though gui has been added all slash commands are still available. This makes it easier to change options and you don't want a gui in the way.
Lightened restriction on forced passive mode. Now the addon will only force passive stance when autoattack or autodefend are enabled. It will not force passive stance if you enable the button combo options.
Added autodefend and defendrangecheck options. These options are similar to autoattack and attackrangechecked respectively except that autodefend will cause the pet to attack when you are attacked, and defendrangecheck make it only trigger at close range.
Replaced the mouse buttons option with attackbuttoncombo and followbuttoncombo options. These options allow more flexibility for manual pet attack and follow commands.
Re-added the selftargetfollow option. Had a few requests to add this back. It allows you to simply target yourself to make your pet follow.
Replaced fastabilities option with allabilities option. Can now set all abilities to fast, default, or off at once.
Updated compatibility with 1.0.4 patch
Fixed pet ability throttling due to a game bug
Added Aiiane's TargetInfo fix
Version 1.8
Setting structure changed once again, so your settings will be reset yet again. Sorry, but it's for the greater good :)
Adjusted chat filter fix in 1.7.1. It was too restrictive.
Added mouse buttons option to choose mouse button settings for clickattack and clickfollow.
If mouse buttons is set to middle then clickattack = Middle Mouse button, and clickfollow = Shift + Middle Mouse button
If mouse buttons is set to right then clickattack = Ctrl + Right Mouse button, and clickfollow = Alt + Right Mouse button
Cleaned up unused code
Added option to enable/disable range checking for autoattacking
Changed fastabilities and ability options to handle disabling of abilities
Note about 1.7 and 1.7.1 - Many may not have noticed but autoattack only activates when the player initiates combat. The pet will no longer activate autoattack when the user is attacked by an unselected target in range.
Version 1.7.1
Minor fix for Chat Filters. Should filter spam even better
Minor fix for fast ability feature. Was only working with clickattack and autoattack enabled. Now should always work.
Version 1.7
Added full ability support for engineer, magus, and squig herder careers. NOTE: The settings structure was changed, so the stored addon settings from 1.6 and below will be reset to the defaults. I'm hoping this is the last time a reset is needed.
Corrected a bad hook call to the Alert Window
Changed clickattack to be Ctrl + Right Mouse Click. The target still has to be selected first before click attack works.
Changed clickfollow to be Alt + Right Mouse Click
Changed logic to ability fastcast. Due to game's targeting system, and the way it handles pet command. Ability fastcasting automatically turns off if your pet is attacking a different target than you. Once your pet starts attacking the same target as you, fastcast turns back on automatically.
Added logic to force pet into passive Stance if clickattack or autoattack are enabled. This is to ensure game attack settings aren't interfering with addon attack settings
Changed the auto-attack functionality yet again. The pet will only start auto attacking if the target is within a certain range of the player. Also, once the pet has begun auto attacking a target, it will remain locked on that target until the player sends it to attack another target or issues a follow command. I would suggests having clickattack and clickfollow enabled if you plan to use autoattack to provide even more control over it. IF YOU DON'T WANT YOUR PET RUNNING OFF AFTER A FLEEING TARGET IT IS AUTOATTACKING, EITHER USE CLICKFOLLOW TO MAKE IT RETURN TO YOU OR TURN AUTOATTACK OFF. Until target of target is added to the API, this is the best autoattack I can think of right now.
Fixed auto-attack problem with pet just running off after a target not selected
Added support to reduce combat log spam for pet fastcasting abilities
Version 1.6
Changed ability command options to be more descriptive of their actual functionality
Fixed the last of the left-click/tab bugs that caused pet to attack unexpectedly while clickattack was active. As a result you must right click a target twice if it is not already selected. This may be an undesirable side-effect, but it's better than the bug
Improved autofollow and autoattack behavior even more
Added a saved settings version check. If saved settings are from a incompatible version then they will now be reset properly. In fact, any settings saved prior to 1.6 will be reset as a result of this new check
Added engineer and magus back to acceptable career list
Improved ability speed behavior even more for white lions
Version 1.5
Support for Ticket Request 1. slash commands will now give confirmation messages.
Added another option: /lpet printsettings features|abilities|all which will display the current settings for features, fast-ability use, or both respectively.
Version 1.4
More command options added. Can now choose to turn all features on/off with one command line. Can choose to turn fast-trigger functions on/off for each pet ability, or set them all with on command
Improved fastability behavior(should not trigger until in range of target)
Improved autofollow and autoattack behavior
Version 1.2
First public release. Basic functionality and option selection complete.
TODO
The following list is in no particular order of priority
Profile namings and popup window
GUI improvements
Other tweaks and improvements
Special Thanks
Grayhoof - For creating the Warhammer Scrolling Combat Text addon. I was able to use your addon as a great template for my GUI, and hooking.
Aiiane - For creating the TargetInfoFix file, it definitely helps in my addon.