Quantcast
Download
(31 Kb)
Download
Updated: 08/18/19 12:01 PM
Pictures
File Info
Compatibility:
Scalebreaker (5.1.5)
Elsweyr (5.0.5)
Wrathstone (4.3)
Updated:08/18/19 12:01 PM
Created:06/30/19 06:47 AM
Monthly downloads:121
Total downloads:299
Favorites:6
MD5:
5.1.5
PetZone  Updated this week!
Version: 2.2
by: Brotanks [More]
Lotta changes! Got all the zone data filled out that I could, though there's still one or two I need to hunt down. Version 2.0 involved a change to the way subzone ids are parsed and stored, so you'll probably lose a lot of your set pets. Sorry in advance. I'm still not happy with one or two of the zone groupings, "Main Quest" in particular, but that's going to take some more time to smooth out. If you have any suggestions on those groupings, or anything else, please leave a comment!

This addon requires the libraries LibAddonMenu-2.0 and LibZone.

PetZone: Automatic Vanity Pet Switching By Area!
This is a fairly simple addon that lets you automatically switch vanity pets in different zones and subzones! If you've ever wanted your housecat following you around Rawl'kha, to be replaced by a swamp jelly when you head out into the wilderness, to be switched to a chicken when you enter a dungeon, then this mod is for you.

Features:
-Set a pet for a specific subzone within a zone, for -ALL- subzones within a zone, or for -ALL- zones
-Highest priority goes to your specific subzone choice, then to your entire zone choice, then your all zones choice. If none of those three have choices defined, then you continue with whatever pet you had out already
-Pet choices also include -NONE-, which puts away your pets in that area, and -RANDOM-, which summons a random pet
-You can choose to automatically hide your pet when you enter combat, join a group, or enter a dungeon or delve


That's about it! All thanks for this mod go directly to Baertram, as I ruthlessly and inexpertly hacked apart their FCO Mounty mod to make it. Seriously! I didn't know any lua when I started this, and a good chunk of the code in here is only slightly modified from Baertram's. I'm mostly considering this addon complete except for filling out the rest of the zone data, but if you think it could use something else then leave a comment and I'll consider it.
2.2
  • API bump for Scalebreaker! Added Moongrave Fane and Lair of Maarselok to the Group Dungeons.
  • Related to above, added some additional checks to stop it throwing errors in unknown zones.
  • Removed "Help the developer option", as it's no longer needed. Thanks folks!

2.1:
  • Made the "hide in combat" option more robust. Spamming skills from the start of combat tends to interrupt collectible usage, who knew?
  • Moved Fang Lair with the rest of the dungeons.

2.0:
  • Changed the way subzone ids are parsed, for more granular control of area groupings. Will probably break previous pet assignments
  • Various under-the-hood changes for more flexibility in working with subzone ids
  • Changed some subzone groupings to make them more accessible
  • Put in ALL THE SUBZONES. Or at least, the vast majority. One or two are still missing and I might have mis-assigned a few; if you run into anything odd please leave a comment on the add-on page

1.1:
  • Added options to hide pets while in a group or in dungeons and delves

1.0:
  • Initial release
Optional Files (0)


Archived Files (4)
File Name
Version
Size
Uploader
Date
2.1
31kB
Brotanks
07/21/19 09:50 PM
2.0
31kB
Brotanks
07/17/19 06:37 PM
1.1
20kB
Brotanks
07/01/19 09:39 PM
1.0
20kB
06/30/19 06:47 AM


Post A Reply Comment Options
Unread 07/19/19, 01:14 PM  
Brotanks
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 4
Uploads: 1
Originally Posted by Baertram
Haha yea, I'm glad the mounts cannot be used in "most" dungeons, and at least no delves. So I did not have to add all these subzones
I'd just go with the "main zoneId" as I don't think one would like to have pet1 at the entrance and pet2 at the 2nd lower floor etc.
I basically ended up spending several boring days condensing down the game's map texture list and connecting it all up to LibZone. I... had to guess on a few things

I did work out how to connect multiple ids to one name though! So there aren't 6 entries for different parts of one dungeon. Now it's a matter of slowly finding which ids are mislabeled and rearranging the categories properly. It's gonna be a slog. If you ever need subzone ids for anything, my zonedata file is getting comprehensive.
Report comment to moderator  
Reply With Quote
Unread 07/18/19, 05:17 AM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2288
File comments: 2521
Uploads: 57
Right now, though, my main problem is that quite a few delves have too many different subzone Ids (_base, _room01, _room02, etc) and I don't think anyone is going to want THAT much granular control of their vanity pets I put together a table that associates one subzone name with multiple ids, and I'm trying to use it to assign one pet to multiple ids at once. It's a learning process 0__o
Haha yea, I'm glad the mounts cannot be used in "most" dungeons, and at least no delves. So I did not have to add all these subzones
I'd just go with the "main zoneId" as I don't think one would like to have pet1 at the entrance and pet2 at the 2nd lower floor etc.
Report comment to moderator  
Reply With Quote
Unread 07/07/19, 09:27 AM  
Brotanks
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 4
Uploads: 1
Originally Posted by Baertram
No, it's fine. Just go on
I remember there is an addon which does this, near crafting tables: Dolgubons Lazy Writ Creator
From my addons I know it's hard to check if you are inside a delve. A dungeon is no problem as there are API functions for it.
But a delve can only be determinded via some "guessing functions" like "are we in a group" or "are we on a map where the name of a POI contains delve".
You can check my addon WhisList, and check the file functions.lua. I think near the end there is such a check fucntion for dungeon, delve, or public dungeon.
Thanks for the tips! I added an option to disable pets while grouped, and a quick one to disable pets in dungeons via the IsUnitInDungeon command. The wiki says that one works in delves as well; if it ends up covering too much or too little I'll try something else.

Right now, though, my main problem is that quite a few delves have too many different subzone Ids (_base, _room01, _room02, etc) and I don't think anyone is going to want THAT much granular control of their vanity pets I put together a table that associates one subzone name with multiple ids, and I'm trying to use it to assign one pet to multiple ids at once. It's a learning process 0__o
Report comment to moderator  
Reply With Quote
Unread 07/02/19, 06:51 AM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2288
File comments: 2521
Uploads: 57
No, it's fine. Just go on
I remember there is an addon which does this, near crafting tables: Dolgubons Lazy Writ Creator
From my addons I know it's hard to check if you are inside a delve. A dungeon is no problem as there are API functions for it.
But a delve can only be determinded via some "guessing functions" like "are we in a group" or "are we on a map where the name of a POI contains delve".
You can check my addon WhisList, and check the file functions.lua. I think near the end there is such a check fucntion for dungeon, delve, or public dungeon.

Originally Posted by Brotanks
Originally Posted by Baertram
Hi, thanks for making this addon.

One thing for the future:
Please ask before just copying other devs work (addons, libraries,... )
It's no big deal for me with this addon (FCOMounty) but it's not the way it should normally go

@zoneData for delves and dungeons:
Imo pets shouldn't be enabled in dungeons. Delves, well, if you must. But inside dungeons they really annoy other users and do not help (at least non-combat pets) at all.
Maybe inside a role-play-only group
Sorry about that =X I'm not a person who codes at all, but asking first should have been more obvious in retrospect. If you want me to take it down, I totally understand.

As for dungeons and delves, I know what you mean But I figure this mod will appeal more to roleplaying types anyway, and I did include a "none" option to put away all pets in a given area. Maybe an option to automatically stow away pets when you enter a dungeon? Or when you join a group? Time to go skim the wiki again..
Report comment to moderator  
Reply With Quote
Unread 06/30/19, 12:35 PM  
Brotanks
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 4
Uploads: 1
Originally Posted by Baertram
Hi, thanks for making this addon.

One thing for the future:
Please ask before just copying other devs work (addons, libraries,... )
It's no big deal for me with this addon (FCOMounty) but it's not the way it should normally go

@zoneData for delves and dungeons:
Imo pets shouldn't be enabled in dungeons. Delves, well, if you must. But inside dungeons they really annoy other users and do not help (at least non-combat pets) at all.
Maybe inside a role-play-only group
Sorry about that =X I'm not a person who codes at all, but asking first should have been more obvious in retrospect. If you want me to take it down, I totally understand.

As for dungeons and delves, I know what you mean But I figure this mod will appeal more to roleplaying types anyway, and I did include a "none" option to put away all pets in a given area. Maybe an option to automatically stow away pets when you enter a dungeon? Or when you join a group? Time to go skim the wiki again..
Report comment to moderator  
Reply With Quote
Unread 06/30/19, 10:53 AM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2288
File comments: 2521
Uploads: 57
Hi, thanks for making this addon.

One thing for the future:
Please ask before just copying other devs work (addons, libraries,... )
It's no big deal for me with this addon (FCOMounty) but it's not the way it should normally go

@zoneData for delves and dungeons:
Imo pets shouldn't be enabled in dungeons. Delves, well, if you must. But inside dungeons they really annoy other users and do not help (at least non-combat pets) at all.
Maybe inside a role-play-only group
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: