Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (ā‹®) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Implement own mount routine

Featured Replies

hello community!
I'm trying to implement following method in druid FC: when condition met bot has to use flying mount, else ground mount.

There is following logic: I'm subscribing to OnPathFinderFindPath event and checking if I need to use flying path to destination point. If so then I'm setting destination flying and calling LongMove.LongMoveGo(destination).

private static void checkIfNeedFlyingPath(Vector3 from, Vector3 to, string continentNameMpq, CancelEventArgs cancelable)
{
	if (NeedToUseFlyingPath(to))
	{
		to.SetFlying();
		UseFlightForm();		
		Logging.WriteNavigator($"LongMove to {to}");                
		LongMove.LongMoveGo(to);                
		cancelable.Cancel = true;
	}                
}

Ā 

Function that check if I need to fly.

private static bool NeedToUseFlyingPath(Vector3 dest)
{
	RotationLogger.Debug($"Calling NeedToUseFlyingPath({dest})");
	if (!FlightForm.IsKnown() || Me.IsDead || Me.IsSwimming || Usefuls.ContinentNameMpq == "Azeroth")
	{
		RotationLogger.Debug($"NeedToUseFlyingPath() precondition failed!");
		return false;
	}
            
	float dist = Me.Position.DistanceTo(dest);
	RotationLogger.Debug($"[Movement] Distance to point {dist}");

	if (dist >= FCSettings.CurrentSetting.MinDistanceToFly &&
		(Logging.Status == "To Town" ||
		Logging.Status == "Farming" ||
		Logging.Status == "Looting" ||
		ToTown.GoToTownInProgress ||
		dist >= FCSettings.CurrentSetting.DistanceToFly))
	{                
		RotationLogger.Debug($"[Movement] Need to use flying path to {dest}");
		return true;
	}
  
	RotationLogger.Debug($"[Movement] Need to use ground path to {dest}");
	return false;            
}

Ā 

The problem that this method is not stable. Sometimes it works fine, sometimes especially after farming state bot literally walks by the ground in flying form, then he might continue flying. I couldn't get where does he get this ground points when there is LongMove between 2 points šŸ™‚

When I use built-in flying mechanics everything works decent. But I don't know how to implement similar flight mechanics.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.