VitoxMaster
Active Member
- Joined
- Feb 6, 2023
- Messages
- 79
- Solutions
- 2
- Reaction score
- 38
Hi everyone!
I was wondering if there’s an easy way to implement the following mechanism:
When opening the trade window with an NPC, I’d like to apply a filter that hides items in my backpack that have specific customAttributes from being displayed as sellable. In other words, I have an item upgrade system, and I want to prevent accidentally selling upgraded gear for just a few gold coins.
Is there a LUA-based solution for this requirement? I know that I could use the onSell callback (from NPC Module) to block selling such items, but I’d prefer to hide them from the trade window entirely.

I have three Underworld Rods in my backpack. When I open the trade window with an NPC, I see all three available for sale. However, if one of the rods has a customAttribute('x'), I want the trade window to display only the two unmodified rods.
I'm working on TFS 1.5 Nekiro downgrade 8.6.
Thanks in advance for any help!
I was wondering if there’s an easy way to implement the following mechanism:
When opening the trade window with an NPC, I’d like to apply a filter that hides items in my backpack that have specific customAttributes from being displayed as sellable. In other words, I have an item upgrade system, and I want to prevent accidentally selling upgraded gear for just a few gold coins.
Is there a LUA-based solution for this requirement? I know that I could use the onSell callback (from NPC Module) to block selling such items, but I’d prefer to hide them from the trade window entirely.
Real-case scenario:

I have three Underworld Rods in my backpack. When I open the trade window with an NPC, I see all three available for sale. However, if one of the rods has a customAttribute('x'), I want the trade window to display only the two unmodified rods.
I'm working on TFS 1.5 Nekiro downgrade 8.6.
Thanks in advance for any help!