Jump to content

Error with "Catch Zeppelin/Ship"


Bronson

Recommended Posts

Droidz, your code "Catch Zeppelin/Ship" from the topic "Snippets codes for quest profiles" works well with the zeppelin, but doesn't work with the ship (Rut'theran Village to Stormwind). The profile gives an error with coordinates:

"var fromShipWaitPosition = new Vector3(8162,587, 1005,365, -0,03771297); // Position where Zeppelin/Ship waits players (from)"

"var toShipWaitPosition = new Vector3(-8644.726, 1341.569, 0,0184304); // Position where Zeppelin/Ship waits players (to)"

and gives an error because of the third part of the coordinate "-0,03771297"/"0,0184304", as soon as I'm changing them to integer when standing on the ship, the code is working, but nothing happens =\  This wrong condition, I know, but the code does not work with the coordinates of the ship from "dump all informations" or "memory informations" new Vector3(8162,587, 1005,365, -0,03771297) in Rut'theran Village where ship waits players (from) or new Vector3(-8644.726, 1341.569, 0,0184304) in Stormwind where ship waits players (to).

Ship to SW.xml

Link to comment
Share on other sites

1 hour ago, Bronson said:

Droidz, your code "Catch Zeppelin/Ship" from the topic "Snippets codes for quest profiles" works well with the zeppelin, but doesn't work with the ship (Rut'theran Village to Stormwind). The profile gives an error with coordinates:

"var fromShipWaitPosition = new Vector3(8162,587, 1005,365, -0,03771297); // Position where Zeppelin/Ship waits players (from)"

"var toShipWaitPosition = new Vector3(-8644.726, 1341.569, 0,0184304); // Position where Zeppelin/Ship waits players (to)"

and gives an error because of the third part of the coordinate "-0,03771297"/"0,0184304", as soon as I'm changing them to integer when standing on the ship, the code is working, but nothing happens =\  This wrong condition, I know, but the code does not work with the coordinates of the ship from "dump all informations" or "memory informations" new Vector3(8162,587, 1005,365, -0,03771297) in Rut'theran Village where ship waits players (from) or new Vector3(-8644.726, 1341.569, 0,0184304) in Stormwind where ship waits players (to).

Ship to SW.xml

"var fromShipWaitPosition = new Vector3(8162,587, 1005,365, -0,03771297); // Position where Zeppelin/Ship waits players (from)"

"var toShipWaitPosition = new Vector3(-8644.726, 1341.569, 0,0184304); // Position where Zeppelin/Ship waits players (to)"

see the diffence ? one is with . and the other is with , change both to . like

(8162.587, 1005.365, -0.03771297);

(-8644.726, 1341.569, 0.0184304);

and you are good to go

Link to comment
Share on other sites

It's still not working, instead of having to run to the ship, the character jumps into the water and swims to the ship, but no runs on it. 

I tried to specify two types of coordinates when the character is on the ship:

var fromPlayerInShipPosition = new Vector3(8167.698, 1009.787, 6.15589); - the coordinates of the character on the ship

var fromPlayerInShipPosition = new Vector3(8162.587, 1005.365, 0.04409864); - the coordinates of the ship when the character is standing on it

When the ship sails, the character jumps into the water and rests on the texture of the ship

Maybe easier to use a command of the following type: 

wManager.Wow.Helpers.Move.Forward(Move.MoveAction.PressKey, 600); 

Appear when the ship sails, and not to bother with the coordinates?

Link to comment
Share on other sites

I made some edits in the code, now the character just runs forward, when the ship sails (from) and when ship arrives to the end point (to) character runs backward to the pier.

Don't forget only make your coordinates/transport id/continent id and if necessary edit variables "2000" and "3000" (seconds):
"wManager.Wow.Helpers.Move.Forward(Move.MoveAction.PressKey, 2000);" - move forward in 2 sec
"wManager.Wow.Helpers.Move.Backward(Move.MoveAction.PressKey, 3000);" - backward movement in 3 sec

Ship to SW from Rut'theran Village.xml

Link to comment
Share on other sites

39 minutes ago, Bronson said:

I made some edits in the code, now the character just runs forward, when the ship sails (from) and when ship arrives to the end point (to) character runs backward to the pier.

Don't forget only make your coordinates/transport id/continent id and if necessary edit variables "2000" and "3000" (seconds):
"wManager.Wow.Helpers.Move.Forward(Move.MoveAction.PressKey, 2000);" - move forward in 2 sec
"wManager.Wow.Helpers.Move.Backward(Move.MoveAction.PressKey, 3000);" - backward movement in 3 sec

Ship to SW from Rut'theran Village.xml

Soulds good mate - now im just waiting for the vanilla bot update - where it is possible to use it there.

Link to comment
Share on other sites

9 minutes ago, Arcangelo said:

Soulds good mate - now im just waiting for the vanilla bot update - where it is possible to use it there.

I would be glad if this solution will help you, I have finally everything works :D

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
  • 3 years 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...