Quantcast
Download
(87 Kb)
Download
Updated: 05/22/17 01:27 PM
Pictures
File Info
Compatibility:
Morrowind (3.0)
Homestead (2.7)
Updated:05/22/17 01:27 PM
Created:03/15/17 11:18 AM
Monthly downloads:825
Total downloads:1,930
Favorites:17
MD5:
3.0
InventoryManager  Updated this week!
Version: 1.3.4
by: iwontsay [More]
Not yet another Junker or Bank Addon, this Inventory Manager takes care of your needs to automatically stash, retrieve and dispose of your items as you see fit.

This addon works in conjunction with the CraftStore addon to determine which recipes, style motifs or traits are wanted by your current character or your alts and lets you determine whether to put the given recipes into the bank or even get them from the bank if your character deems them suitable.

Rather than working with a preset list of actions and item groupings, this addon allows to set a list of rules which are applied on the items you loot, your inventory or the bank, as you wish. Think the mail filter in Outlook or Thunderbird and you get the idea.

To use the full range of functions within these AddOns, following AddOns are suggested for installation as well:
* CraftStore (old 3.00+ or CraftStore Fixed and Improved, both work) for identifying your character's and alt's needs
* FCO ItemSaver for customized marking options

---- Special thanks to:
* Baertram (Your developer docs for FCO ItemSaver really saved the day)
Version 1.3.4
* API version 100019
* Fix for item names and icons not showing (and other things) during processing

Version 1.3.3
* Hotfix for filtering for specific marks with FCOIS >= 1.0.0

Version 1.3.2
* Fixed bug which triggered on logging in with a new character
* Support for FCOIS >= 1.0.0 (thanks Baertram!)

Version 1.3.1
* Fixed recipe tracking for furnishing blueprints

Version 1.3.0
* Added command /im settings
* Fixed LUA error in RuleEdit when FCOIS is not present
* Added maximum execution count for rules
* Revamped Banker - more robust, better performance

Version 1.2.2
* Hotfix: Respect FCOIS Locking on Deconstruction

Version 1.2.1
* Hotfix: Inventory action on pickup

Version 1.2.0
* Translation update
* Made Seller more robust: Revenue is tallied up correctly
* Added negative message for dryrun if FCOIS denies a specific action
* Added Deconstruct Inventory action
* Chained in Laundering when selling to Fences
* Generalized selling into ruleset
* Added 'junked' as filter criterion
* Added more delay options
* Added /im run command
* Extended FCO marking detection with static markers

Version 1.1.1
* Fixed bug when trying to set FCO Marker before having done a dryrun before
* Fixed for trait not being cleared when non-trait itemtype is selected

Version 1.1.0
* Updated Readme
* Included a button to toggle Auto-Sell on or off
* Performance improvement on bank transactions
* Added FCO ItemSaver support for dynamic flags
* Included detection and support for CraftStore Fixed And Improved

Version 1.0.1
* Fixed bug which made Destroy Items nonfunctional
Optional Files (0)


Archived Files (12)
File Name
Version
Size
Author
Date
1.3.3
87kB
iwontsay
05/22/17 01:25 PM
1.3.3
87kB
iwontsay
05/02/17 12:19 PM
1.3.2
87kB
iwontsay
05/02/17 12:03 PM
1.3.1
86kB
iwontsay
04/04/17 11:03 AM
1.3.0
86kB
iwontsay
04/03/17 08:44 AM
1.2.2
86kB
iwontsay
03/31/17 02:49 PM
1.2.1
86kB
iwontsay
03/31/17 01:07 PM
1.2.0
86kB
iwontsay
03/31/17 12:19 PM
1.1.1
78kB
iwontsay
03/21/17 11:33 PM
1.1.0
78kB
iwontsay
03/20/17 10:58 AM
1.0.1
76kB
iwontsay
03/16/17 11:00 AM
1.0.0
76kB
iwontsay
03/15/17 11:18 AM


Post A Reply Comment Options
Unread 05/25/17, 01:35 PM  
iwontsay
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 31
Uploads: 3
Originally Posted by wambo
Strangely I get a warning that one of the "bags" is full. But neither my inventory nor the bank account is.
Mabye IM is still not used to twice as big bank accounts due to Eso+ ?
Could be possible. As well as items not being pulled from the bank. If the system internally works with two separate inventories and just mixes these two when displaying, items which happen to end up in the ESO+ bank extension inventory might end up being ignored.

Will have to check it.
Report comment to moderator  
Reply With Quote
Unread 05/24/17, 08:44 AM  
wambo

Forum posts: 6
File comments: 29
Uploads: 0
Strangely I get a warning that one of the "bags" is full and no further transactions are made. But neither my inventory nor the bank account is full.
Mabye IM is still not used to twice as big bank accounts due to Eso+ ?

Oh and in addition to "no trait" I'd still love a "any gear marks" for the static marks
Last edited by wambo : 05/25/17 at 09:57 PM.
Report comment to moderator  
Reply With Quote
Unread 05/21/17, 07:23 AM  
Techbro13

Forum posts: 5
File comments: 34
Uploads: 0
Also a trait filter option for "No Trait" would be cool
Report comment to moderator  
Reply With Quote
Unread 05/21/17, 12:00 AM  
Techbro13

Forum posts: 5
File comments: 34
Uploads: 0
Would it be possible to add support for pChat? or a option to turn off chat notification when it does the actions?
Report comment to moderator  
Reply With Quote
Unread 05/18/17, 01:02 AM  
BigMons
 
BigMons's Avatar

Forum posts: 38
File comments: 166
Uploads: 0
I'll just wait for Morrowind to go live and see if this works after it's updated. On the LIVE server, I tried deleting every addon except for FCO Item Saver and Inventory Manager, and dry run and run over inventory still do nothing. I get a UI error if I try to run Inventory Manager without FCO Item Saver installed.

Installed Addons:
Warning: Spoiler


Rules printed to chat:
Warning: Spoiler


Intricate item in inventory (for testing) that doesn't get junked:
Warning: Spoiler
__________________
Ignotus on the official ESO forums.
@Ign0tus in-game on the NA PC server.
Last edited by BigMons : 05/18/17 at 01:03 AM.
Report comment to moderator  
Reply With Quote
Unread 05/15/17, 10:25 PM  
iwontsay
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 31
Uploads: 3
That's strange enough. Rules as simple as these are sort of in my everyday staple, as you see in the sample list I posted earlier.

I never did test it on the PTS - never logged on to the PTS at all - and did all the development and using on the live version, and it could very much be that they did some essential changes to the inventory structure from live to PTS which could break this addon, and maybe lots of others, too.

That you don't see any message during the dry run means that the filtering doesn't work correctly. It could be because of the PTS, or another addon interfering, though even both is highly unlikely, we simply can't rule it out, especially since you say it doesn't work on either one.

Guess in six days at the latest we will know, one way or another, since early access for Morrowind surely requires a major update of ESO. And it couldn't get much earlier than that because it takes days for me to download the essential game data to log on to the PTS, given my internet connection.
Last edited by iwontsay : 05/15/17 at 10:26 PM.
Report comment to moderator  
Reply With Quote
Unread 05/11/17, 11:12 PM  
BigMons
 
BigMons's Avatar

Forum posts: 38
File comments: 166
Uploads: 0
Exclamation Another Simpler Test

One last test I tried on PTS. I created 2 rules and printed to chat:
Rule 1: put in bank any ornate item
Rule 2: put in bank any intricate item
I have an ornate diamond necklace and intricate rubedite helm in my inventory. I called the banker assistant and opened my bank. Received chat message:
All transactions sent
I opened my inventory and see that the two items were not moved to the bank. It did however move gold and Tel Var Stones. I'd like to be able to disable the currency functions, assuming I ever get the rest of the addon to work.
__________________
Ignotus on the official ESO forums.
@Ign0tus in-game on the NA PC server.
Report comment to moderator  
Reply With Quote
Unread 05/11/17, 09:56 PM  
BigMons
 
BigMons's Avatar

Forum posts: 38
File comments: 166
Uploads: 0
Question PTS Compatibility?

Sorry about the length of this reply. I'm trying to be thorough and include everything.
-----------------------------
The stolen blue-quality well-fitted shield was something that I had in my inventory on LIVE that I was just trying to test with. I'm actually playing on PTS, but I wanted to see if the addon works on LIVE before I posted here. I tried a few different rules on PTS and tried tweaking them multiple ways and could never get it to mark anything as junk or print anything to chat when trying a dry run. Do you know if it works with PTS? I didn't do as much LIVE testing beyond trying to get that one shield marked as junk.

What I was hoping to accomplish with the addon was a way to manage all of the PVP rewards that the server mails to you when you create a template character on PTS. A vast majority of the gear that I receive in the mail is trash that I can deconstruct. I really only wanted to keep the divines and infused stuff. I was hoping that InventoryManager would be able to auto mark all of the other traited gear as junk or deconstruct. I ended up getting it done with the beta version of FCOIS from Baertram. I wasn't aware that it could auto mark for deconstruct the set pieces based on their trait. I will try InventoryManager once more though, because I like the potential it has if I can get it to work.

EDIT: This is on PTS, which may be an issue; I don't know. I did not create a profile this time. Here are my steps:
  1. there was 1 rule already created for junking items; I clicked on delete rule, leaving no rules
  2. action: put to junk
  3. max execution count: 0 (unlimited) (I tried setting it to max/500 too, still didn't work)
  4. general type: apparel (I'm trying to junk some armor pieces)
  5. specific type: any (trying to be broad here, but I have tried heavy and shield as well with no luck)
  6. trait: reinforced (one of the many traits that I don't care about keeping)
  7. part of a set: on (all pieces are parts of sets from Rewards for the Worthy! mails)
  8. minimum quality: worn
  9. maximum quality: legendary (all pieces are blue or purple quality)
  10. FCO itemsaver marking: don't care
  11. in junk: off (not too sure what this is for unless it means run the rule on items already marked junk)
  12. stolen: off (none of the items are stolen)
  13. worthless: off (all of the items have some value)
  14. I then click on add rule before this one. This creates my rule as #1
  15. I then click on list rules. It prints to chat: Rule 1: put to junk any reinforced apparel which is part of a set
  16. I then click on dry run. Nothing is printed to chat.
  17. I then try run over inventory. I open the inventory and nothing is moved to junk.
I'm not sure what I'm missing here. I then tried using it on a non-set piece of random looted gear in my inventory. I have a blue quality Rubedo Leather Guards of Magicka in my inventory with trait well-fitted. I created a new rule and printed it to chat:
Rule 2: put to junk any well-fitted apparel
Dry run prints nothing and run over inventory fails to move the item to junk. There has to be something that I'm not doing correctly, but I don't know what it is.

EDIT2: I logged into LIVE and tried, still not working. Tried the following rule:
Rule 1: put to junk any divines apparel which is part of a set (I have a blue quality Arm Cops of Hunding's Rage with divines trait)
Dry run prints nothing and run over inventory failed to move the item to junk. I then tried this rule:
Rule 1: put to junk any intricate apparel (I have a white quality Ash Shield with intricate trait)
Dry run prints nothing and run over inventory failed to move the shield to junk. Here are the LIVE addons that I have installed:
  • StowIt (auto sheath weapons after combat)
  • Advanced Filters (inventory filters)
  • FCO ItemSaver
  • FCO Lockpicker
  • Harven's Improved Skills Window
  • InventoryManager
  • Item Name Fix (corrects the capitalization of item names after recent patch broke capitalization) I tried disabling this but still no luck
  • MailLooter (batch retrieves mail and attachments)
  • MyStatus (shows my status (afk/away/dnd/offline) on the chat window)
  • pChat (chat tweaks)
  • Slightly Improved Dialogues (puts a number in front of dialogue options, among other things)
  • Votan's Keybinder (save and apply keybinds across all characters)
  • Wykkyd Equip. Borders (puts item quality color border on gear on paper doll window)
  • Zolan's Addons: Auto Repair (auto repair my gear when I interact with a merchant)
__________________
Ignotus on the official ESO forums.
@Ign0tus in-game on the NA PC server.
Last edited by BigMons : 05/11/17 at 10:56 PM.
Report comment to moderator  
Reply With Quote
Unread 05/11/17, 11:24 AM  
iwontsay
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 31
Uploads: 3
What follows is a list of rules I have on one of my characters. She isn't the main crafter, but has dibs on anything unknown if the main crafter left it behind.

Rule 1: sell any junked item
Rule 2: destroy any junked worthless item
Rule 3: launder any stolen tool
Rule 4: launder any stolen trophy
Rule 5: pull from bank any weapon marked as crafted
Rule 6: pull from bank any apparel marked as crafted
Rule 7: sell any ornate item
Rule 8: deconstruct any intricate item
Rule 9: put in bank any weapon with quality from fine to legendary
Rule 10: put in bank any apparel with quality from fine to legendary
Rule 11: put in bank any item with any trait unknown to others
Rule 12: put in bank any weapon with any trait unknown
Rule 13: put in bank any apparel with any trait unknown
Rule 14: pull from bank any item with any trait unknown
Rule 15: put in bank any trophy
Rule 16: put in bank any glyph
Rule 17: put in bank any recipe
Rule 18: put in bank any style motif
Rule 19: put to junk any weapon
Rule 20: put to junk any apparel
Rule 21: put to junk any trash
Rule 22: put to junk any stolen treasure

In essence it takes care of the laundering and fencing of stolen stuff, keeps style motifs, recipes and items she may be interested in and are left behind by my crafter, except weapons and armor - one can keep them in the bank and still use them for research.

Rule five and six are for her gear updates. On the crafter, FCOIS tacks the custom mark "crafted" on to the created items which are automatically put into the bank... and retrieved here.

Feel free to take ideas from this list - and I think this is the best example why I ever started to write this addon
Last edited by iwontsay : 05/11/17 at 11:24 AM.
Report comment to moderator  
Reply With Quote
Unread 05/11/17, 10:58 AM  
iwontsay
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 31
Uploads: 3
That's a rather specific rule you set up, and I can't rightly rule out a bug. Have you tried removing conditions and see if, or when, it matches?

When given, the action "Deconstruct" does exactly that when you visit an appropiate crafting station (like a woodworking station for staves and shields) and switch to the "deconstruct" tab. A rule like "deconstruct any intricate item" would be a crafter's friend.
Last edited by iwontsay : 05/11/17 at 11:01 AM.
Report comment to moderator  
Reply With Quote
Unread 05/10/17, 03:26 AM  
BigMons
 
BigMons's Avatar

Forum posts: 38
File comments: 166
Uploads: 0
Question Completely Lost

Either I do not understand what this addon does, or it doesn't do anything at all. The ONLY function that I can get to work that I've actually tried to use is the UnJunk all option. I've tried the version on this page, and I tried the version that Baertram offered.

To test, I set up the following rule, which is printed to chat when I click on list rules.
Rule 1: put to junk any stolen well-fitted shield which is part of a set
I have a stolen blue-quality well-fitted shield in my inventory that is part of a set called Darkstride. This appears to meet the criteria of the rule that I created. If I click on dry run, nothing is printed to chat. If I click on run over inventory, nothing happens. I was expecting the shield to be moved to junk. I'd prefer to deconstruct it, but I don't know what the action deconstruct actually does. Does it auto deconstruct when I go to a crafting station? Does it mark the item as deconstruct using FCO Item Saver? I've tried saving and loading the profile, and I've tried apparel>any instead of shield. I'm completely confused as to what this addon does.
__________________
Ignotus on the official ESO forums.
@Ign0tus in-game on the NA PC server.
Report comment to moderator  
Reply With Quote
Unread 05/05/17, 02:47 PM  
wambo

Forum posts: 6
File comments: 29
Uploads: 0
I tested your Update with FCOIS Beta and it works for me.

I would still love the "any Gear mark" "any dynamic icon" options in addition to "any mark"

Originally Posted by iwontsay
Thanks for the heads up. I had very little time in recent days, but I'll try it out and see what happens.
Report comment to moderator  
Reply With Quote
Unread 04/25/17, 06:58 AM  
iwontsay
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 31
Uploads: 3
Thanks for the heads up. I had very little time in recent days, but I'll try it out and see what happens.
Report comment to moderator  
Reply With Quote
Unread 04/21/17, 07:18 PM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1137
File comments: 1030
Uploads: 43
Hey iwontsay,

as I wrote you before I need to change some code at FCOItemSaver.
As the function names changed and the function parameters changed (beginning with FCOIS version 1.0.0 soon) for FCOIsMarked(itemInstanceId, ...) -> FCOIS.IsMarked(bag, slotIndex, ...) I wasn't able to dynamically produce a solution without changing your whole addon.
I've looked at your code and unfortunately you used the itemInstanceId fixed in your funcitons. So I had to add the bagId and slotIndex.

Link to FCOIS Beta 1.0.0:
https://www.dropbox.com/s/p22qdnrslk6q0wz/FCOItemSaver_1_0_0-BETA.zip?dl=0

Link to the changed version including the code changes below:
https://www.dropbox.com/s/sywjfebo650ym69/InventoryManager_for_FCOIS_Beta_1_0_0.zip?dl=0

Here are the changes that should work:

Filename "FCOISLink.lua":
Lua Code:
  1. local DEBUG =
  2. -- function() end
  3. d
  4.  
  5. local function _tr(str)
  6.     return str
  7. end
  8.  
  9. local TXT_NO_CARE
  10. local TXT_NO_MARK
  11. local TXT_ANY_MARK
  12.  
  13. local I_NO_CARE = -3
  14. local I_NO_MARK = -2
  15. local I_ANY_MARK = -1
  16.  
  17. local FCOISL = {}
  18.  
  19. local hasFCOIS = nil
  20.  
  21. local staticIconList = nil
  22. local protection_fns = nil
  23.  
  24. InventoryManager.FCOISL = FCOISL
  25.  
  26. local DIList = nil
  27. local DIChoices = nil
  28.  
  29. function FCOISL:hasAddon()
  30.     if hasFCOIS ~= nil then return hasFCOIS end
  31.  
  32.     TXT_NO_CARE = GetString(IM_FCOIS_NOCAREMARK)
  33.     TXT_NO_MARK = GetString(IM_FCOIS_NOMARK)
  34.     TXT_ANY_MARK = GetString(IM_FCOIS_ANYMARK)
  35.  
  36.     hasFCOIS = ( FCOIS ~= nil and (FCOIsMarked ~= nil and FCOGetDynamicInfo ~= nil and FCOGetIconText ~= nil) or (FCOIS.IsMarked ~= nil and FCOIS.GetDynamicInfo ~= nil and FCOIS.GetIconText ~= nil))
  37.  
  38.     if(hasFCOIS) then
  39.         staticIconList = {
  40.             FCOIS_CON_ICON_GEAR_1,
  41.             FCOIS_CON_ICON_GEAR_2,
  42.             FCOIS_CON_ICON_GEAR_3,
  43.             FCOIS_CON_ICON_GEAR_4,
  44.             FCOIS_CON_ICON_GEAR_5,
  45.             FCOIS_CON_ICON_LOCK,
  46.             FCOIS_CON_ICON_SELL,
  47.             FCOIS_CON_ICON_RESEARCH,
  48.             FCOIS_CON_ICON_DECONSTRUCTION,
  49.             FCOIS_CON_ICON_IMPROVEMENT,
  50.             FCOIS_CON_ICON_SELL_AT_GUILDSTORE,
  51.             FCOIS_CON_ICON_INTRICATE,
  52.         }
  53.  
  54.         protected_actions = {
  55.             [InventoryManager.ACTION_DESTROY]       =  FCOIS.IsDestroyLocked,
  56.             [InventoryManager.ACTION_SELL]          = {
  57.                 [false] = FCOIS.IsVendorSellLocked,
  58.                 [true]  = FCOIS.IsFenceSellLocked
  59.             },
  60.             [InventoryManager.ACTION_LAUNDER]       =  FCOIS.IsLaunderLocked,
  61.             [InventoryManager.ACTION_DECONSTRUCT]   = {
  62.                 [false] = FCOIS.IsDeconstructionLocked,
  63.                 [true]  = FCOIS.IsEnchantingExtractionLocked
  64.             },
  65.         }
  66.     end
  67.  
  68.     return hasFCOIS
  69. end
  70.  
  71. function FCOISL:IsProtectedAction(action, bagId, slotId, extraParm)
  72.     if not protected_actions or not protected_actions[action] then return false end
  73.  
  74.     local pa = protected_actions[action]
  75.     if extraParm ~= nil then
  76.         return pa[extraParm](bagId, slotId)
  77.     end
  78.  
  79.     if type(pa) == "table" then
  80.         for _, v in pairs(pa) do
  81.             if not v(bagId, slotId) then return false end
  82.         end
  83.         return true
  84.     end
  85.     return pa(bagId, slotId)
  86. end
  87.  
  88. function FCOISL:GetIconText(iconNr)
  89.     local str
  90.     if FCOGetIconText then str = FCOGetIconText(iconNr) end
  91.     if FCOIS.GetIconText then str = FCOIS.GetIconText(iconNr) end
  92.     if str then return str end
  93.  
  94.     str = GetString("IM_FCO_STATIC_TXT", iconNr)
  95.     if str == "" then return nil end
  96.  
  97.     return str
  98. end
  99.  
  100. function FCOISL:GetDynamicIconList()
  101.     if DIList then return DIList end
  102.  
  103.     DIList = { }
  104.     if not self:hasAddon() then return DIList end
  105.  
  106.     local totalNumberOfDynamicIcons, numberToDynamicIconNr
  107.     if FCOGetDynamicInfo then totalNumberOfDynamicIcons, numberToDynamicIconNr = FCOGetDynamicInfo() end
  108.     if FCOIS.GetDynamicInfo then totalNumberOfDynamicIcons, numberToDynamicIconNr = FCOIS.GetDynamicInfo() end
  109.  
  110.     for _, dynamicIconNr in pairs(staticIconList) do
  111.         local dynIconName = FCOISL:GetIconText(dynamicIconNr)
  112.         DIList[#DIList + 1] = { dynamicIconNr, dynIconName }
  113.         DIList[dynIconName] = dynamicIconNr
  114.     end
  115.  
  116.     for index, dynamicIconNr in pairs(numberToDynamicIconNr) do
  117.         local dynIconName = FCOISL:GetIconText(dynamicIconNr)
  118.         DIList[#DIList + 1] = { dynamicIconNr, dynIconName }
  119.         DIList[dynIconName] = dynamicIconNr
  120.     end
  121.  
  122.     return DIList
  123. end
  124.  
  125.  
  126. function FCOISL:GetIndexedMark(mark)
  127.     if mark == I_NO_MARK then return TXT_NO_MARK
  128.     elseif mark == I_ANY_MARK then return TXT_ANY_MARK
  129.     end
  130.  
  131.     return (FCOISL:hasAddon() and FCOISL:GetIconText(mark)) or TXT_NO_CARE
  132. end
  133.  
  134. function FCOISL:GetMarkIndex(markText)
  135.     if not FCOISL:hasAddon() then return nil end
  136.  
  137.     if markText == TXT_NO_CARE then return nil
  138.     elseif markText == TXT_NO_MARK then return I_NO_MARK
  139.     elseif markText == TXT_ANY_MARK then return I_ANY_MARK
  140.     else return FCOISL:GetDynamicIconList()[markText]
  141.     end
  142. end
  143.  
  144. function FCOISL:GetDefaultMark() return I_NO_CARE end
  145.  
  146. function FCOISL:IsNoMark(mark) return mark == I_NO_MARK end
  147.  
  148. function FCOISL:IsAnyMark(mark) return mark == I_ANY_MARK end
  149.  
  150. function FCOISL:GetDynamicIconChoices()
  151.     if DIChoices then return DIChoices end
  152.  
  153.     if not self:hasAddon() then return { TXT_NO_CARE } end
  154.  
  155.     DIChoices = { TXT_NO_CARE, TXT_NO_MARK, TXT_ANY_MARK }
  156.     for _, v in pairs(staticIconList) do
  157.         DIChoices[#DIChoices + 1] = FCOISL:GetIconText(v)
  158.     end
  159.  
  160.     local totalNumberOfDynamicIcons, numberToDynamicIconNr
  161.     if FCOGetDynamicInfo then totalNumberOfDynamicIcons, numberToDynamicIconNr = FCOGetDynamicInfo() end
  162.     if FCOIS.GetDynamicInfo then totalNumberOfDynamicIcons, numberToDynamicIconNr = FCOIS.GetDynamicInfo() end
  163.     for index, dynamicIconNr in pairs(numberToDynamicIconNr) do
  164.         local dynIconName = FCOISL:GetIconText(dynamicIconNr)
  165.         DIChoices[#DIChoices + 1] = dynIconName
  166.     end
  167.  
  168.     return DIChoices
  169. end
  170.  
  171. function FCOISL:FitMark(instanceId, mark, bagId, slotIndex)
  172.     -- If we have switched off this addon, render this filter setting as irrelevant
  173.     if not FCOISL:hasAddon() then return true end
  174.  
  175.     if not mark then return true end
  176.  
  177.     if mark == I_NO_MARK then return not FCOISL:HasMark(instanceId, nil, bagId, slotIndex)
  178.     elseif mark == I_ANY_MARK then return FCOISL:HasMark(instanceId, nil, bagId, slotIndex)
  179.     end
  180.  
  181.     return FCOISL:HasMark(instanceId, mark)
  182. end
  183.  
  184. function FCOISL:HasMark(instanceId, mark, bagId, slotIndex)
  185.     local _tab = self:GetDynamicIconList()
  186.  
  187.     if mark then
  188.         local retVar = false
  189.         if FCOIsMarked then retVar = FCOIsMarked(instanceId, mark) end
  190.         if FCOIS.IsMarked then retVar = FCOIS.IsMarked(bagId, slotIndex, mark) end
  191.         return retVar
  192.     end
  193.  
  194.     for i = 1, #_tab, 1 do
  195.         if FCOIsMarked and FCOIsMarked(instanceId, _tab[i]) then return true end
  196.         if FCOIS.IsMarked and FCOIS.IsMarked(bagId, slotIndex, _tab[i]) then return true end
  197.     end
  198.  
  199.     return false
  200. end

Filename "Rulesets.lua", line 156, in function "IM_Rule:Filter(data)":
Lua Code:
  1. -- FCO ItemSaver marker?
  2.     --FCOIS version < 1.0.0
  3.     if FCOIsMarked then
  4.         if not InventoryManager.FCOISL:FitMark(data.itemInstanceId, self.FCOISMark, nil, nil) then return false end
  5.     else
  6.         --FCOIS version >= 1.0.0
  7.         if FCOIS.IsMarked then
  8.             if not InventoryManager.FCOISL:FitMark(nil, self.FCOISMark, data.bagId, data.slotId) then return false end
  9.         end
  10.     end

Haven't tested it yet cuz I hadn't the time. Maybe you are able to do so.
You are able to download the BETA version of FCOIS, version 1.0.0 here:
http://www.esoui.com/forums/showthread.php?t=6987

Thanks for your help!

Baertram
Last edited by Baertram : 04/27/17 at 01:26 PM.
Report comment to moderator  
Reply With Quote
Unread 04/04/17, 11:33 AM  
wambo

Forum posts: 6
File comments: 29
Uploads: 0
Originally Posted by iwontsay
It is possible to extend the selection of mark filtering such as this, though as a workaround you can formulate a negation to the bank movement with adding something like "keep any item marked as Gear 1" in front of the bank movement rule. But I see, that would bloat up the list if you need to add these rules for every gear set marking.
Yes. If it would be done with 1 rule I wouldn't ask

Originally Posted by iwontsay
It could happen by another AddOn interfering or moves done by hand before the automated process is fully finished, especially since IM calculates all needed movements beforehand. This is not an issue with just this AddOn, but other AddOns operating on the bank may react adversely to outside influences for the very same reasons.
I couldn't replicate it for now, but I only updated the Addon today.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: