The decimal integer may refer to the itemid of the totem (item #s are integers). If you copy an item link from the came elsewhere you'll see the item# inside the link syntax.
Try finding the item # for a totem and then plug that in where %d is. I'm not quite sure what the 3 subsequent bits are... the first one clearly seems to be a on/off flag (1 being turn autoconsume on, 0 being turn it off) but the other two I'm not sure. They may have to do with whether the item is equipped or not or some other factor.
__________________
|