jim87
New Member
- Joined
- Aug 26, 2011
- Messages
- 445
- Reaction score
- 7
Hello!
I must admit I took this code from HighVoltz's fishing plugin and adapted for mine.
Here is the code:
Most probably the Flightor won't work if I don't add some code to check if I'm actually mounting a flying mount, at this moment I'm concentrating on the ground mount.
The problem is that the navigator will stop for a fraction of time from point to point (click to move). I thought it was because of faulty multiple requests of the method, but I've checked and I'm sure it's being called only once.
So... where is the problem? How can I make the bot move from point to point smoothly without stopping each time? Maybe messing around with Navigator.PathPrecision? I tried setting to 2.0F, but didn't help...
Thanks
I must admit I took this code from HighVoltz's fishing plugin and adapted for mine.
Here is the code:
PHP:
public static void GoToPoint(WoWPoint p, float dist)
{
LocalPlayer me = ObjectManager.Me;
if (Jimbo.Instance.MySettings.Fly)
Flightor.MoveTo(WoWMathHelper.CalculatePointFrom(me.Location, p, dist));
else
{
if (!ObjectManager.Me.Mounted && Mount.ShouldMount(p) && Mount.CanMount())
Mount.MountUp();
Navigator.MoveTo(WoWMathHelper.CalculatePointFrom(me.Location, p, dist));
}
}
Most probably the Flightor won't work if I don't add some code to check if I'm actually mounting a flying mount, at this moment I'm concentrating on the ground mount.
The problem is that the navigator will stop for a fraction of time from point to point (click to move). I thought it was because of faulty multiple requests of the method, but I've checked and I'm sure it's being called only once.
So... where is the problem? How can I make the bot move from point to point smoothly without stopping each time? Maybe messing around with Navigator.PathPrecision? I tried setting to 2.0F, but didn't help...
Thanks
Last edited: