Jump to content

Number of free bag space


Atreides

Recommended Posts

Greetings,

while running a quester profile is there a chance to get the number of the free bag space so i can force to vendor if i think there is more room neccessary?

And in second, if i start to go anywhere using this code:
------------------------------
var path = new List<Vector3>() {new Vector3(-8770.368f, 842.1389f, 90.03706f)};
MovementManager.Go(path);
while (MovementManager.InMovement && Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause && !Conditions.IsAttackedAndCannotIgnore) {Thread.Sleep(100);}
MovementManager.StopMove();
------------------------------
The bot tries to run straight to the target - without generating a path and therefore mostly against a wall and is continuing with the next step then.
Is there a way to force a new path generation?


thank you a lot!

Link to comment
Share on other sites

On 25.12.2016 at 10:53 AM, Atreides said:

Greetings,

while running a quester profile is there a chance to get the number of the free bag space so i can force to vendor if i think there is more room neccessary?

And in second, if i start to go anywhere using this code:
------------------------------
var path = new List<Vector3>() {new Vector3(-8770.368f, 842.1389f, 90.03706f)};
MovementManager.Go(path);
while (MovementManager.InMovement && Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause && !Conditions.IsAttackedAndCannotIgnore) {Thread.Sleep(100);}
MovementManager.StopMove();
------------------------------
The bot tries to run straight to the target - without generating a path and therefore mostly against a wall and is continuing with the next step then.
Is there a way to force a new path generation?


thank you a lot!

1. If i'm not wrong you can set that up in the generall options otherwise take a look here

List<Vector3> path = new List<Vector3>() {new Vector3(-8770.368f, 842.1389f, 90.03706f)};

// Move to the given position
MovementManager.Go(PathFinder.FindPath(path), false);
  
while (MovementManager.InMovement && Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause && !Conditions.IsAttackedAndCannotIgnore)
{
	Thread.Sleep(100);
}

// Stop moving
MovementManager.StopMove();

Hope that helps.

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