Binds a key combination to use an item in the player's possession


See also Keybind functions, Item functions.

Signature:

success = SetBindingItem("key", itemID) or SetBindingItem("key", "itemName") or SetBindingItem("key", "itemLink")

Arguments:

  • key - A key or key combination (e.g. "CTRL-2") (string, binding)
  • itemID - An item's ID (number)
  • itemName - An item's name (string)
  • itemLink - An item's hyperlink, or any string containing the itemString portion of an item link (string)

Returns:

  • success - 1 if the binding was successful; otherwise nil (1nil)