Jump to content

Recommended Posts

Is there a way to check using C#, if the hunter player even has a pet? I would like to include pet mending, reviving, and calling inside my fight class, but
if the hunter does not even own a pet yet, how can I bypass the abilities inside the fight class if there is no pet?
 

Quote

Digits 4-10 - A constant value unique to the individual pet: like a player's unique ID it is constant across multiple sessions.

-http://wowprogramming.com/docs/api_types#guid


I was wondering if I could just check if GUID != 0?

Link to comment
Share on other sites

5 hours ago, Apexx said:

Is there a way to check using C#, if the hunter player even has a pet? I would like to include pet mending, reviving, and calling inside my fight class, but
if the hunter does not even own a pet yet, how can I bypass the abilities inside the fight class if there is no pet?
 


I was wondering if I could just check if GUID != 0?

ObjectManager.Pet.IsValid

May that helps.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...