Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
No edit summary
m (type: 'happiness' should be 'loyalty' for loyaltyRate)
Line 8: Line 8:
 
:'''happiness''' (integer) - the numerical happiness value of the pet (1 = unhappy, 2 = content, 3 = happy)
 
:'''happiness''' (integer) - the numerical happiness value of the pet (1 = unhappy, 2 = content, 3 = happy)
 
:'''damagePercentage''' (integer) - damage modifier, happiness affects this (unhappy = 75%, content = 100%, happy = 125%)
 
:'''damagePercentage''' (integer) - damage modifier, happiness affects this (unhappy = 75%, content = 100%, happy = 125%)
:'''loyaltyRate''' (integer) - the rate at which your pet is currently gaining happiness (< 0, losing loyalty, > 0, gaining loyalty)
+
:'''loyaltyRate''' (integer) - the rate at which your pet is currently gaining loyalty (< 0, losing loyalty, > 0, gaining loyalty)
   
 
{{template:WoW API}}
 
{{template:WoW API}}

Revision as of 14:33, 5 April 2006

Returns the pet's happiness, damage percentage, and loyalty gain rate.

happiness, damagePercentage, loyaltyRate = GetPetHappiness();

Returns:
happiness (integer) - the numerical happiness value of the pet (1 = unhappy, 2 = content, 3 = happy)
damagePercentage (integer) - damage modifier, happiness affects this (unhappy = 75%, content = 100%, happy = 125%)
loyaltyRate (integer) - the rate at which your pet is currently gaining loyalty (< 0, losing loyalty, > 0, gaining loyalty)

Template:WoW API