Jump to content

when the character is dead,Using a custom path to the location of the resurrection


Recommended Posts

in quester Is invalid ,but  character will Automatic location to resurrection,Just like the following code:

MovementManager.Go(PathFinder.FindPath(new Vector3(819.1201, 541.1679, 34.26245, "None")), false);
        while (MovementManager.InMovement &&
               Conditions.InGameAndConnectedAndProductStartedNotInPause)
        {
            Thread.Sleep(100);
        }

Hello,

You won't be able to easily manage the character's movements from a quest profile when the character is dead.

One of the possible approaches (untested code):

robotManager.Events.FiniteStateMachineEvents.OnRunState += (engine, state, cancel) =>
{
    if (state is wManager.Wow.Bot.States.Resurrect)
    {
        if (ObjectManager.Me.IsDead)
        {
            MovementManager.Go(PathFinder.FindPath(new Vector3(819.1201, 541.1679, 34.26245, "None")), false);
            while (MovementManager.InMovement &&
                   Conditions.InGameAndConnectedAndProductStartedNotInPause &&
                   ObjectManager.Me.IsDead)
            {
                Thread.Sleep(100);
            }
            // cancel.Cancel = true;
        }
    }
};

You need to run this code only once and add your own conditions for it to run at the right time.

  • 3 months later...

 

On 7/26/2023 at 5:20 PM, Droidz said:

You won't be able to easily manage the character's movements from a quest profile when the character is dead.

One of the possible approaches (untested code):

I tested the code and although there were no errors, it was invalid. Do you have a better way

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