- Home
- Downloads
-
Addons & Mods
Featured
World of Warcraft
6,103 Server Mods
-
Popular Downloads
- Top World of Warcraft Addons
- Top Minecraft Server Mods
- Top Rift Addons
- Top Skyrim Mods
- Top World of Tanks Skins
- Top StarCraft II Maps
- Top Terraria Maps
- Top Runes of Magic Addons
- Top Warhammer Online Addons
- Top The Secret World Mods
- Top Age of Conan Addons
-
- Curse Client
- Premium
- News
- Giveaways
- Forums
- Store
LibPetBreedInfo
- 1 Like
- World of Warcraft
- 227 Monthly Downloads
- Supports: 5.2.0
- 844 Total Downloads
- Updated 05/19/2013
- Created 12/27/2012
- 3 Favorites
- Project Site
- Release Type: Release
- License: GNU Lesser General Public License version 3 (LGPLv3)
- Newest File: 1.0.9
About LibPetBreedInfo
LibPetBreedInfo is a library for computing breed information for pets.
Example Usage
local LibPetBreedInfo = LibStub("LibPetBreedInfo-1.0") local breedIndex, confidence = LibPetBreedInfo:GetBreedByPetID(C_PetJournal.GetPetInfoByIndex(1)) local breedName = LibPetBreedInfo:GetBreedName(breedIndex) print(breedName)
GetBreedByPetBattleSlot(petOwner,id)
local breedIndex, confidence = LibPetBreedInfo:GetBreedByPetBattleSlot(petOwner,id)
Gets the breed index for the given pet Returns breedIndex, confidence breedIndex can be used by GetBreedName to return the breeds name. confidence, a number. higher numbers are better. good predictions start at confidence > 2.5
Caveats: Returns nil if the pet does not have a base stats profile or if the petOwner and id are not valid Results are not valid if computed while round play back is happening
GetBreedByPetID(petID)
local breedIndex, confidence = LibPetBreedInfo:GetBreedByPetID(petID)
Gets the breed index for the given pet Returns breedIndex ,confidence breedIndex can be used by GetBreedName to return the breeds name. confidence, a number. higher numbers are better. good predictions start at confidence > 2.5
Caveats: Returns nil if the species cannot battle or does not have a base stats profile or if the petID is not valid
GetBreedByStats(speciesID,level,rarity,health,power,speed)
local breedIndex, confidence = LibPetBreedInfo:GetBreedByStats(speciesID,level,rarity,health,power,speed)
Gets the breed index for the given pet Returns breedIndex ,confidence breedIndex can be used by GetBreedName to return the breeds name. confidence, a number. higher numbers are better. good predictions start at confidence > 2.5
Caveats: Returns nil if the species cannot battle or does not have a base stats profile
GetPetPredictedStats(speciesID, breedID, rarity, level)
local health, power, speed = LibPetBreedInfo:GetPetPredictedStats(speciesID, breedID, rarity, level)
Gets the predicted stats for a species at a given level returns health,power,speed
Caveats: returns nil if the pet does not have a base stats profile, or if an invalid... breedID, rarity, or non numeric level is given.
IterateBreedNames()
for breedID,breedName in LibPetBreedInfo:IterateBreedNames() do
Gets an ipair iterator for all of the possible breed names
GetBreedName(breedID)
local breedName = LibPetBreedInfo:GetBreedName(breedID)
Gets the string representation of a BreedID
Caveats: BreedIDs are from 3-12 Returns nil for invalid breedID's
GetAvailableBreeds(speciesID)
local breedName = LibPetBreedInfo:GetAvailableBreeds(speciesID)
returns a list of possible breedID's for a given speciesID returns nil if no data is present or if a speciesID is invalid
1.0.9 additional breed updates
1.0.8 added preliminary data for 5.3 pets
1.0.7 added breed info for 5.2 pets
1.0.6 added nill check before using getPetInfo and getpetstats.
1.0.6 incremented minor version
1.0.5 returns nil if battle state information has not yet loaded when using GetBreedByPetBattleSlot
1.0.5 added out of bounds check for GetBreedByPetBattleSlot querying non existent pets
1.0.4 missed a comma
1.0.3 added non player pets to breed list
1.0.3 changed cinder kitten to correct base profile following a buff.
1.0.3 breedIndex now ranges between 3 and 12
1.0.2 optimized breed calculations
added possible pet breed data
confidence is now the ratio between the 2nd best / best in terms of fit. this means higher confidence numbers are better
confidence > 2.5 is a strong predictor of correctness.
1.0.1 added 20% to enemy pets hp in wild battles to get correct post capture hp and breed guess.
1.0 removed unused files
r6 changed variable names to be more conistant
r5 referenced wrong look up table in stat prediction
r4 stupid error
r3 fixed a find and replace mistake on line 138
r2 breed data is now embedded in the lib object
r1 intial release
| File Name | Release Type | Game Version | Downloads | Date |
|---|---|---|---|---|
| 1.0.9 | Release | 5.2.0 | 29 | 05/19/2013 |
| 1.0.8 | Release | 5.2.0 | 97 | 05/17/2013 |
| 1.0.7 | Release | 5.2.0 | 182 | 03/17/2013 |
| 1.0.6 | Release | 5.2.0 | 137 | 03/06/2013 |
| 1.0.5 | Release | 5.1.0 | 187 | 01/13/2013 |
| 1.0.4 | Release | 5.1.0 | 66 | 01/10/2013 |
| 1.0.2 | Release | 5.1.0 | 109 | 12/28/2012 |
| 1.0.1 | Release | 5.1.0 | 23 | 12/27/2012 |
| 1.0 | Release | 5.1.0 | - | 12/27/2012 |
| r6 | Beta | 5.1.0 | - | 12/27/2012 |
| r5 | Beta | 5.1.0 | - | 12/27/2012 |
| r4 | Beta | 5.1.0 | - | 12/27/2012 |
| r3 | Beta | 5.1.0 | - | 12/27/2012 |
| r1 | Beta | 5.1.0 | 7 | 12/27/2012 |
Top Downloads
-
- Deadly Boss Mods
- Combat, PvP, and Boss Encounters
- 1,011,007 Monthly Downloads
-
- Bagnon
- Bags & Inventory
- 484,403 Monthly Downloads
-
- Auctioneer
- Mail, Tooltip, Bags & Inventory, Professions, and Auction & Economy
- 336,889 Monthly Downloads
-
- Recount
- Combat
- 322,013 Monthly Downloads
-
- HealBot Continued
- Healer and Unit Frames
- 295,551 Monthly Downloads