public override async Task <bool> MoveToSpot(ExGatherTag tag) { tag.StatusText = "Moving to " + this; if (HotSpots == null || HotSpots.Count == 0) { return(false); } if (approachLocation == null) { approachLocation = HotSpots.Shuffle().First(); } var result = await approachLocation.MoveTo(dismountAtDestination : Stealth); if (!result) { return(false); } var landed = MovementManager.IsDiving || await NewNewLandingTask(); if (landed && Core.Player.IsMounted && !MovementManager.IsDiving) { ActionManager.Dismount(); } Navigator.Stop(); await Coroutine.Yield(); if (Stealth) { #if RB_CN await tag.CastAura(Ability.Stealth, AbilityAura.Stealth); #else await tag.CastAura(Ability.Sneak, AbilityAura.Sneak); #endif } result = await NodeLocation.MoveToOnGroundNoMount(tag.Distance, tag.Node.EnglishName, tag.MovementStopCallback); return(result); }
public override async Task <bool> MoveToSpot(ExGatherTag tag) { tag.StatusText = "Moving to " + this; if (StealthLocation == Vector3.Zero) { return(false); } var result = await StealthLocation.MoveTo( UseMesh, radius : tag.Radius, name : "Stealth Location", stopCallback : tag.MovementStopCallback, dismountAtDestination : true); if (!result) { return(false); } var landed = MovementManager.IsDiving || await NewNewLandingTask(); if (landed && Core.Player.IsMounted) { ActionManager.Dismount(); } Navigator.Stop(); await Coroutine.Yield(); await tag.CastAura(Ability.Stealth, AbilityAura.Stealth); result = await NodeLocation.MoveToOnGroundNoMount(tag.Distance, tag.Node.EnglishName, tag.MovementStopCallback); return(result); }
public override async Task <bool> MoveToSpot(ExGatherTag tag) { tag.StatusText = "Moving to " + this; if (ApproachLocation == Vector3.Zero) { return(false); } var result = await ApproachLocation.MoveTo( UseMesh, radius : tag.Distance, name : "Approach Location", stopCallback : tag.MovementStopCallback); if (!result) { return(false); } var landed = MovementManager.IsDiving || await CommonTasks.Land(); if (landed && Core.Player.IsMounted && !MovementManager.IsDiving) { ActionManager.Dismount(); } Navigator.Stop(); await Coroutine.Yield(); result = await NodeLocation.MoveToOnGroundNoMount(tag.Distance, tag.Node.EnglishName, tag.MovementStopCallback); return(result); }