Download
(6 Kb)
Download
Updated: 07/12/22 02:54 PM
Updated:07/12/22 02:54 PM
Created:08/09/18 07:47 PM
Monthly downloads:68
Total downloads:7,084
Favorites:14
MD5:
Categories:Bags, Bank, Inventory, Discontinued & Outdated
Item Scripting  Popular! (More than 5000 hits)
Version: 2.3
by: Amerlite [More]
DISCONTINUED


Item Scripting enables you to script and automate many inventory management tasks:

- Junk items
- Destroy items
- Move items in and out of your bank
- And more!

Unlike similar addons, Item Scripting gives you complete control by letting you write your own code. Item Scripting provides an easy to use API for clean and readable scripts.

For example: as you pick up items in the game, you can mark them as junk based on criteria of your choosing. You can also automate the transfer of items in and out of your bank.


Lua Code:
  1. if Item:IsType('Potion','Poison')
  2. and not Item:IsCrafted()
  3. and not Item:IsQuickslotted()
  4. then return Item:Junk() end

Lua Code:
  1. for Item in Backpack:Items() do
  2.  
  3.   if Item:IsFilterType('Materials')
  4.   then Item:Transfer() end
  5.  
  6. end
2.3
- Fix "IsQuickslotted" that broke with game updates.
- Update API version for "Ascending Tide".

2.2
- Fixed ESO+ bank space?
- Update API version for "Waking Flame".

2.1
- "Flames of Ambition" Update.

2.0

- Updated LibAddon

1.0

- Rewrite for Markarth
Optional Files (0)


Post A Reply Comment Options
Unread 07/15/22, 05:42 AM  
Akopian Atrebates

Forum posts: 9
File comments: 230
Uploads: 0
I always had a hard time using that one. This one seems a little simpler, but looking at it again, I think I might have figured it out. ItemTrig stills seems to work fairly well, though, too.


Originally Posted by Baertram
There exist other addons like https://www.esoui.com/downloads/info...Inventory.html who should be able to do this.
Originally Posted by Eltie
Great addon, love it, is there any plans on adding functions besides banking and on pickup? Like, opening loot frame, opening vendor ui and such?
Report comment to moderator  
Reply With Quote
Unread 07/13/22, 01:17 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4903
File comments: 5974
Uploads: 78
There exist other addons like https://www.esoui.com/downloads/info...Inventory.html who should be able to do this.
Originally Posted by Eltie
Great addon, love it, is there any plans on adding functions besides banking and on pickup? Like, opening loot frame, opening vendor ui and such?
Report comment to moderator  
Reply With Quote
Unread 10/22/21, 02:42 PM  
Eltie

Forum posts: 0
File comments: 4
Uploads: 0
Great addon, love it, is there any plans on adding functions besides banking and on pickup? Like, opening loot frame, opening vendor ui and such?
Report comment to moderator  
Reply With Quote
Unread 01/28/21, 03:34 AM  
ProgenitorX

Forum posts: 0
File comments: 12
Uploads: 0
Originally Posted by eromelcm
Sorry I left this alone for so long. I took a long break from the game.

Started playing again, and decided this addon needed a rewrite to accomplish what I wanted. It can do a lot more now, but you no longer configure this addon in the game. Rather, you now write your own script. I know this may turn some people off from using it, but previous iterations basically had you writing code anyway.

The GitHub page has a lot more info on what it can do now, along with examples.
Amazing work with the rewrite! Simply the best quality of life improvement addon for just a bit of LUA scripting. Thank you!
Report comment to moderator  
Reply With Quote
Unread 11/13/20, 06:53 PM  
Amerlite
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 2
Sorry I left this alone for so long. I took a long break from the game.

Started playing again, and decided this addon needed a rewrite to accomplish what I wanted. It can do a lot more now, but you no longer configure this addon in the game. Rather, you now write your own script. I know this may turn some people off from using it, but previous iterations basically had you writing code anyway.

The GitHub page has a lot more info on what it can do now, along with examples.
Last edited by Amerlite : 11/13/20 at 08:41 PM.
Report comment to moderator  
Reply With Quote
Unread 05/23/19, 06:38 PM  
CrustySpam87

Forum posts: 0
File comments: 2
Uploads: 0
Update

Love this addon! Please update! It's not working for me anymore, even when I tick "Allow add-ons of other client versions".
Report comment to moderator  
Reply With Quote
Unread 04/24/19, 10:56 PM  
ProgenitorX

Forum posts: 0
File comments: 12
Uploads: 0
Saw this when swapping characters:

user:/AddOns/JunkFilters/Main.lua:16: operator .. is not supported for string .. nil
stack traceback:
user:/AddOns/JunkFilters/Main.lua:16: in function 'LoadFilters'
|caaaaaa<Locals> _ = "Set Armor", Filter = tbl </Locals>|r
user:/AddOns/JunkFilters/Main.lua:94: in function 'Func'
user:/AddOns/JunkFilters/Modules/Addon.lua:57: in function '(anonymous)'
|caaaaaa<Locals> code = 65536, name = "ZO_FontStrings" </Locals>|r
My Set Armor filter was then deleted (the code was, the filter entry was still there).
Last edited by ProgenitorX : 04/25/19 at 12:29 AM.
Report comment to moderator  
Reply With Quote
Unread 04/24/19, 08:59 PM  
ProgenitorX

Forum posts: 0
File comments: 12
Uploads: 0
Very nice addon! Could you explain how the Filter Priorities work along with an example?
Report comment to moderator  
Reply With Quote
Unread 03/27/19, 12:52 PM  
Topblocker

Forum posts: 0
File comments: 1
Uploads: 0
Set Function not working

Hi, very cool Addon!

I would really love to use the set() function, but it does not seem to work. For example when I set only this as filter (with no other filters):

set('Hunt Leader')

And then "/filternow", it says "Inventory Filtered" but it does not put anything into the trash, although I have some pieces of Hunt Leader in my inventory (that are neither locked nor legendary). Can you please check?

I also tried "set('Jagdleiter')" because I play the game in German, but it does not work either.

Thank you very much
Last edited by Topblocker : 03/27/19 at 12:53 PM.
Report comment to moderator  
Reply With Quote
Unread 02/26/19, 06:39 PM  
Amerlite
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 2
Re: Typos

Originally Posted by Blackasaurus
Hi, love your add-on. Found typos in Main.lua on line 34 and 46, also Inventory.lua on line 57: 'Qaulity'
Main.lua on line 114: 'NVENTORY_UPDATE_REASON_DEFAULT'
That's what I get for working on this stuff at 1 AM. Thank you, fixed in 2.0
Report comment to moderator  
Reply With Quote
Unread 02/26/19, 03:57 PM  
Blackasaurus

Forum posts: 0
File comments: 1
Uploads: 0
Typos

Hi, love your add-on. Found typos in Main.lua on line 34 and 46, also Inventory.lua on line 57: 'Qaulity'
Main.lua on line 114: 'NVENTORY_UPDATE_REASON_DEFAULT'
Last edited by Blackasaurus : 02/26/19 at 04:35 PM.
Report comment to moderator  
Reply With Quote
Unread 02/07/19, 11:11 AM  
Amerlite
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 2
Re: More options

Originally Posted by SimplyArmin
BTW would be nice to select if you want to auto sell or not. For me I like to see my junk again before selling just in case.
Done. Added option in 1.7
Report comment to moderator  
Reply With Quote
Unread 02/07/19, 08:30 AM  
SimplyArmin

Forum posts: 6
File comments: 43
Uploads: 0
More options

Thanks for the explanation. I'll gonna try that out for sure. BTW would be nice to select if you want to auto sell or not. For me I like to see my junk again before selling just in case.
I just commented the lines in the addon for now.

Greets
Last edited by SimplyArmin : 02/07/19 at 08:30 AM.
Report comment to moderator  
Reply With Quote
Unread 01/28/19, 02:13 AM  
Amerlite
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 2
Re: Need a bit of help :D

Originally Posted by SimplyArmin
Hi,
very big fan of ur addon.
currently am struggling a bit, and im trying to learn how to make filters properly.
When you have a more complex filter like you have, it's a good idea to separate out your "and" and "or" statements with parens like this:

Lua Code:
  1. (... and ...) or (... and ...)

But in your case, I would break it up into separate filters:

Filter 1: Junk jewelry that has no set.

Lua Code:
  1. ftype('Jewelry') and set('None')

Filter 2: Junk jewelry that has no trait or is ornate.

Lua Code:
  1. ftype('Jewelry') and trait('None', 'Ornate')

Filter 3: Junk jewelry worse than blue quality that is not intricate and not crafted.

Lua Code:
  1. ftype('Jewelry') and quality() < 3
  2. and not trait('Intricate')
  3. and not isCrafted()

As for names,
Originally Posted by SimplyArmin
Also would like to know if someone knows how to handle jewelery like Exemplary Swift Neck.
The "name" function looks at the full name of an item, not just a part of the name. So if the item name is " Exemplary Swift Necklace", just using "Exemplary" will not match because that's not the item's name, just one word in the name. I might in the future add a way to match on just part of a name, but it would be a separate function. For now just do:

Lua Code:
  1. name('Exemplary Swift Necklace')
Last edited by Amerlite : 01/28/19 at 02:14 AM.
Report comment to moderator  
Reply With Quote
Unread 01/26/19, 06:50 AM  
SimplyArmin

Forum posts: 6
File comments: 43
Uploads: 0
Need a bit of help :D

Hi,
very big fan of ur addon.
currently am struggling a bit, and im trying to learn how to make filters properly.
Actually im trying to filter out jewelery which looks like this:
Code:
ftype('Jewelry') and set('None')
or
ftype('Jewelry') and trait('None', 'Ornate')
or
ftype('Jewelry') and quality() >= 2
and not
trait('Intricate')
and not
isCrafted()
the fiilter works well except the quality part... How can i tell my filter to sort out items with a quality equal or lower then green.
Also would like to know if someone knows how to handle jewelery like Exemplary Swift Neck.
I tried out with
Code:
and not name('Exemplary')
which didnt work.
And last quetion is do you think i somehow can improve my code?
Thanks
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: