I'm implementing spritithealer-corpse navigation (hb's navigator cant get to it correctly) and i'm having a little issue.
How can i disable or do something with plugin(so it will stop calling pulse again and again), until my toon will get to the destination point?
Here is an example of what i'm doing
and here is an example of what i'm getting in logs
Perhaps i did\am doing something wrong, please correct me if it is so.
Maybe i can somehow disable bot's movement at all, so it will navigate with plugin only?
How can i disable or do something with plugin(so it will stop calling pulse again and again), until my toon will get to the destination point?
Code:
if (Me.IsGhost)
{
Logging.Write("I'm flying to my body");
body = new WoWPoint(Me.CorpsePoint.X,Me.CorpsePoint.Y,Me.CorpsePoint.Z);
me = new WoWPoint(Me.X, Me.Y, Me.Z);
WoWPoint point0 = new WoWPoint(Me.X, Me.Y, Me.Z + 50);
Logging.Write("point0 {0}", point0);
while(Me.Location!=point0)
{
Styx.Logic.Pathing.Flightor.MoveTo(point0);
}
Logging.Write("point1 {0}", point1);
me = new WoWPoint(Me.X, Me.Y, Me.Z);
while (Me.Location != point1)
{
WoWMovement.ClickToMove(point1);
}
}
and here is an example of what i'm getting in logs
Code:
I'm flying to my body
point0 <6119.564, 1033.315, 249.7186>
point1 <5882.885, 666.8167, 318.8163>
I'm flying to my body
point0 <6119.564, 1033.315, 249.7186>
point1 <5882.885, 666.8167, 318.8163>
I'm flying to my body
point0 <6119.564, 1033.315, 249.7186>
point1 <5882.885, 666.8167, 318.8163>
and so on...
Maybe i can somehow disable bot's movement at all, so it will navigate with plugin only?






