Item Filters: Difference between revisions

Jump to navigation Jump to search
104 bytes added ,  22:10, 29 October 2022
slash commands :(
(Add #!recipe filter info)
(slash commands :()
Line 1: Line 1:
Item filters can be used to reduce the size of a list of items. Current commands that support them are #!items, #!inv, #!ginv, #!gbsearch, #!gmsearch, and #!recipe.
Item filters can be used to reduce the size of a list of items. Current commands that support them are <code>/items</code>, <code>/inv</code>, <code>/g inv</code> and <code>/recipe</code>.


Examples:
Examples:
Line 5: Line 5:
*To get the list of buyable weapons under level 100:
*To get the list of buyable weapons under level 100:


  #!items type:weapon cost:>:0 level:<=:100
  /items filter:type:weapon cost:>:0 level:<=:100


*To get all the ores in your inventory:
*To get all the ores in your inventory:


  #!inv type:ore
  /inv view filter:type:ore


*To get items in your inv that give boosts to attributes:
*To get items in your inv that give boosts to attributes:


  #!inv attributes:
  /inv view filter:attributes:


*To get the list of non-donor items:
*To get the list of non-donor items:


  #!items donate:undefined donator:undefined
  /items filter:donate:undefined donator:undefined


*To get (most of) the list of donor items:
*To get (most of) the list of donor items:


  #!items donate:true
  /items filter:donate:true


* To get all the recipes that use coal anywhere in the crafting tree:
*To get all the recipes that use coal anywhere in the crafting tree:


  #!recipe uses:coal --raw
  /recipe filter:uses:coal --raw


Usable Properties:
Usable Properties:
Line 32: Line 32:
*level (The item level)
*level (The item level)
*cost (The buying price of the item; unbuyable items have a cost of -1)
*cost (The buying price of the item; unbuyable items have a cost of -1)
*type (The type of the item shown in #!item)
*type (The type of the item shown in <code>/items</code>)
*toolType (The type of tools shown in #!item)
*toolType (The type of tools shown in <code>/items</code>)
*sell (The selling price of the item)
*sell (The selling price of the item)
*sellable (true or false value showing if an item can be sold)
*sellable (true or false value showing if an item can be sold)
Line 55: Line 55:


Additional properties specific to #!recipe:
Additional properties specific to #!recipe:
* canCraft (true or false value showing if you're allowed to craft that item; the gray items in the list are false)
 
* hasMats (true or false value showing if you have the materials to craft that item right then)
*canCraft (true or false value showing if you're allowed to craft that item; the gray items in the list are false)
* level (Specifies the crafting level instead of the item level)
*hasMats (true or false value showing if you have the materials to craft that item right then)
* uses (Item name or item ID used in the crafting recipe; this isn't a property so much as a special search)
*level (Specifies the crafting level instead of the item level)
*uses (Item name or item ID used in the crafting recipe; this isn't a property so much as a special search)




Notes:<br>
Notes:<br>
Not all items can use all properties. For example, not all items have an <code>ore</code> field, so if you search <code>#!items ore:</code>, any items without <code>ore</code> data will be filtered out.<br>
Not all items can use all properties. For example, not all items have an <code>ore</code> field, so if you search <code>/items filter:ore:</code>, any items without <code>ore</code> data will be filtered out.<br>
To search for items that '''don't''' have a property, you can use <code>undefined</code>, like <code>#!items donate:undefined</code>.<br>
To search for items that '''don't''' have a property, you can use <code>undefined</code>, like <code>/items filter:donate:undefined</code>.<br>
The left-hand side of the filter is case-sensitive, so itemBoost will work and itemboost won't.<br>
The left-hand side of the filter is case-sensitive, so itemBoost will work and itemboost won't.<br>
Searches use substrings, so if you search <code>name:log</code>, it'll give all items with "log" in the name.<br>
Searches use substrings, so if you search <code>name:log</code>, it'll give all items with "log" in the name.<br>

Navigation menu