#permission=255 // expected args: // @def: item id // @0: variable name to write into // @1 (optional): color (in hex format: 00FF00 = pure green) SET,i ${@def} SET,target ${@0} SET,color ${@1} DEFAULT,i 0 TOINT,i ${i} DEFAULT,target chatitem DEFAULT,color 6679FF SET,v #${@caller}::${target} SET,${v} |cff${color}|Hitem:${i}:0:0:0|h[Item ${i}]|h|r UNSET i UNSET v UNSET color UNSET target