Jump to content
  • Feeding hunter pets in TBC


    bael666
    • Version: All Product: WRobot General Type: Suggestion Status: Not a Bug

    Please give us a "pet happiness* condition for fight classes to determine when to feed our pets.
    Thanks



    User Feedback

    Recommended Comments

    Runaro

    Posted

    Indeed, i would appreciate it too.

    Droidz

    Posted

    Changed Status to Not a Bug

    Changed Version to All

    eeny

    Posted

    /run local c=CastSpellByName if UnitExists("pet") then if UnitHealth("pet")==0 then c("Revive Pet") elseif GetPetHappiness()~=nil and GetPetHappiness()~=3 then c("Feed Pet") PickupContainerItem(0, 13) else c("Dismiss Pet") end else c("Call Pet") end



    If your pet is dismissed, this macro will call it. If your pet is called and happy, this macro will dismiss it. If your pet is called and unhappy, this macro will feed it the item in the bottom left corner of your backpack. If your pet's dead, it'll be revived.

    You can change the bagslot this macro checks for food in by changing the "PickupContainerItem(0, 13)" part. The bags count from 0-4, starting from the Backpack, so 0, 13 there means the 13th slot in the backpack.

    You can change the happiness values (GetPetHappiness()~=3  to GetPetHappiness()~=4) so it will never dismiss pet when its happy and the macro is touched.

    Tinker with this macro as you see fit



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...