Jump to content

Recommended Posts

Hello

I am trying to get the bot to look for if I have spawned a Stoneclaw totem (ID for Rank 2 is 3911)

But the below does not seem to work, is it become a Totem is not a WowGameObject?

Thanks in advance!

 

if (ObjectManager.GetWoWGameObjectByyId(3911).Count > 0)
    {
        //  Stone Claw is up
    } else {
       // Stone Claw not up
    }

 

Link to comment
https://wrobot.eu/forums/topic/8196-nearby-totem/
Share on other sites

It's not a game object, it's an NPC.
So check WoWUnits. If you wanna confirm it's yours, try unit.IsMyPet or unit.SummonedBy == ObjectManager.Me.Guid

Edited by Matenia
Link to comment
https://wrobot.eu/forums/topic/8196-nearby-totem/#findComment-37436
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
×
×
  • Create New...