Jump to content

Correct sentences for MoveTo in RunCode


craine

Recommended Posts

Hello,

I know there is a way to use the MoveTo command in a RunCode step on quest profiles but, what is the exact sentences to move the bot on a specific hotspots ?

Something like 

wManager.Wow.Helpers.MovementManager.MoveTo

should work but, how should i give the position of the hotspots ?

Link to comment
Share on other sites

7 minutes ago, craine said:

Hello,

I know there is a way to use the MoveTo command in a RunCode step on quest profiles but, what is the exact sentences to move the bot on a specific hotspots ?

Something like 


wManager.Wow.Helpers.MovementManager.MoveTo

should work but, how should i give the position of the hotspots ?

Not sure, maybe like that?

<QuestsSorted Action="RunCode" NameClass="wManager.Wow.Bot.Tasks.GoToTask.ToPosition(new Vector3(38.23928f, 10.52102f, -4.297345f));" />

Or just add a FollowPath with a IsCompleteCondition

<IsCompleteCondition>return (ObjectManager.Me.Position.DistanceTo2D(new Vector3(-591.455, 4074.51, 93.8132)) &lt; 10);</IsCompleteCondition>

 

Link to comment
Share on other sites

Just now, Runaro said:

Not sure, maybe like that?


<QuestsSorted Action="RunCode" NameClass="return (wManager.Wow.Helpers.MovementManager.MoveTo(new Vector3(-591.455, 4074.51, 93.8132)) &lt; 10);" />

Or just add a FollowPath with a IsCompleteCondition


<IsCompleteCondition>return (ObjectManager.Me.Position.DistanceTo2D(new Vector3(-591.455, 4074.51, 93.8132)) &lt; 10);</IsCompleteCondition>

 

runcode part is wrong

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