i don't think forcing a talkaction would help with this at all
you can use modalwindows in talkactions and rewrite the script and use this as a base:
AutoLoot System for tfs 1.x
use this script, check for the storages and check the ids of the items
write it to a modalwindow (easier if you use modalwindows with this lib:
[TFS 1.2] Modal Window Helper Lib)
then with your item you make an action script to give the player a storage for the autoloot item id and it pops up whenever you use talkaction cause the storage gets saved