wow20230625 0 Posted July 24, 2023 Share Posted July 24, 2023 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); } Link to comment https://wrobot.eu/forums/topic/15256-when-the-character-is-dead%EF%BC%8Cusing-a-custom-path-to-the-location-of-the-resurrection/ Share on other sites More sharing options...
Droidz 2742 Posted July 26, 2023 Share Posted July 26, 2023 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. Link to comment https://wrobot.eu/forums/topic/15256-when-the-character-is-dead%EF%BC%8Cusing-a-custom-path-to-the-location-of-the-resurrection/#findComment-68592 Share on other sites More sharing options...
denny1984 0 Posted November 21, 2023 Share Posted November 21, 2023 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 Link to comment https://wrobot.eu/forums/topic/15256-when-the-character-is-dead%EF%BC%8Cusing-a-custom-path-to-the-location-of-the-resurrection/#findComment-69032 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now