Get an Epic Experience with Premium

Pet Counter

Companions Login to Add Favorites
  • 1 Like
  • World of Warcraft
  • 22 Monthly Downloads
  • Supports: 5.0.4
  • 1,039 Total Downloads
  • Updated 09/10/2012
  • Created 09/03/2012
  • 6 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: GNU General Public License version 3 (GPLv3)
  • Newest File: Pet Counter v1.3
or

About Pet Counter

Please note that the addon cannot detect learned pets if the item does not contain the pet's default full name within it's item name. ie. Pet = "Calico Cat", Item = "Cat Carrier(Calico Cat)" is ok.

Since pet items only display "Already known" when you have learned 3 of them (or if they are unique), this addon is a (hopefully temporary) solution to that. It adds a line to tooltips displaying how many of a pet you already know.

It compares the Pet name to the item name and tries to find a match, so it may not be 100% accurate for all pets. If the pet is very expensive, and the addon is reporting you have 0 of that pet, it's probably a good idea to double check the Pet Journal manually.

The basic method of interacting with tooltips originates with Silverwind, and his idTip addon.

v1.3
-Fixed the filtering code and reduced the cpu load when mousing over an item (Thanks Nullberri)

v1.2
-Some small fixes

v1.1
-Small fix for Pet Journal filter bugs

v1.0
-Release

Comments

  • #12

    Any way you can add in specific checks for the items where their in-journal name doesn't match their item name?

    • Item: Cat Carrier (Cornish Rex), pet name: Cornish Rex Cat
    • Item: Rabbit Crate (Snowshoe), pet name: Snowshoe Rabbit
    • Item: Cat Carrier (Orange Tabby), pet name: Orange Tabby Cat
    • Item: Cat Carrier (Bombay), pet name: Bombay Cat
    • Item: Cat Carrier (Siamese), pet name:Siamese Cat
    • Item: Prairie Dog Whistle, pet name: Brown Prairie Dog
    • Item: Cat Carrier (Silver Tabby), pet name: Silver Tabby Cat
    • Item: Green Helper Box, pet name: Father Winter's Helper
    • Item: De-Weaponized Mechanical Companion, pet name: De-Weaponized Mechanical Companion
    • Item: Lifelike Mechanical Toad, pet name: Lifelike Toad
    • Item: Trusilver Shafted Arrow, pet name: Peddlefeet
    • Item: Proto-Drake Whelp, pet name: Proto-Drake Whelp
    • Item: Captured Flame, pet name: Spirit of Summer

    Database person for AckisRecipeList & Collectinator

  • #13

    Yup, I can add those. I'll try and get that done soon.

  • #11

    I downloaded the 1.3, I went to the AH to test in the sale and pets but did not change anything in the preview. :(

    XD

  • #9

    Each call to the below functions causes a    PET_JOURNAL_LIST_UPDATE event to fire. Any addon which does work during that even will cause a framerate drop. (this happens in PJE pre 2.1.5, PJEX, and others)
    Instead you should check out http://wow.curseforge.com/addons/libpetjournal-2-0/ as it prevents most of your performance issues. Otherwise your best practice is to Clear the filters, read all the pets, restore the filters and cache the petID's and then watch for changes in local _,numOwned =C_PetJournal.GetNumPets() during PET_JOURNAL_LIST_UPDATE and then update the list when it differs from the last time PET_JOURNAL_LIST_UPDATE fired.

     


       C_PetJournal.AddAllPetTypesFilter()
        C_PetJournal.AddAllPetSourcesFilter()
        C_PetJournal.ClearSearchFilter()
        C_PetJournal.SetFlagFilter(LE_PET_JOURNAL_FLAG_COLLECTED, true)
        C_PetJournal.SetFlagFilter(LE_PET_JOURNAL_FLAG_NOT_COLLECTED, false)
        C_PetJournal.SetFlagFilter(LE_PET_JOURNAL_FLAG_FAVORITES, false)

    Last edited by Nullberri on 9/9/2012 2:45:40 PM
  • #10

    Ah, thank you, that makes a lot of sense. The 5.0 pet journal API is definitely a bit less clean the the older, cleaner companion stuff was. I'll fix that later today probably.

  • #7

    When I move the mouse over any pet to sell the groans hangs completely, so retreat back to normal when the mouse off the pet, therefore can not even see the data of the pet.

    XD

  • #5

    I've definitely noticed a couple cases where I was getting false zeros, but having the ones that work and only needing to check the zeros helps a lot! :) Hopefully Blizz adds an official means for this....

  • #4

    I sorely need this addon, having around 190 pets, before counting doubles.

     

    Problem is, when I mouseover ANYTHING with this addon enabled my FPS drops to a crawl

  • #6

    Hmm, not sure why it's slowing your fps, as it doesnt' slow mine down. I honestly don't know the tooltip hooking code very well, I just copied the 5 lines or so I needed for that so I have no idea how I'd fix that unfortunately.

  • #8

    I don't have any issues either...I suspect it's conflicting with some other add-on or something....

  • #1

    I downloaded this mod and it doesn't seem to be working.   Mousing over Companion Pets in the Auction House and on vendors does not display "Already Known" in the tooltip for pets that I know I have.  

    I can't find an option to open a control panel of any kind to see if there is something I need to load or configure to make it work either.

     

     

  • #2

    Nah, I messed something up in the 1.1 upload.

    1.2 should be up soon and it should work then.

  • #3

    Thank you!  Works perfectly!

  • To post a comment, please login or register a new account.
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Infinite Crisis NA

Get Your Preferred Access Code!