add itemTypeDialog to script.lua

If I had known about this a few days ago, I would've been so happy.