01-05-2005, 08:28 PM
Ynir,Jan 5 2005, 09:04 AM Wrote:I thought that the usage for the function I posted
UseAction(ActionID, x, y)
would be
x, y = bar, slot (or vice versa)
and ActionID was the returned parameter. I could not find this function in the Lua list in this form, however.
[right][snapback]64427[/snapback][/right]
It doesn't appear so. There is a single integer (the ActionID) which identifies which bar and slot, just as the text you posted indicates. There are 10 bars, each with 12 slots, meaning your parameter needs to be between 1 and 120.
I am reporting what the game indicated back to me--you get a script error if you pass three parameters and it gives you the expected usage of the function.
One caveat--I understand that is easy to override functions in Lua. As I use Cosmos, they may have overridden this one and changed its form--hence the discrepancy.
One more tidbit: I stumbled upon this bit of info from WoWWiki:
Code:
If you are using Cosmos, you can use the following commands :
/equip <Item Name>
/unequip <Item Name>
/saveset <Number>
/loadset <Number>
I haven't played with this yet, but /saveset and /loadset looks to be of general use for
this kind of thing and might be a better way for me to go about switching between my
defensive and offensive setups.
I'm hoping what is saved is a set of equipped items.