WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   Companion / mini-pet - Reminder? (https://www.wowinterface.com/forums/showthread.php?t=37222)

jlrm365 11-30-10 09:44 AM

Companion / mini-pet - Reminder?
 
There are several addons that will summon companions / mini-pets.
  • Are there any that will just remind you to summon one - say, that would flash up a little icon of your designated favourite(s)?

I might like to have a pet out for certain functionality - like the Argent Squire (bank, mail or vendor) or Lil' Ragnaros (cooking) - and not have it immediately replaced by my "favourite".

An addon that just flashed up a reminder, rather than did the summon automatically, would be a good solution - hence the question.

Thanks!

Terranell 12-04-10 03:13 PM

I think there are a few that just give a reminder, but the only one I can name right now is Minipet by LordFarlander, it's not been updated on WOWI in years, but the version on curse is more recent: Mini-pet

jlrm365 12-04-10 04:22 PM

That could be just the thing. Thanks!

Phanx 12-04-10 09:59 PM

All of LordFarlander's addons are pretty horribly coded, and are the the butt of numerous running jokes over on WowAce. For example, that addon you linked has an uncompressed download size of 1 MiB, 832 KiB of which are embedded libraries, most of which are totally unnecessary to do anything the addon does.

If you just want to make sure you always have a minipet out, try Tekkub's Kennel. It will automatically summon a minipet whenever you don't have one, and you can choose which minipets to include in the random selection pool.

jlrm365 12-05-10 03:56 AM

That's nice, but I know of several that summon mini pets. I didn't ask for that, because I'd just like to be reminded to - rather than actually have one summoned. Interesting details on the author of that addon. Thanks for the info.

p3lim 12-05-10 08:18 PM

I made a small addon for a friend a while ago that automatically summoned Mr Wiggles if you moved/jumped.

If you want to use it for what you need, here is the source:
https://github.com/p3lim/AutoWiggles

jlrm365 12-05-10 09:19 PM

That's a nice one, but I am looking for something to remind - rather than summon - and my knowledge of code is not so great as to be able to make changes that big.

Phanx 12-07-10 04:41 AM

Try downloading Kennel and then replacing the contents of the Kennel.lua file with this:

Code:

local SOR, FOOD, DRINK = GetSpellInfo(20711), GetSpellInfo(7737), GetSpellInfo(430)
local blistzones = {
        ["Throne of Kil'jaeden"] = true,
        ["\208\162\209\128\208\190\208\189 \208\154\208\184\208\187'\208\180\208\182\208\181\208\180\208\181\208\189\208\176"] = true, -- ruRU
        ["Tr\195\180ne de Kil'jaeden"] = true, -- frFR
}

local f = CreateFrame("Frame")
f:SetScript("OnEvent", function(self, event, ...) if self[event] then return self[event](self, event, ...) end end)
f:Hide()

local numpets = 0
local function PutTheCatOut(self, event)
        -- Bail out if we're on the Venomhide Ravasaur quest
        local z = GetZoneText()
        if (z == "Silithus" or z == "Tanaris" or z == "Un'goro Crater") and GetItemCount(46362) > 0 then return end

        if InCombatLockdown() then
                return self:RegisterEvent("PLAYER_REGEN_ENABLED")
        end
        if not HasFullControl() then
                return self:RegisterEvent("PLAYER_CONTROL_GAINED")
        end
        self:UnregisterEvent("PLAYER_REGEN_ENABLED")

        for i = 1,GetNumCompanions("CRITTER") do
                local _, name, _, _, summoned = GetCompanionInfo("CRITTER", i)
                if summoned then
                        return
                end
        end

        self:Show()
end

local elapsed
f:SetScript("OnShow", function()
        elapsed = 0
end)
f:SetScript("OnUpdate", function(self, elap)
        elapsed = elapsed + elap
        if elapsed < 1 then return end

        local _, instanceType = IsInInstance()
        local pvp = instanceType == "pvp" or instanceType == "arena"

        if pvp or InCombatLockdown() or IsStealthed() or IsMounted() or IsFlying() or IsFalling()
        or UnitCastingInfo("player") or UnitChannelInfo("player") or blistzones[GetSubZoneText()]
        or UnitBuff("player", SOR) or UnitBuff("player", FOOD) or UnitBuff("player", DRINK) then
                elapsed = 0
                return
        end

        UIErrorsFrame:AddMessage("You don't have a companion!", 1, 0, 1)
        self:Hide()
end)

f.PLAYER_REGEN_ENABLED = PutTheCatOut
f.PLAYER_CONTROL_GAINED = PutTheCatOut
f.PLAYER_LOGIN = PutTheCatOut
f.PLAYER_UNGHOST = PutTheCatOut
f.ZONE_CHANGED = PutTheCatOut
f.ZONE_CHANGED_INDOORS = PutTheCatOut
f.ZONE_CHANGED_NEW_AREA = PutTheCatOut

function f:COMPANION_UPDATE(event, comptype)
        if comptype == "CRITTER" then
                return PutTheCatOut(self, "COMPANION_UPDATE")
        end
end

f:RegisterEvent("COMPANION_UPDATE")
f:RegisterEvent("PLAYER_UNGHOST")
f:RegisterEvent("ZONE_CHANGED")
f:RegisterEvent("ZONE_CHANGED_INDOORS")
f:RegisterEvent("ZONE_CHANGED_NEW_AREA")

I'm still waiting in the queue for my realm (and have been for the last 2 hours) so I can't actually test it right now. If it doesn't work, please post the Lua error(s) it throws at you. If you haven't responded by the time I'm able to test, I'll update this post with any changes needed.

jlrm365 12-07-10 05:51 AM

You have gone "above and beyond" with that. I will try it out at some point, but you may do so before I do. I'll look forward to your info also, if that's the case.

Phanx 12-07-10 11:55 PM

In my limited testing last night, it seemed to be working as intended. It'll remind you with a purple warning message in the UI Errors frame (where the "Not enough energy" type errors appear) whenever you change zones, change subzones, leave combat, get off a taxi flight, or resurrect.

jlrm365 12-08-10 04:36 AM

Sounds great, so far ;)

Jigain 12-08-10 05:09 AM

PutTheCatOut?

My friend, even though I have no intention of using that addon, you've managed to brighten my day. Three cheers to you!

jlrm365 12-08-10 05:41 AM

I like that too and it gets my vote, to go out as a fully fledged addon. I'm sure others would appreciate it.


All times are GMT -6. The time now is 02:52 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI