its fairly easy
1) use tagbased scripting (you should have it activated in your module - its default on)
2) open x2_it_example standard script and rename it
3) in OnActivate item event, check what the target is - is it item? is in in PC possession or on ground? if so
4) apply the property you like using AddItemProperty function
report if you stuck somewhere