View Single Post
10-23-05, 04:50 AM   #1
Shark
A Defias Bandit
Join Date: Jan 2005
Posts: 3
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?
  Reply With Quote