Thread Tools Display Modes
05-16-09, 04:04 PM   #1
starfeather
A Defias Bandit
 
starfeather's Avatar
Join Date: May 2009
Posts: 3
Cool vanity pet swapping

Hi, I love vanity pets, and I'm indecisive. So I use a macro to switch them out. I wonder if anyone could make it into a small add on. The reasons being:
1. It's too long to include a stop action, and
2. it would be awesome to have it not active during combat or fishing.

The macro is:

Constantly changing vanity Pet Macro
This macro will swap your pets constantly (except when mounted) every 30 seconds (or however many seconds you set it to)

/run AZ=nil; t=0; CreateFrame("Frame","AZ",UIParent) AZ:SetScript("OnUpdate", function(s,e) t=t+e; if t>30 then t=0; if IsMounted() ~= 1 then CallCompanion("CRITTER", random(GetNumCompanions("CRITTER"))) end end end)

Replace "t>30" with the amount of seconds you want,Reload UI after changing the seconds, note first pet won't appear until 30 seconds

Unfortunately the only way to STOP the above macro is to make another macro, OR reload UI.
The Stopping macro is :
/run AZ:Hide()

anyone have any ideas?

Thanks!
  Reply With Quote
05-16-09, 04:14 PM   #2
Sepioth
A Molten Giant
AddOn Author - Click to view addons
Join Date: Apr 2005
Posts: 894
Try this GupPet
  Reply With Quote
05-16-09, 04:15 PM   #3
Vis
A Pyroguard Emberseer
 
Vis's Avatar
Join Date: Mar 2009
Posts: 1,827
Both of these addons look like they do what you would like

Petleash: http://www.wowinterface.com/download...-PetLeash.html

GupPet: http://www.wowinterface.com/download...56-GupPet.html
  Reply With Quote
05-16-09, 04:21 PM   #4
starfeather
A Defias Bandit
 
starfeather's Avatar
Join Date: May 2009
Posts: 3
thanks guys, but neither of those do what the macro does.
It's not just about having a pet out, but about having a different pet automatically summoned every 30 seconds. Constantly changing pet, not just a one time pet call whenever you are in new zone etc....

thanks though
  Reply With Quote
05-16-09, 04:30 PM   #5
Vis
A Pyroguard Emberseer
 
Vis's Avatar
Join Date: Mar 2009
Posts: 1,827
I just did a quick perusal of Petleash's Lua file. It appears that their is a timer built into it for the auto summon of pets. I'm not exactly good with code but it appears it will do what you'd like.



****EDIT:

It does autoswitch pets. I just tried it to verify for you. Here's a screenshot from the in game config:
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_051609_183410.jpg
Views:	613
Size:	306.6 KB
ID:	2654  

Last edited by Vis : 05-16-09 at 04:35 PM.
  Reply With Quote
05-16-09, 04:37 PM   #6
nickyjean
Premium Member
Premium Member
Join Date: Sep 2008
Posts: 284
Try Nugminipet, in it's window it has an option for time between pet changes. It looks to be in minutes but maybe you can do a .5 for 30 seconds. Does that help?
  Reply With Quote
05-16-09, 05:43 PM   #7
mikma
A Cyclonian
 
mikma's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 45
This is blasphemy, this is madness!

I hope you don't need to do anything while that script is running
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » vanity pet swapping


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