예제 #1
0
        private void SocialTask(object sender, System.Timers.ElapsedEventArgs e)
        {
            if (!CharMovement.CanMove() || IsAttacking())
            {
                return;
            }

            CharMovement.MoveTo(RandomThreadSafe.Instance.Next(SpawnX - 90, SpawnX + 90), RandomThreadSafe.Instance.Next(SpawnY - 90, SpawnY + 90), Z);

            // broadcastPacket(new SocialAction(ObjID, rnd.Next(8)));
        }
예제 #2
0
 public override async Task NotifyActionAsync(L2Player player)
 {
     double dis = Calcs.CalculateDistance(player, this, true);
     await CharMovement.MoveTo(X, Y, Z);
 }