[DiscordArchive] Is it possible to give the ability to have pets...
[DiscordArchive] Is it possible to give the ability to have pets...
Archived author: Ergo • Posted: 2025-09-04T07:29:14.582000+00:00
Original source
weird because as you can see on the image above, it shows the happiness there and I can hover to see the tooltip showing happines in text and diet too
Archived author: Uniquisher • Posted: 2025-09-04T07:30:36.273000+00:00
Original source
Theres a command called GetPetHappiness that returns happiness and damagePercentage
http://garde.sylvanas.free.fr/ressources...Addons.pdf
Page 808 near the bottom
Archived author: Ergo • Posted: 2025-09-04T07:31:58.307000+00:00
Original source
wow great pdf thanks for linking
![[Image: image.png?ex=690c500e&is=690afe8e&hm=a19...cf222ded4&]](https://cdn.discordapp.com/attachments/1412542183382319267/1413065238273593374/image.png?ex=690c500e&is=690afe8e&hm=a19502cc2b79134915c2e5da066097729d87f92ebf6fe06ef7050dccf222ded4&)
Archived author: Uniquisher • Posted: 2025-09-04T07:36:46.359000+00:00
Original source
yeah works perfectly for hunter, hmm I wonder where that can be edited
![[Image: image.png?ex=690c500e&is=690afe8e&hm=a19...cf222ded4&]](https://cdn.discordapp.com/attachments/1412542183382319267/1413065238273593374/image.png?ex=690c500e&is=690afe8e&hm=a19502cc2b79134915c2e5da066097729d87f92ebf6fe06ef7050dccf222ded4&)
Archived author: Ergo • Posted: 2025-09-04T07:37:49.295000+00:00
Original source
on the clientside
Archived author: Ergo • Posted: 2025-09-04T07:37:54.601000+00:00
Original source
```
function PetFrame_SetHappiness ()
local happiness, damagePercentage = GetPetHappiness();
local hasPetUI, isHunterPet = HasPetUI();
if ( not happiness or not isHunterPet ) then
PetFrameHappiness:Hide();
return;
end
PetFrameHappiness:Show();
if ( happiness == 1 ) then
PetFrameHappinessTexture:SetTexCoord(0.375, 0.5625, 0, 0.359375);
elseif ( happiness == 2 ) then
PetFrameHappinessTexture:SetTexCoord(0.1875, 0.375, 0, 0.359375);
elseif ( happiness == 3 ) then
PetFrameHappinessTexture:SetTexCoord(0, 0.1875, 0, 0.359375);
end
PetFrameHappiness.tooltip = _G["PET_HAPPINESS"..happiness];
PetFrameHappiness.tooltipDamage = format(PET_DAMAGE_PERCENTAGE, damagePercentage);
end
```
Archived author: Ergo • Posted: 2025-09-04T07:37:57.799000+00:00
Original source
I think this might be it
Archived author: Ergo • Posted: 2025-09-04T07:38:38.712000+00:00
Original source
patch_enUS.MPQ Interface/FrameXML/PetFrame.lua
Archived author: Ergo • Posted: 2025-09-04T07:42:13.695000+00:00
Original source
not quite sure what to do here tho, since it doesnt seem like its checking hunter class
Archived author: Uniquisher • Posted: 2025-09-04T07:42:45.099000+00:00
Original source
wonder if HasPetUI has anything related to hunter