Here is the full logic tree for weapons. Replace XX with numbers (01, 02, 03...).
If you don't know the specific name or index, you can use category commands to list them in the console: : Lists all weapons. torchlight 2 console commands item list full
Type a category name (e.g., WEAPON , ARMOR , POTION , FISH ) to see a list of items and their index numbers in the console. Here is the full logic tree for weapons