Quantcast
Download
(72 Kb)
Download
Updated: 03/20/19 02:12 PM
Compatibility:
Wrathstone (4.3)
Updated:03/20/19 02:12 PM
Created:03/13/19 07:00 PM
Monthly downloads:541
Total downloads:559
Favorites:7
MD5:
4.3
Auto Category - Wrathstone  Updated less than 3 days ago!
Version: 1.37
by: Shadowfen [More]
Depends on the following (separately installed) libraries: LibStub, LibAddonMenu

A new version of RockingDice's Auto Category for Wrathstone with a bug fix and a couple of user-requested enhancements.

I've tried but not been able to contact crafty35a to offer him my changes.
1.37 Changes:
Released by Shadowfen
  • New filter function: getmaxtraits()
    When used with posions and potions, such as this rule:
    type("poison","potion") and getmaxtraits() <=2
    it can tell you which are crafted (i.e. having more than one trait).
    This new feature is courtesy of Tonyleila.
  • Updated the specialized item types. This adds:
    Specialized Item Types (sptype):
    o trophy_toy
    o holiday_writ

1.36 Changes:
Released by Shadowfen
  • Updated the item types, specialized types, filter types, and trait types lists with the latest values from Wrathstone. This adds:
    Item Types (type):
    o jewelry_booster
    o jewelry_material
    o jewelry_raw_booster
    o jewelry_raw_material
    o jewelry_raw_trait
    o jewelry_trait
    o recall_stone
    Specialized Item Types (sptype):
    o furnishing_attunable_crafting_station
    o furnishing_material_jewelry
    o recall_stone_keep
    o recipes_jewelry_sketch_furnishing
    o trophy_collectible_fragment
    o trophy_upgrade_fragment
    o weapon
    Filter Types (filtertype):
    o jewelry
    Trait Types (traittype):
    o jewelry_bloodthirsty
    o jewelry_harmony
    o jewelry_infused
    o jewelry_intricate
    o jewelry_protective
    o jewelry_swift
    o jewelry_triune

1.35 Changes:
Released by Shadowfen
  • Bumped API version for Wrathstone
  • LibStub and LibAddonMenu-2.0 must now be installed separately from AutoCategory.
  • Added support for FCOIS dynamics 11-30.
  • Merged in Provision's integration fixes for IGV.
  • Added jewelry crafting materials, raw materials and boosters for the sptype() check
  • Fixed a crash when a rule could not compile.

1.34 Changes:
  • Added itemname() to match items by name. Returns true if the item name contains any of the provided strings (case insensitive), e.g. itemname("Maelstrom", "Alkosh")


1.33 Changes:
  • Bumped API version for Murkmire.


1.32 Changes:
  • More huge performance improvements! Thanks again to Shadowfen who did all the work here. (Pre-compile rules as they are changed)
  • Replaced Set Tracker support function GetSetTrackerState() with IsTracked(). If you used the old function, you will need to update your rule (sorry). This was done to bring the usage inline with the way the other similar functions work. Usage, e.g.: IsTracked("Sell/Decon", "Collecting")


1.31 Changes:
  • Big performance increase (2x or better for me), thank you to Shadowfen for the code change suggestion!
  • Updated libraries


1.30 Changes:
  • Added French translation. Big thanks to Hasgaad!


1.29 Changes:
  • HOTFIX - resolve errors at merchant due to Wolfhunter API changes.


1.28 Changes:
  • Bumped API version for Wolfhunter.


1.27 Changes:
  • Bumped API version for Summerset.
  • Added support for jewelry crafting ingredients. Note: you will need to either create a new rule yourself, or reset AutoCategory to default settings to grab the new default rule.
    To create your own rule, use
    Lua Code:

    filtertype("jewelrycrafting")

    To reset to default settings: In the Auto Category add-on menu, use the Defaults button. Then use the /reloadui command. Important: this will remove any custom rules/settings you have defined.
  • New API function "IsMarkedIS()" - use to test whether an item is marked with Item Saver. Note that FCO ItemSaver users should continue to use "IsMarked()"


1.26 Changes:
  • New API function "islocked()" - use to test whether an item has been locked.


1.24 Changes:
  • Resolve circular dependency issue with DoItAll (requires matching update to DoItAll).



1.23 Changes:
  • Added Set Tracker support! Use "getsettrackerstate()" to retrieve the name of the Set Tracker category, if an item is tracked.
  • Added charlevel() and charcp() to pull current character level and CP. Can be used to compare item level to your character level with a custom rule. (Thanks to VulcanTourist)


1.22 Changes:
  • You can now define separate settings for your home storage chests (they will take their initial settings from your bank settings, but can be customized at will).


1.21 Changes:
  • Added support for home storage chests (big thanks to raj72616a). Currently, they will use the settings selected for your bank (no custom settings for home chests yet).
  • Bumped API version for Dragon Bones.
  • New maintainer (crafty35a).



1.19 Changes:
  • Fixed Localization.
  • New Feature: Collapsed/Expanded status can be saved now. You can turn it on in the general setting menu.


1.18 Changes:
  • Fixed Bug: IGV will show the last category correctly.
  • Fixed Bug: Items Count can be turned off permanently.
  • Fixed Bug: Quest Panel will not complain about lua error.


1.17 Changes:
  • Removed debug logs in destruct/improvement panel


1.16 Changes:
  • New Feature: Collapsible Category. You can now click the header to fold all items inside. Get an overall view of your inventory! Context Menu is available, you can collapse/expand all headers with one click.
  • New Feature: Hide-able Category. You can hide some categories to focus on the items you need to deal with. Also you can hide the items that are not matched in the 'Other' category. Can be set in bag setting menu.
  • New Feature: Items Count. You can get a total number about how many items inside the category. This can be turned off in the general setting menu.
  • Account Wide setting changed: You can switch account wide/character wide for each of your characters. (* Need to select again if you use character setting before, don't affect the bag settings)
  • Fixed bug: Removed duplicated rules in bag setting.
  • Fixed bug: German set names should be able to be matched now.
  • Changed api:keepresearch()
  • After a lot of tests, the api is not working fine. So I decided to make the api work more simple: It will match all the items can be researched. If you want better result, please use it with other api together. This is a basic idea to filter the item that is not part of a set and can be researched:
    Lua Code:

    keepresearch() and not isset()
  • New api:isset() api:ismonsterset()


1.15 Changes:
  • New feature: Category header's height is customizable!
  • New feature: You can change the name of ungrouped Category.
  • New feature: Added a message in chat when toggling the add-on's function, and a switch for it to turn on/off.
  • Fixed bug: Toggling in Inventory Grid View should not result a bad layout.
  • Fixed bug: Removed tag should not to be restored after relog.
  • New Add-ons Integrated!
    Do It All: You can now use it with AC together.
    Alpha Gear: Added a new api:alphagear
    Master Merchant: Added a new api:getpricemm
    Tamriel Trade Centre: Added a new api:getpricettc
  • New api:isinbank


1.14 Changes:
  • CwC is supported!
  • Fixed integration for Inventory Grid View(3.2).


1.13 Changes:
  • Fixed Bug: Setting for Craft Station is not working.
  • Added API:
    Code:

    getquality

    please see api:getquality
  • Updated localization for Chinese.


1.12 Changes:
  • New Function: Export to all bag settings. You can now replace all bag settings by one of them.
    Added API:
    Code:

    quality

    please see api:quality
  • Fixed Bug: Import from bag setting will incorrectly make settings be linked together.


1.11 Changes:
  • New bags supported: Guild Bank / Craft Bag / Craft Station for both keyboard and gamepad mode.
  • New function: Import from bag setting: you can import from a bag setting to replace current one. No need to create it from the beginning. Make backups by copying your AutoCategory.lua in SavedVariables folder!
  • New add-on supported: Quick Menu you can toggle Auto Category by Quick Menu to save a key binding, check it out!
  • Added API:
    Code:

    sellprice
    islearnable

    please see api:sellprice and api:islearnable for more info.


1.10 Changes:
  • Added custom names from FCO Item Saver
  • Added API:
    Code:

    armortype
    weapontype

    please see api:armortype and api:weapontype for more info.
  • Added deconstruct & improvement support for keyboard mode.


1.09 Changes:
  • Integrated FCO Item Saver
    Added API:
    Code:

    ismarked

    please see api reference and tutorial and examples for more info.
    Added Keybinding to toggle on/off.


1.08 Changes:
  • Fixed Category 'Trait/Style Gems' (If not changed, please try to restore to defaults)
  • Added Localization support.


1.07 Changes:
  • Fixed a rare issue of IGV integration.


1.06 Changes:
  • Fixed Quest tab issue.
  • Adjusted the height of header to the same as item row.
  • Added custom appearance of header text. You can set up them in the setting menu (or type /ac)


1.05 Changes:
  • Fixed multiple add-on compatible issue.
  • Fixed auto set name in different languages.
  • Added API:
    Code:

    iscrafted

    please see api reference and tutorial for more info.


1.04 Changes:
  • Added gamepad trade inventory support. Thanks @catsith105 for testing!


1.03 Changes:
  • Integrated with 'Inventory Grid View'
  • Added a tutorial button.
  • Added a wiki home page and tutorial page.


1.02 Changes:
  • Fixed banking issue with deposit/withdraw items.


1.01 Changes:
  • Updated lib: LibAddonMenu to r24
  • Refined Addon Setting Menu
Optional Files (0)


Archived Files (2)
File Name
Version
Size
Uploader
Date
1.36
71kB
Shadowfen
03/16/19 08:24 PM
1.35
71kB
Shadowfen
03/13/19 07:00 PM


Post A Reply Comment Options
Unread 03/17/19, 02:43 PM  
Tonyleila
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 286
File comments: 746
Uploads: 7
Can you please add this to the Rule Functions:

Lua Code:
  1. local function IsCraftedPotion(itemLink)
  2.     local itemType = GetItemLinkItemType(itemLink)
  3.     return (itemType == ITEMTYPE_POTION or itemType == ITEMTYPE_POISON) and (select(24, ZO_LinkHandler_ParseLink(itemLink)) ~= "0")
  4. end
  5.  
  6. function AutoCategory.RuleFunc.GetMaxTraits( ... )
  7.     local fn = "getmaxtraits"
  8.     local itemLink = GetItemLink(AutoCategory.checkingItemBagId, AutoCategory.checkingItemSlotIndex)
  9.     if IsCraftedPotion(itemLink) then
  10.         local quality = ITEM_QUALITY_NORMAL
  11.         for i = 1, GetMaxTraits() do
  12.             local hasTraitAbility = GetItemLinkTraitOnUseAbilityInfo(itemLink, i)
  13.  
  14.             if hasTraitAbility then
  15.                 quality = quality + 1
  16.             end
  17.         end
  18.         return quality
  19.     else
  20.         local _, _, _, _, _, _, _, quality = GetItemInfo(AutoCategory.checkingItemBagId, AutoCategory.checkingItemSlotIndex)
  21.         return quality
  22.     end
  23. end

and at the bottom

Lua Code:
  1. -- Potion/Poison Traits
  2.     getmaxtraits = AutoCategory.RuleFunc.GetMaxTraits,

This will let me filter out potions poisons with X traits. Ingame I use type("poison","potion") and getmaxtraits() <=2 to only show potions/poisons with 1 trait.

Tested and working
__________________
My Addons @ WoWInterface
Report comment to moderator  
Reply With Quote
Unread 03/17/19, 09:30 AM  
Tonyleila
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 286
File comments: 746
Uploads: 7
__________________
My Addons @ WoWInterface
Report comment to moderator  
Reply With Quote
Unread 03/16/19, 11:15 PM  
Shadowfen
AddOn Author - Click to view AddOns

Forum posts: 31
File comments: 200
Uploads: 8
Originally Posted by Tonyleila
Originally Posted by Shadowfen
I did not find either SPECIALIZED_ITEMTYPE_TROPHY_TOY or SPECIALIZED_ITEMTYPE_HOLIDAY_WRIT in the globals lists so did not add them.
Hmm well can you take a closer look then?

https://wiki.esoui.com/Globals#SpecializedItemType

I already tested it ingame and the filters work, ZOS is using them already.
I'll take a look.

Originally Posted by Tonyleila

And you added in the lua right but wrote it wrong in the patchnotes :

o trophy_upgade_fragment
shoud be called
o trophy_upgrade_fragment
Thanks, I'll correct that.

Originally Posted by Tonyleila
This 2 are still missing:
["jewelry"] = SPECIALIZED_ITEMTYPE_JEWELRYCRAFTING,
["jewelry"] = ITEMTYPE_JEWELRYCRAFTING,
Neither are in https://wiki.esoui.com/Globals#SpecializedItemType or in the other llist that I checked.
Report comment to moderator  
Reply With Quote
Unread 03/16/19, 09:26 PM  
Tonyleila
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 286
File comments: 746
Uploads: 7
Originally Posted by Shadowfen
For the other points that you raised in your post, I'll have to get to them later as this is already getting long and I need to leave.
Woud also be nice if you add this user friendly filters that I added that just lets you write "glyph" instead of "glyph_armor","glyph_jewelry","glyph_weapon", because it was lots of work.

["glyph"] = { [SPECIALIZED_ITEMTYPE_GLYPH_ARMOR] = true, [SPECIALIZED_ITEMTYPE_GLYPH_JEWELRY] = true, [SPECIALIZED_ITEMTYPE_GLYPH_WEAPON] = true },

["glyph"] = {[ITEMTYPE_GLYPH_ARMOR] = true, [ITEMTYPE_GLYPH_JEWELRY] = true, [ITEMTYPE_GLYPH_WEAPON] = true},

Just add this 2 tables and then copy everything below --============Rule Function==============-- from here https://pastebin.com/f5RY2CF7
__________________
My Addons @ WoWInterface
Report comment to moderator  
Reply With Quote
Unread 03/16/19, 09:00 PM  
Tonyleila
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 286
File comments: 746
Uploads: 7
Originally Posted by Shadowfen
I did not find either SPECIALIZED_ITEMTYPE_TROPHY_TOY or SPECIALIZED_ITEMTYPE_HOLIDAY_WRIT in the globals lists so did not add them.
Hmm well can you take a closer look then?

https://wiki.esoui.com/Globals#SpecializedItemType

I already tested it ingame and the filters work, ZOS is using them already.

Thanks for the update!


EDIT: also not sure why you list this 2 things as new that already were in the list before?

o trophy_collectible_fragment
o weapon


And you added in the lua right but wrote it wrong in the patchnotes :

o trophy_upgade_fragment
shoud be called
o trophy_upgrade_fragment


This 2 are still missing:
["jewelry"] = SPECIALIZED_ITEMTYPE_JEWELRYCRAFTING,
["jewelry"] = ITEMTYPE_JEWELRYCRAFTING,
__________________
My Addons @ WoWInterface
Last edited by Tonyleila : 03/16/19 at 09:15 PM.
Report comment to moderator  
Reply With Quote
Unread 03/16/19, 08:51 PM  
Shadowfen
AddOn Author - Click to view AddOns

Forum posts: 31
File comments: 200
Uploads: 8
Originally Posted by Tonyleila
Glad someone took this over.
I'm kind of hoping it's a temporary thing until crafty35a gets back.

Originally Posted by Tonyleila
So I have heavily modified my sorting Category profil and noticed a problem and a few missing tags, It woud be great if you coud add them/fix them in the AutoCategory_RuleFunc.lua (and if possible not rename them so I don't have to rewrite all my filters):
I've gone through and updated the lists of things that Zenimax provides and made them accessible to AutoCategory filters. That might answer some of the points that you raised.

The lockpick/tool issue is a Zenimax problem that I noticed some time ago - although there is a LOCKPICK tag, Zenimax does not actually use it as you have noticed. Someday they may start using their own tag. Shrug. I typically filter for TOOLS and LOCKPICK to make sure I get my lockpicks; or alternatively I might use itemname("lockpick").

I did not find either SPECIALIZED_ITEMTYPE_TROPHY_TOY or SPECIALIZED_ITEMTYPE_HOLIDAY_WRIT in the globals lists so did not add them.

As for ["jewelrycrafting"] = ITEMFILTERTYPE_JEWELRYCRAFTING (and its kindred), it is there because the game provides it. That of course does not guarantee that the game uses it or uses it correctly. Maybe one day they will fix it if it is broken; or remove it.

Originally Posted by Tonyleila
Crafting station: Setting the priority of the low level category or the sell (ornate) category to the bottom dosen't work (they will show in another category!) This realy needs a fix because its essential for me.
You can add to the other category that it shows in another condition to say "and not traittype("ornate")" or something like that.
Items show up in the first category that they match by design.

Originally Posted by Tonyleila
getquality() -- the wiki dosen't go into details but I found out getquality() <= 3 works! just shoud be better explained.
I don't have access to the wiki, so it is what it is.

For the other points that you raised in your post, I'll have to get to them later as this is already getting long and I need to leave.
Report comment to moderator  
Reply With Quote
Unread 03/16/19, 11:54 AM  
Tonyleila
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 286
File comments: 746
Uploads: 7
Glad someone took this over. So I have heavily modified my sorting Category profil and noticed a problem and a few missing tags, It woud be great if you coud add them/fix them in the AutoCategory_RuleFunc.lua (and if possible not rename them so I don't have to rewrite all my filters):

Full file to download: https://pastebin.com/f5RY2CF7

Missing/replace:
-------------


["repair"] = SPECIALIZED_ITEMTYPE_TOOL, -- confusing that this type is called "tool" add repair and LOCKPICK too so its better to find because other one is called crown repair and LOCKPICK is a TOOL so if you try to add "lockpick" it won't filter out lockpicks!!
["repair"] = ITEMTYPE_TOOL,
["lockpick"] = ITEMTYPE_TOOL,
["lockpick"] = SPECIALIZED_ITEMTYPE_TOOL,

["lockpick"] = SPECIALIZED_ITEMTYPE_LOCKPICK, -- may want to rename this to "lockpick_2" because it WILL NOT filter lockpicks! No idea what it filters actually
["keep_recall"] = SPECIALIZED_ITEMTYPE_RECALL_STONE_KEEP,
["trophy_upgrade_fragment"] = SPECIALIZED_ITEMTYPE_TROPHY_UPGRADE_FRAGMENT,
["holiday_writ"] = SPECIALIZED_ITEMTYPE_HOLIDAY_WRIT,
["trophy_toy"] = SPECIALIZED_ITEMTYPE_TROPHY_TOY,
["trophy_collectible_fragment"] = SPECIALIZED_ITEMTYPE_TROPHY_COLLECTIBLE_FRAGMENT,



["jewelry_intricate"] = ITEM_TRAIT_TYPE_JEWELRY_INTRICATE, -- WHY is this missing lol
["jewelrycrafting"] = ITEMFILTERTYPE_JEWELRYCRAFTING, -- remove this because 1) its not working 2) shoud be called jewelry since other one is "armor" and "weapons"
["jewelry"] = SPECIALIZED_ITEMTYPE_JEWELRYCRAFTING, -- not working?
["jewelry"] = ITEMTYPE_JEWELRYCRAFTING, --not working?
["jewelry"] = ITEMFILTERTYPE_JEWELRYCRAFTING, -- not working?



Also why is there no tag for just "glyph" I'm not good in lua and this list dosn't have a tag for all glyphs so I just added it as you can see e.g. in line 60


Dosen't work:
-------------


Crafting station: Setting the priority of the low level category or the sell (ornate) category to the bottom dosen't work (they will show in another category!) This realy needs a fix because its essential for me.

Requests:
-----------

1) Possible to add a category for items that can be turned into crown gems?

2) I'm trying to create a fitler to check for items that I use for crafting dailys. This is my current setup:

Code:
iscrafted() and not equiptype("invalid") and not isset() or type ("glyph_armor","glyph_jewelry","glyph_weapon","poison","food","drink","potion") and iscrafted() and quality("white","green")
the problem with this is that it shows poisons that I did not craft for the dailys with more then 1 trait. I looked into Crafted Potions and I guess you coud create a rule with getmaxtraits that allowes me to filter out potions/poisons with more effects.

3) I also plan on releasing my own version of the "AutoCategory_Defaults.lua" so that ppl can easy copy all my rules. If that is not too complicated it woud be interesting if there coud be default "profils" so that my rulles coud be implemented right into the addon?


INFOS:
-----------

getquality() -- the wiki dosen't go into details but I found out getquality() <= 3 works! just shoud be better explained.

"traitstring("ornate") -- this only works in english because it returns the traits in german for me, instead I had to work with "armor_ornate","weapon_ornate","jewelry_ornate" bit complicated..
__________________
My Addons @ WoWInterface
Last edited by Tonyleila : 03/16/19 at 07:37 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: