Weis
08-09-2006, 01:53 PM
People,
i've got the following lines of code in my mod:
function useItem(bag, slot)
print("Use item in bag "..bag.." slot "..slot);
UseContainerItem(bag, slot);
end
If this function is called by the Slashhandler (i.e. by typing a command within the chat window) it works fine.
If the same function is called by another function - automation of potion usage while within battler - it DOES NOT work!
Any clues?
Cheers
Matt
i've got the following lines of code in my mod:
function useItem(bag, slot)
print("Use item in bag "..bag.." slot "..slot);
UseContainerItem(bag, slot);
end
If this function is called by the Slashhandler (i.e. by typing a command within the chat window) it works fine.
If the same function is called by another function - automation of potion usage while within battler - it DOES NOT work!
Any clues?
Cheers
Matt