Difference between revisions of "Loot Filtration"
(13 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | By editing the "item filter" file located in your Path Of Diablo installation folder, you can create a set of rules which will change the way loot is displayed. | |
You can find loot filters made by other players and download instructions at [[List of Loot Filters]]. | You can find loot filters made by other players and download instructions at [[List of Loot Filters]]. | ||
Line 26: | Line 26: | ||
| Orb of Corruption | | Orb of Corruption | ||
|} | |} | ||
− | ''See more codes at [[ | + | ''See more codes at [[Loot Filtration Codes]]'' |
If you would like to rename "Scroll of Town Portal" to a much shorter "TP" then you would type: '''ItemDisplay[tsc]: TP''' | If you would like to rename "Scroll of Town Portal" to a much shorter "TP" then you would type: '''ItemDisplay[tsc]: TP''' | ||
Line 52: | Line 52: | ||
| [[File:Fonttan.png]] | | [[File:Fonttan.png]] | ||
|} | |} | ||
− | ''See more codes at [[ | + | ''See more codes at [[Loot Filtration Codes]]'' |
If you would like to change the color of the Horadric Cube to purple then you would type: '''ItemDisplay[box]: %PURPLE%Horadric Cube''' | If you would like to change the color of the Horadric Cube to purple then you would type: '''ItemDisplay[box]: %PURPLE%Horadric Cube''' | ||
− | You can also use multiple colors within a single item. For example if you want the word "Horadric" to be yellow and "Cube" to be purple you would type: ItemDisplay[box]: %YELLOW%Horadric %PURPLE%Cube | + | You can also use multiple colors within a single item. For example if you want the word "Horadric" to be yellow and "Cube" to be purple you would type: '''ItemDisplay[box]: %YELLOW%Horadric %PURPLE%Cube''' |
=== Value References === | === Value References === | ||
Line 75: | Line 75: | ||
| Show the item's socket count | | Show the item's socket count | ||
|} | |} | ||
− | ''See more codes at [[ | + | ''See more codes at [[Loot Filtration Codes]]'' |
If you want to show the selling price of an item using a dollar sign ($100) as a prefix you would type: '''ItemDisplay[gpm]: ($%PRICE%) Choking Gas Potion''' | If you want to show the selling price of an item using a dollar sign ($100) as a prefix you would type: '''ItemDisplay[gpm]: ($%PRICE%) Choking Gas Potion''' | ||
Line 88: | Line 88: | ||
This tells the game to display Antidote potions as nothing, which hides the item. | This tells the game to display Antidote potions as nothing, which hides the item. | ||
+ | |||
+ | === Rule Priority === | ||
+ | |||
+ | The higher the rule in your filter file, the higher priority it will have. | ||
+ | |||
+ | This means if on the first line of your item filter you choose to hide all Spears but then on Line 2 you choose to show Spears with 6 sockets then the result is no spear will ever show. | ||
+ | |||
+ | In this example, you would change their location within the file. So show 6 socket spears on Line 1 and hide all spears on Line 2. This will hide all Spears except those with 6 sockets. | ||
+ | |||
+ | === Conditions === | ||
+ | |||
+ | * > | ||
+ | * < | ||
+ | * = | ||
+ | * <= | ||
+ | * >= | ||
+ | * != | ||
+ | |||
+ | Using ''Greater than >'', ''Less than <'', ''Equal to ='', ''Less than or equal to <='', ''Greater than or equal to >='', and ''Not equal to !='' will help add conditions to rules. | ||
+ | |||
+ | You may want to hide gold stacks that are not worth your time (stacks below 1000g) by typing: '''ItemDisplay[GOLD<1000]:''' | ||
=== Logical Operators === | === Logical Operators === | ||
Line 97: | Line 118: | ||
* ! (logic negation) | * ! (logic negation) | ||
− | + | If you want to show all polearms (WP8) with 4 or 5 sockets then you would type: '''ItemDisplay[WP8 (SOCK>3 AND SOCK<6)]: %NAME%''' | |
− | + | This same rule can be written in a different way: '''ItemDisplay[WP8 !SOCK=0 !SOCK=1 !SOCK=2 !SOCK=3 !SOCK=6]: %NAME%''' | |
− | + | The first one says "Show me all polearms with more than 3 but less than 6 sockets" whereas the second says "Show me all polearms but not ones with 0, 1, 2, 3 or 6 sockets". | |
− | |||
− | + | '''It is important to keep ''AND'' & ''OR'' within their own bracket set. For example: (SOCK>3 OR SOCK=1). This is not required for logic negation ('''!''')''' | |
− | + | == Credits == | |
+ | Loot filtration implemented in PoD by Dav92 based on code from McGoD, underbent and Deadlock39. Later rebuilt from the ground up by Necrolis. |
Latest revision as of 15:45, 17 April 2024
By editing the "item filter" file located in your Path Of Diablo installation folder, you can create a set of rules which will change the way loot is displayed.
You can find loot filters made by other players and download instructions at List of Loot Filters.
Contents
Basics
Item Codes
All items in the game have an id code. Below are a few examples:
Code | Item |
---|---|
tsc | Scroll of Town Portal |
rvs | Rejuvenation Potion |
pk1 | Key of Terror |
cx5 | Orb of Corruption |
See more codes at Loot Filtration Codes
If you would like to rename "Scroll of Town Portal" to a much shorter "TP" then you would type: ItemDisplay[tsc]: TP
You can also add more text to an item. If you want to remember which boss drops which uber key then you would type: ItemDisplay[pk1]: Key of Terror (Countess)
Color Codes
You can also change the color of the item name using color codes. Below are a few example colors:
Code | Color |
---|---|
%GREEN% | |
%DGREEN% | |
%GOLD% | |
%TAN% |
See more codes at Loot Filtration Codes
If you would like to change the color of the Horadric Cube to purple then you would type: ItemDisplay[box]: %PURPLE%Horadric Cube
You can also use multiple colors within a single item. For example if you want the word "Horadric" to be yellow and "Cube" to be purple you would type: ItemDisplay[box]: %YELLOW%Horadric %PURPLE%Cube
Value References
Sometimes you want to call upon a value in the game to show the player. Below are a few examples:
Code | Output |
---|---|
%PRICE% | Selling price of the item |
%ILVL% | Item level |
%SOCKETS% | Show the item's socket count |
See more codes at Loot Filtration Codes
If you want to show the selling price of an item using a dollar sign ($100) as a prefix you would type: ItemDisplay[gpm]: ($%PRICE%) Choking Gas Potion
The same thing can be done to show the item level {L99} as a suffix: ItemDisplay[cm3]: %NAME% {L%ILVL%}
Hiding Items
When you want to hide an item, you simply leave the space behind the colon (:) empty.
So for example if you want to hide Antidote potions (yps) you would type: ItemDisplay[yps]:
This tells the game to display Antidote potions as nothing, which hides the item.
Rule Priority
The higher the rule in your filter file, the higher priority it will have.
This means if on the first line of your item filter you choose to hide all Spears but then on Line 2 you choose to show Spears with 6 sockets then the result is no spear will ever show.
In this example, you would change their location within the file. So show 6 socket spears on Line 1 and hide all spears on Line 2. This will hide all Spears except those with 6 sockets.
Conditions
- >
- <
- =
- <=
- >=
- !=
Using Greater than >, Less than <, Equal to =, Less than or equal to <=, Greater than or equal to >=, and Not equal to != will help add conditions to rules.
You may want to hide gold stacks that are not worth your time (stacks below 1000g) by typing: ItemDisplay[GOLD<1000]:
Logical Operators
You can use logical operators whenever you want to show an item only if a certain condition is met. Below are all the options:
- AND
- OR
- ! (logic negation)
If you want to show all polearms (WP8) with 4 or 5 sockets then you would type: ItemDisplay[WP8 (SOCK>3 AND SOCK<6)]: %NAME%
This same rule can be written in a different way: ItemDisplay[WP8 !SOCK=0 !SOCK=1 !SOCK=2 !SOCK=3 !SOCK=6]: %NAME%
The first one says "Show me all polearms with more than 3 but less than 6 sockets" whereas the second says "Show me all polearms but not ones with 0, 1, 2, 3 or 6 sockets".
It is important to keep AND & OR within their own bracket set. For example: (SOCK>3 OR SOCK=1). This is not required for logic negation (!)
Credits
Loot filtration implemented in PoD by Dav92 based on code from McGoD, underbent and Deadlock39. Later rebuilt from the ground up by Necrolis.