API:GetPetItemProperty

GetPetItemProperty(n)

Returns the element of the pet in slot n (1 to 6) as integer.

1 - no element

2 - earth

3 - water

4 - fire

5 - wind

6 - light

7 - darkness

example:

/run SendSystemChat(GetPetItemProperty(1))