What's the script command for using item?

Not macro, but script. I am asking because I noticed that script commands do not interact with #showtooltip, and I want to use an item first in a macro (a toy) without it defining the action bar icon.
(Sadly, putting #showtooltip after the toy use makes no difference. Would have been nice if that was included in the serial processing of macro commands.)

You can use #shotooltip Some Spell if you want another icon. Assuming the macro is fairly simple and not an amalgamation of half a dozen spells based on conditions.

The function to use a toy is UseToyByName("name"), but it is a protected function, and as such, can’t be used from a macro, as far as I remember.

/usetoy

https://wow.gamepedia.com/MACRO_usetoy

Would get too long.
(And addons for longer macros are weird and not working as expected. Couldn’t get into that stuff.)

Weird: I made a test macro with that one command and it worked, but any attempts after that gave an according error message.

It’s just a specific version of /use.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.