Thread Tools Display Modes
11-30-10, 09:44 AM   #1
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 113
Question 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!
  Reply With Quote
12-04-10, 03:13 PM   #2
Terranell
Premium Member
Premium Member
Join Date: Apr 2006
Posts: 52
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
  Reply With Quote
12-04-10, 04:22 PM   #3
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 113
That could be just the thing. Thanks!
  Reply With Quote
12-04-10, 09:59 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
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.
  Reply With Quote
12-05-10, 03:56 AM   #5
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 113
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.
  Reply With Quote
12-05-10, 08:18 PM   #6
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
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
  Reply With Quote
12-05-10, 09:19 PM   #7
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 113
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.
  Reply With Quote
12-07-10, 04:41 AM   #8
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
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.
  Reply With Quote
12-07-10, 05:51 AM   #9
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 113
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.
  Reply With Quote
12-07-10, 11:55 PM   #10
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
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.
  Reply With Quote
12-08-10, 04:36 AM   #11
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 113
Sounds great, so far
  Reply With Quote
12-08-10, 05:09 AM   #12
Jigain
A Molten Giant
 
Jigain's Avatar
Join Date: Jul 2009
Posts: 732
PutTheCatOut?

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


  Reply With Quote
12-08-10, 05:41 AM   #13
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 113
I like that too and it gets my vote, to go out as a fully fledged addon. I'm sure others would appreciate it.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Companion / mini-pet - Reminder?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off