Apexx 60 Posted September 20, 2017 Share Posted September 20, 2017 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 https://wrobot.eu/forums/topic/7138-check-hunter-pet-exists/ Share on other sites More sharing options...
iMod 99 Posted September 20, 2017 Share Posted September 20, 2017 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 https://wrobot.eu/forums/topic/7138-check-hunter-pet-exists/#findComment-32321 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now