View Single Post
08-08-14, 09:03 PM   #5
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
Ok. Right now my findings are:

As Gello wrote C_MountJournal.GetMountInfo, C_MountJournal.Pickup, and all the other new thingis do expect a 'mount index' number (out of a fixed list of mounts which seems to be character-independent).

As Seerah stated this 'mount index' is not equal to the mounts position within the pet journals mounts list .This list has its own (sequential) index. The corresponding fixed 'mount index' number for an entry can be retrieved from
Code:
MountJournal.cachedMounts[<index of mount position in the pet journal list>]
And there's a cryptically third index with unique numbers which are commited to action buttons.
Via onreceivedrag ... or the return value of GetActionInfo() for a standard buttons ... and such stuff.

For the Albino Drake in my Pet Journal list this ends in:
- A fixed mount index number: 2 (for use with C_MountJournal...)
- A Pet Journal mount list index number: 1 (MountJournal.cachedMounts[1] returns 2)
- A cryptically third index number: 268

I'm stucked.
Pre WoD I used type/spell and the spellID to summon a mount via my secure action buttons.
Now the only thing that is commited to my button is the "cryptically" index number. :/