UseContainerItem
Hi!
I've a problem that gives me a lot of headache.
I've Heavy Runecloth Bandages in Backpack Slot 1.
If I create this macro:
/script Print(GetContainerItemLink(0, 1));
/script UseContainerItem(0,1);
and execute it I get the name of the bandage in the chat and the bandage is used.
now, if I create an addon with this function
function shark_test()
Print(GetContainerItemLink(0, 1));
UseContainerItem(0,1);
end
and execute it by calling /script shark_test()
I get the name of the bandage into the chat, but it is NOT used. I get no error message.
what's going on?
|