beni..thanks a bunch for the post...I've been actually looking for a way to add an itemfilter to my private bot

as for yours...
there's a couple of things I suggest you change or it'll create a lot of lag since it has to update the items/yang on update...
either use a seperate thread to create the list...or use a timer...
a timer is probably better since it doesn't need to run a concurrent process and it doesn't get the current process stuck while making a list specially on a floor full of yang/items like when going up the tower..
just for you to have an idea...
Code:
on update..
if not runningtimer
runningtimer=1
timer myfunction...
myfunction...
code...
runningtimer=0
this would keep your lag down since this runs parallel to whatever you're doing currently on metin...
instead of blocking the io pipe with the pickup code (which would also cause screen freezes)
regardless...I'm stealing parts of this code for my bot