Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How do I use Pathfinder.Findpath?

Featured Replies

Hello,

So i made a plugin that trains herb and skinning it works, but when my bot is for example in elwyn forest he wants to go to stormwind in straight line through the mountains..

he wants to use this code:

wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(-8969.99f, 779.636f, 95.89193f), 5566, 1, false);

So I tried code below, but its not working he keeps trying to go in straight line to sw.. help me out how do I use the pathfinder?

                var position = new Vector3(-8969.99f, 779.636f, 95.89193f);
                int npcEntryId = 6929; 

                Logging.Write("bindloc: " + bindLocation);
                //while (bindLocation != "Stormwind")
                //Logging.Write(ObjectManager.Me.Position.ToString());
                var lo = PathFinder.FindPath(ObjectManager.Me.Position, position);
                Logging.Write(lo.ToString());
                foreach (Vector3 waypoint in lo)
                {
                    Logging.Write(waypoint.ToString());
                    // Move to the given position
                    MovementManager.Go(PathFinder.FindPath(waypoint), false);

                    // Loop
                    while (MovementManager.InMovement && Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause)
                    {
                        ObjectManager.Me.Position.DistanceTo2D(waypoint) > 1.5
                        // Wait follow path
                        Thread.Sleep(10);
                    }
                }
  • 2 weeks later...

Hello, it is more like that:

        var position = new Vector3(-8969.99f, 779.636f, 95.89193f);
        int npcEntryId = 6929;

        Logging.Write("bindloc: " + bindLocation);
        //while (bindLocation != "Stormwind")
        //Logging.Write(ObjectManager.Me.Position.ToString());
        var lo = PathFinder.FindPath(ObjectManager.Me.Position, position);
        Logging.Write(lo.ToString());
        MovementManager.Go(lo);
        // Loop
        while (MovementManager.InMovement && Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause)
        {
            Thread.Sleep(10);
        }
        MovementManager.StopMove();

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.