[DiscordArchive] anyone know how to fix GetPetHappiness() return...
[DiscordArchive] anyone know how to fix GetPetHappiness() return...
Archived author: Needle • Posted: 2025-09-04T08:18:40.212000+00:00
Original source
Archived author: Needle • Posted: 2025-09-04T08:18:40.926000+00:00
Original source
Thread automatically created by Uniquisher in <#415944535718494208>
Archived author: Uniquisher • Posted: 2025-09-04T08:19:15.864000+00:00
Original source
```
local happiness, damagePercetange = GetPetHappiness()
print(happiness)
```
it will happily get the damagePercentage as 100 it seems, but happiness will always return nil
Archived author: Saty • Posted: 2025-09-04T08:57:38.275000+00:00
Original source
"Nil" and "100" are the default values.
The client expects a few things to be true for the pet happiness to show up:
1.) The client must receive a SMSG_PET_GUIDS packet with the GUID of the pet
2.) The pet needs to have the unit field "petnumber" set
3.) The pet must be created by a player
4.) **The creator of the pet must have class id 3**
So the happiness system is very much locked to hunters and would require a client mod to fix (probably)
Archived author: Uniquisher • Posted: 2025-09-04T08:59:52.625000+00:00
Original source
Ah damn, I appreciate your help!
Archived author: Ergo • Posted: 2025-09-04T09:51:41.096000+00:00
Original source
To change 4) would that require a bit of reverse engineering Wow.exe? and do you know how to do that?
Archived author: Ergo • Posted: 2025-09-04T09:52:08.466000+00:00
Original source
I'm wondering how you learned about that info in the first place
Archived author: Saty • Posted: 2025-09-04T09:52:50.848000+00:00
Original source
I reverse engineered the client <:kek:868839618898960414>
Archived author: Ergo • Posted: 2025-09-04T09:53:15.008000+00:00
Original source
like fully? does that mean you have the source code for it and can just easily search for anything?
Archived author: Saty • Posted: 2025-09-04T09:54:08.579000+00:00
Original source
~30% of it