Forums WoW Modding Support Archives WoWModding Threads [DiscordArchive] anyone know how to fix GetPetHappiness() return...

[DiscordArchive] anyone know how to fix GetPetHappiness() return...

[DiscordArchive] anyone know how to fix GetPetHappiness() return...

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
09-04-2025, 08:18 AM
#1
Archived author: Needle • Posted: 2025-09-04T08:18:40.212000+00:00
Original source

rektbyfaith
09-04-2025, 08:18 AM #1

Archived author: Needle • Posted: 2025-09-04T08:18:40.212000+00:00
Original source

rektbyfaith
Administrator
0
09-04-2025, 08:18 AM
#2
Archived author: Needle • Posted: 2025-09-04T08:18:40.926000+00:00
Original source

Thread automatically created by Uniquisher in <#415944535718494208>
rektbyfaith
09-04-2025, 08:18 AM #2

Archived author: Needle • Posted: 2025-09-04T08:18:40.926000+00:00
Original source

Thread automatically created by Uniquisher in <#415944535718494208>

rektbyfaith
Administrator
0
09-04-2025, 08:19 AM
#3
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
rektbyfaith
09-04-2025, 08:19 AM #3

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

rektbyfaith
Administrator
0
09-04-2025, 08:57 AM
#4
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)
rektbyfaith
09-04-2025, 08:57 AM #4

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)

rektbyfaith
Administrator
0
09-04-2025, 08:59 AM
#5
Archived author: Uniquisher • Posted: 2025-09-04T08:59:52.625000+00:00
Original source

Ah damn, I appreciate your help!
rektbyfaith
09-04-2025, 08:59 AM #5

Archived author: Uniquisher • Posted: 2025-09-04T08:59:52.625000+00:00
Original source

Ah damn, I appreciate your help!

rektbyfaith
Administrator
0
09-04-2025, 09:51 AM
#6
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?
rektbyfaith
09-04-2025, 09:51 AM #6

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?

rektbyfaith
Administrator
0
09-04-2025, 09:52 AM
#7
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
rektbyfaith
09-04-2025, 09:52 AM #7

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

rektbyfaith
Administrator
0
09-04-2025, 09:52 AM
#8
Archived author: Saty • Posted: 2025-09-04T09:52:50.848000+00:00
Original source

I reverse engineered the client <:kek:868839618898960414>
rektbyfaith
09-04-2025, 09:52 AM #8

Archived author: Saty • Posted: 2025-09-04T09:52:50.848000+00:00
Original source

I reverse engineered the client <:kek:868839618898960414>

rektbyfaith
Administrator
0
09-04-2025, 09:53 AM
#9
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?
rektbyfaith
09-04-2025, 09:53 AM #9

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?

rektbyfaith
Administrator
0
09-04-2025, 09:54 AM
#10
Archived author: Saty • Posted: 2025-09-04T09:54:08.579000+00:00
Original source

~30% of it
rektbyfaith
09-04-2025, 09:54 AM #10

Archived author: Saty • Posted: 2025-09-04T09:54:08.579000+00:00
Original source

~30% of it

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)