Ejemplo n.º 1
0
        public override void PerformCheck()
        {
            if (!World.IsCreatureLogedIn(CurrentCreature) ||
                CurrentCreature.FollowCheck != this)
            {
                return;
            }

            //TODO: Finish coding
            Creature cAtking = CurrentCreature.GetCreatureAttacking();

            if (cAtking != null)
            {
                if (CurrentCreature.CurrentFightStance == FightStance.CHASE)
                {
                    CurrentCreature.CurrentWalkSettings.Destination         = cAtking.CurrentPosition;
                    CurrentCreature.CurrentWalkSettings.IntendingToReachDes = false;
                }
                else
                {
                    CurrentCreature.CurrentWalkSettings.Destination = null;
                }
            }

            World.HandleMoveCheck(CurrentCreature);
            World.AddEventInCS(10, PerformCheck);
        }
Ejemplo n.º 2
0
        public override void PerformCheck()
        {
            if (!World.IsCreatureLogedIn(CurrentCreature) ||
                CurrentCreature.AttackCheck != this)
            {
                return;
            }

            World.HandleAttackCheck(CurrentCreature, CurrentCreature.GetCreatureAttacking());
            World.AddEventInCS(TimeInCS, PerformCheck);
        }