Jump to content

vector3


lsabakal

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
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
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
Share on other sites

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

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

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