Inheritance: ExBuddy.OrderBotTags.Behaviors.ExProfileBehavior
Exemplo n.º 1
0
        public override async Task <bool> MoveToLocation(ExFishTag 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)
            {
                await Coroutine.Yield();

                if (!Core.Player.HasAura((int)AbilityAura.Stealth))
                {
                    tag.DoAbility(ExFishTag.Abilities.Stealth);
                }

                result = await Location.MoveToNoMount(UseMesh, tag.Radius, tag.Name, tag.MovementStopCallback);
            }

            return(result);
        }
Exemplo n.º 2
0
        public override async Task <bool> MoveFromLocation(ExFishTag tag)
        {
            tag.StatusText = "Moving from " + this;

            var result = true;

            if (ReturnToStealthLocation)
            {
                result &= await StealthLocation.MoveToNoMount(UseMesh, tag.Radius, "Stealth Location", tag.MovementStopCallback);
            }

#if RB_CN
            if (UnstealthAfter && Core.Player.HasAura((int)AbilityAura.Stealth))
            {
                result &= tag.DoAbility(Ability.Stealth);                 // TODO: move into abilities map?
            }
#else
            if (UnstealthAfter && Core.Player.HasAura((int)AbilityAura.Sneak))
            {
                result &= tag.DoAbility(Ability.Sneak); // TODO: move into abilities map?
            }
#endif

            return(result);
        }
Exemplo n.º 3
0
 public virtual async Task <bool> MoveToLocation(ExFishTag tag)
 {
     return(await Task.FromResult(true));
 }
Exemplo n.º 4
0
		public override async Task<bool> MoveFromLocation(ExFishTag tag)
		{
			tag.StatusText = "Moving from " + this;

			var result = true;
			if (ReturnToStealthLocation)
			{
				result &= await StealthLocation.MoveToNoMount(UseMesh, tag.Radius, "Stealth Location", tag.MovementStopCallback);
			}

			if (UnstealthAfter && Core.Player.HasAura((int) AbilityAura.Stealth))
			{
				result &= tag.DoAbility(ExFishTag.Abilities.Stealth); // TODO: move into abilities map?
			}

			return result;
		}
Exemplo n.º 5
0
		public virtual async Task<bool> MoveToLocation(ExFishTag tag)
		{
			return true;
		}
Exemplo n.º 6
0
		public override async Task<bool> MoveToLocation(ExFishTag 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)
			{
				await Coroutine.Yield();
				if (!Core.Player.HasAura((int) AbilityAura.Stealth))
				{
					tag.DoAbility(ExFishTag.Abilities.Stealth);
				}

				result = await Location.MoveToNoMount(UseMesh, tag.Radius, tag.Name, tag.MovementStopCallback);
			}

			return result;
		}
Exemplo n.º 7
0
 public virtual async Task <bool> MoveToLocation(ExFishTag tag)
 {
     return(true);
 }