lsabakal 2 Posted July 28, 2023 Share Posted July 28, 2023 can someone explain me what am doing wrong or why it doesn't work in Silvermoon city var pos = new Vector3(9992.634, -7113.402, 47.70632); int clickonobject = 184502; GoToTask.ToPosition(pos); while (MovementManager.InMovement) { Thread.Sleep(250); } if (ObjectManager.Me.Position.DistanceTo2D(pos) < 3) { Interact.InteractGameObject(ObjectManager.GetWoWGameObjectByEntry(clickonobject).FirstOrDefault().GetBaseAddress); Thread.Sleep(500); } return true; after pick up the quest my char should run to the position and click on the object, but this doesn't happens. Link to comment Share on other sites More sharing options...
Droidz 2737 Posted July 29, 2023 Share Posted July 29, 2023 Hello, You don't need to wait (while (MovementManager.InMovement)) with gototask. You can directly interact with a game object with code like : var pos = new Vector3(9992.634, -7113.402, 47.70632); int clickonobject = 184502; bool result = GoToTask.ToPositionAndIntecractWithGameObject(pos, clickonobject); return result; Do you have any error in your log when bot run this task ? lsabakal 1 Link to comment Share on other sites More sharing options...
lsabakal 2 Posted July 29, 2023 Author Share Posted July 29, 2023 Will test it shortly Link to comment Share on other sites More sharing options...
lsabakal 2 Posted July 29, 2023 Author Share Posted July 29, 2023 3 hours ago, Droidz said: Hello, You don't need to wait (while (MovementManager.InMovement)) with gototask. You can directly interact with a game object with code like : var pos = new Vector3(9992.634, -7113.402, 47.70632); int clickonobject = 184502; bool result = GoToTask.ToPositionAndIntecractWithGameObject(pos, clickonobject); return result; Do you have any error in your log when bot run this task ? this code doesn't work, my char will run different side, and trying to swim to undercity Link to comment Share on other sites More sharing options...
lsabakal 2 Posted July 29, 2023 Author Share Posted July 29, 2023 3 hours ago, Droidz said: Do you have any error in your log when bot run this task ? dont have any Link to comment Share on other sites More sharing options...
Droidz 2737 Posted July 30, 2023 Share Posted July 30, 2023 your code or my code should work. Can you share log when the bot should run this code please Link to comment Share on other sites More sharing options...
lsabakal 2 Posted July 30, 2023 Author Share Posted July 30, 2023 20 hours ago, Droidz said: your code or my code should work. Can you share log when the bot should run this code please Yes your code and my isn't working at all 30 июл 2023 13H43.log.html Link to comment Share on other sites More sharing options...
Droidz 2737 Posted July 31, 2023 Share Posted July 31, 2023 The code is not executed, at no time in the log file is there a path lookup for the position of your code. Link to comment Share on other sites More sharing options...
lsabakal 2 Posted July 31, 2023 Author Share Posted July 31, 2023 32 minutes ago, Droidz said: The code is not executed, at no time in the log file is there a path lookup for the position of your code. everythins should work, but its not, no idea why. Link to comment Share on other sites More sharing options...
lsabakal 2 Posted July 31, 2023 Author Share Posted July 31, 2023 can you write code to force the bot follow to this object and click on it? Link to comment Share on other sites More sharing options...
Droidz 2737 Posted July 31, 2023 Share Posted July 31, 2023 Your code is in the quest "EnvoytotheHorde" ? Link to comment Share on other sites More sharing options...
lsabakal 2 Posted July 31, 2023 Author Share Posted July 31, 2023 4 minutes ago, Droidz said: Your code is in the quest "EnvoytotheHorde" ? yes Link to comment Share on other sites More sharing options...
lsabakal 2 Posted July 31, 2023 Author Share Posted July 31, 2023 similar code work as well, with different quest. Link to comment Share on other sites More sharing options...
lsabakal 2 Posted July 31, 2023 Author Share Posted July 31, 2023 mb this code doesnt work bcoz the bloodelf location is an instance, and the npc where it need to be turned in, stay out of the instance... Link to comment Share on other sites More sharing options...
Droidz 2737 Posted August 1, 2023 Share Posted August 1, 2023 I'm pretty sure your code is not running, but I don't know why. it could be due to a bad quest ID or something else. Link to comment Share on other sites More sharing options...
lsabakal 2 Posted August 1, 2023 Author Share Posted August 1, 2023 with quest id everything is ok. bot do it quest, when you handly move your char trough translocation orb Link to comment 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