public override async Task <bool> MoveFromSpot(ExGatherTag tag) { tag.StatusText = "Moving from " + this; var result = true; if (ReturnToApproachLocation) { result &= await approachLocation.MoveToOnGround(); } #if RB_CN if (UnstealthAfter && Core.Player.HasAura((int)AbilityAura.Stealth)) { result &= await tag.CastAura(Ability.Stealth); } #else if (UnstealthAfter && Core.Player.HasAura((int)AbilityAura.Sneak)) { result &= await tag.CastAura(Ability.Sneak); } #endif //change the approach location for the next time we go to this node. approachLocation = HotSpots.Shuffle().First(); return(result); }
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> MoveFromSpot(ExGatherTag tag) { tag.StatusText = "Moving from " + this; var result = true; if (ReturnToApproachLocation) { result &= await approachLocation.MoveToNoMount(UseMesh, tag.MovementStopCallback); } if (UnstealthAfter && Core.Player.HasAura((int)AbilityAura.Stealth)) { result &= await tag.CastAura(Ability.Stealth); } //change the approach location for the next time we go to this node. approachLocation = HotSpots.Shuffle().First(); return(result); }
public override async Task <bool> MoveToSpot(ExGatherTag tag) { tag.StatusText = "Moving to " + this; if (approachLocation == Vector3.Zero) { if (HotSpots == null || HotSpots.Count == 0) { return(false); } approachLocation = HotSpots.Shuffle().First(); } var result = await approachLocation.MoveToPointWithin(dismountAtDestination : Stealth); if (result) { await Coroutine.Yield(); if (Stealth) { await tag.CastAura(Ability.Stealth, AbilityAura.Stealth); result = await NodeLocation.MoveToNoMount(UseMesh, tag.Distance, tag.Node.EnglishName, tag.MovementStopCallback); } else { result = await NodeLocation.MoveTo( UseMesh, radius : tag.Distance, name : tag.Node.EnglishName, stopCallback : tag.MovementStopCallback); } } return(result); }