Jump to content
  • Stuck while opening chest

    • Product: WRobot General Type: Bug Status: Unconfirmed

    I got a code for a chest opening (because it's not working by default). This code was tested like 1000-2000 times and it was working 100% of the times. About 4-6 month ago it suddenly have stoped to work. Bot is opening chest, loot it, but then just stays endlesly at the same position. I was not using that function long ago but now i need it again and after t he 6 month it is still broken. Whole profile is not working.

    My code is checking in a loop is there a chest spawned. And while there is a chest he is trying to loot it. So my guess, when he loots the chest, for some reason, bot continue to think that the chest it is still there, and are not going any further.

    Here is a code example:

                WoWGameObject chest = wManager.Wow.ObjectManager.ObjectManager.GetObjectWoWGameObject().FirstOrDefault(i => i.Entry == chestID);
                while (chest != null && chest.Position.DistanceTo(new Vector3(a, b, c)) < 5 && chest.Position.DistanceTo(ObjectManager.Me.Position) <= 15)
                             if (chest.Position.DistanceTo(ObjectManager.Me.Position) >= 5)
                                      wManager.Wow.Bot.Tasks.GoToTask.ToPosition(new Vector3(a, b, c));
                              wManager.Wow.Helpers.Interact.InteractGameObjectAutoLoot(chest.GetBaseAddress, true, false);

    Have tested it at 3 different realms, where it was working before, same problem at each of them.

    User Feedback

    Recommended Comments

    There are no comments to display.

    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...