Jump to content

Enter in dungeon after die


zatvorgt

Recommended Posts

Hello , much dungeons dont have system to enter in dungeon after  to die,  i need to resolve this with movement manager , exist code to check if corpse in dungeon? my code is not work

This code need to work after i to die ....but path finder conflict..

wManager.Events.MovementEvents.OnMoveToLoop += () =>
        {


 if (  ObjectManager.Me.Position.DistanceTo2D(new Vector3(-3077.433, 4942.94, -101.0476)) < 510  && !ObjectManager.Me.IsAlive &&   wManager.Wow.Helpers.Usefuls.ContinentId == (int)wManager.Wow.Enums.ContinentId.Expansion01)
{

var enterdungeon = new Vector3(-3077.433, 4942.94, -101.0476);

while (ObjectManager.Me.Position.DistanceTo(enterdungeon) > 5)
{

MovementManager.Go(PathFinder.FindPath(enterdungeon), false);
Thread.Sleep(10000);

}

ObjectManager.Me.Rotation = 5f; 

wManager.Wow.Helpers.Move.Forward(Move.MoveAction.PressKey, 5000); //for enter dungeon


}


      };




and i have this  cycle

[N] 15:05:35 - [Path-Finding] Path Count: 2 (21,78443y, 0ms)
[N] 15:05:45 - [Path-Finding] FindPath from -3099,044 ; 4940,529 ; -99,73226 ; "None" to -3077,433 ; 4942,94 ; -101,0476 ; "None" (Expansion01)
[N] 15:05:45 - [Path-Finding] Path Count: 2 (21,78443y, 0ms)
[N] 15:05:55 - [Path-Finding] FindPath from -3099,044 ; 4940,529 ; -99,73226 ; "None" to -3077,433 ; 4942,94 ; -101,0476 ; "None" (Expansion01)
[N] 15:05:55 - [Path-Finding] Path Count: 2 (21,78443y, 0ms)
[N] 15:06:05 - [Path-Finding] FindPath from -3099,044 ; 4940,529 ; -99,73226 ; "None" to -3077,433 ; 4942,94 ; -101,0476 ; "None" (Expansion01)
[N] 15:06:05 - [Path-Finding] Path Count: 2 (21,78443y, 0ms)
[N] 15:06:15 - [Path-Finding] FindPath from -3099,044 ; 4940,529 ; -99,73226 ; "None" to -3077,433 ; 4942,94 ; -101,0476 ; "None" (Expansion01)
[N] 15:06:15 - [Path-Finding] Path Count: 2 (21,78443y, 0ms)
[N] 15:06:25 - [Path-Finding] FindPath from -3099,044 ; 4940,529 ; -99,73226 ; "None" to -3077,433 ; 4942,94 ; -101,0476 ; "None" (Expansion01)
[N] 15:06:25 - [Path-Finding] Path Count: 2 (21,78443y, 0ms)
[N] 15:06:35 - [Path-Finding] FindPath from -3099,044 ; 4940,529 ; -99,73226 ; "None" to -3077,433 ; 4942,94 ; -101,0476 ; "None" (Expansion01)
 

Link to comment
Share on other sites

Hello, try code like 

        wManager.Events.MovementEvents.OnMoveToPulse += (point, cancelable) => 
        {


            if (point.DistanceTo2D(new Vector3(-3077.433, 4942.94, -101.0476)) < 1.5 && !ObjectManager.Me.IsAlive && wManager.Wow.Helpers.Usefuls.ContinentId == (int)wManager.Wow.Enums.ContinentId.Expansion01)
            {
                var enterdungeon = new Vector3(-3077.433, 4942.94, -101.0476);
                point.X = enterdungeon.X;
                point.Y = enterdungeon.Y;
                point.Z = enterdungeon.Z;
            }
        };

 

Link to comment
Share on other sites

On 11/24/2018 at 5:55 PM, Droidz said:

Hello, try code like 


        wManager.Events.MovementEvents.OnMoveToPulse += (point, cancelable) => 
        {


            if (point.DistanceTo2D(new Vector3(-3077.433, 4942.94, -101.0476)) < 1.5 && !ObjectManager.Me.IsAlive && wManager.Wow.Helpers.Usefuls.ContinentId == (int)wManager.Wow.Enums.ContinentId.Expansion01)
            {
                var enterdungeon = new Vector3(-3077.433, 4942.94, -101.0476);
                point.X = enterdungeon.X;
                point.Y = enterdungeon.Y;
                point.Z = enterdungeon.Z;
            }
        };

 

not work ....bot run without pathfinder ..... need to create path for new vector

Link to comment
Share on other sites

The code droidz posted is only for when you're dead and standing RIGHT on the spot before the dungeon. Then it will walk you into the dungeon from that point on.
So you need to change the coordinates correctly and it will work.

Link to comment
Share on other sites

31 minutes ago, Matenia said:

The code droidz posted is only for when you're dead and standing RIGHT on the spot before the dungeon. Then it will walk you into the dungeon from that point on.
So you need to change the coordinates correctly and it will work.

is good , but     bot after die in dungeon - teleporting on spirit healer  ,after  need code(with pathfinder) to run   of spirit healer to enter dungeon 

Link to comment
Share on other sites

  • 5 months later...

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