How to pickup a mount to the cursor by ID?
I want to write a lua code that picks up a mount ( I know it's ID from GetActionInfo) and places it on an Action Slot.
I know PickupSpell, PickupItem, PickupMacro to pickup those things by their ID, but that doesn't seem to work with mounts. |
While I know next to nothing about Lua, I have to ask you - can you still place your mount on the action bars? It's been almost two years since I played WoW and that's why I asked. I used to have a couple of mounts on my action bars and all I did was put them there manually.
|
Quote:
The only way to put something on the action bars that I know of is to pick it on the cursor with PickupXXX(objectID) Lua command and then PlaceAction(actionBarSlotID) from the cursor. I made it work for spells, items and macroses but I got stuck with mounts. |
C_MountJournal.Pickup(id). But you need check mount UI code as id might be internal.
|
what mount are you trying to pick up?
try this: Code:
local creatureName, spellID, icon, active, isUsable, sourceType, isFavorite, isFactionSpecific, faction, hideOnChar, isCollected, mountID = C_MountJournal.GetMountInfoByID(246) |
That helped, thank you!
|
All times are GMT -6. The time now is 04:59 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI