wowpedia
Main Menu


Sets a binding to use a specified item.

ok = SetBindingItem(key, item)

Arguments

key
string - Any binding string accepted by World of Warcraft. For example: "ALT-CTRL-F", "SHIFT-T", "W", "BUTTON4".
item
string - Item name (or item string) you want the binding to use. For example: "Hearthstone", "item:6948"

Returns

ok
boolean - 1 if the binding has been changed successfully, nil otherwise.

Details

ok = SetBinding("key", "ITEM " .. item);

See Also