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

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