Jump to content

Recommended Posts

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
https://wrobot.eu/forums/topic/15260-vector3/
Share on other sites

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 ?

Link to comment
https://wrobot.eu/forums/topic/15260-vector3/#findComment-68605
Share on other sites

  On 7/29/2023 at 9:51 AM, 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 ?

Expand  

this code doesn't work, my char will run different side, and trying to swim to undercity

Link to comment
https://wrobot.eu/forums/topic/15260-vector3/#findComment-68607
Share on other sites

  On 7/30/2023 at 8:58 AM, Droidz said:

your code or my code should work. Can you share log when the bot should run this code please

Expand  

Yes your code and my isn't working at all

30 июл 2023 13H43.log.htmlFetching info...

Link to comment
https://wrobot.eu/forums/topic/15260-vector3/#findComment-68612
Share on other sites

  On 7/31/2023 at 8:27 AM, 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.

Expand  

everythins should work, but its not, no idea why.

 

Link to comment
https://wrobot.eu/forums/topic/15260-vector3/#findComment-68614
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...