View Single Post
06-15-21, 07:07 AM   #2
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Originally Posted by Walkerbo View Post
There are API calls that are meant to return the current pet GUID however on uncollected pets they return nil.
[...]
I have not been able to get the links no matter what I have tried.

Is there another way to get mount and pet links, or is this totally hidden from us by Blizz?

The API not returning the GUID makes sense because it refers to a unique pet you own
Pet links include that GUID so you can't normally link pets you don't have collected yourself

You can still make a link yourself, it requires at least:
https://wowpedia.fandom.com/wiki/UI_...nces#battlepet
  • speciesID, level, breedQuality for print()
  • and additionally maxHealth for SendChatMessage()
  • an empty "BattlePet--" GUID otherwise it will give an error when clicking "Click here to view in journal"

For example I don't own Crawbat
Code:
/run print("\124cff1eff00\124Hbattlepet:3083:1:2::::BattlePet--:\124h[Crawbat]\124h\124r")
/run SendChatMessage("\124cff1eff00\124Hbattlepet:3083:1:2:1:::BattlePet--:\124h[Crawbat]\124h\124r")

Last edited by Ketho : 06-15-21 at 07:30 AM.
  Reply With Quote