Thread Tools Display Modes
09-05-22, 05:57 PM   #1
fullmoon_sulfuras
A Fallenroot Satyr
Join Date: Dec 2019
Posts: 21
WotLK Classic: GetCompanionInfo does not return mountType

I was looking at this thread about GetCompanionInfo, but when running on client 30400 (BCC pre-patch)

Code:
/run print(GetCompanionInfo("mount",1))
I get

Code:
24379 Amani War Bear 43688 132117 false
Which corresponds to
Code:
creatureID, creatureName, creatureSpellID, icon, issummoned = GetCompanionInfo("mount",i)
How do I get the mount type for a given mount?

https://wowpedia.fandom.com/wiki/API_GetCompanionInfo

Of course, API_C_MountJournal.GetMountInfoExtraByID isn't available.

Thanks!
  Reply With Quote
09-06-22, 06:21 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,325
I forget which expansion it's added in, but the classic API doesn't support that feature. You'll have to get creative either with tooltip scanning or keep a database of mounts.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
09-06-22, 07:00 PM   #3
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,929
Wowpedia shows the function being added 3.0.2 in Wrath but I was wondering the same thing as you but couldn't find anywhere that specified it. And a quick browse in https://github.com/Gethe/wow-ui-source/tree/classic I can't see any Companion related files.

Looking at the live equivalent https://www.townlong-yak.com/framexml/live we have Blizzard_Collections which handles the C_MountJournal functions which is noted as the latest replacement for the Companion system.

So it might be something they just chose not to add, or they have it working via another route. Perhaps look for the in game Blizzard equivalent frames and see if you can find something in the 3.4.0 classic link I posted.

Otherwise .. what SDPhantom said may be your only other option.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
09-07-22, 05:23 PM   #4
fullmoon_sulfuras
A Fallenroot Satyr
Join Date: Dec 2019
Posts: 21
Thanks for the answers. I could not find GetCompanionInfo in https://www.townlong-yak.com/framexml/3.3.5
  Reply With Quote
09-11-22, 10:12 AM   #5
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,325
The older version of the WotLK UI code isn't the same as the classic version just because the game client is built off a more recent version of the retail client. A lot of the APIs have changed over the years.

For example, in the original vanilla, event arguments were written into the global environment. They weren't passed to handlers like they are now. They started migrating it in the original TBC, but they didn't fully depreciate the old method until later.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 09-11-22 at 10:16 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » WotLK Classic: GetCompanionInfo does not return mountType


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off