عرض مشاركة واحدة
قديم 2019-12-18, 09:49 PM
المشاركة 4
Rider
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: مشكلة مش عارف في الوحش ولة في الاكونت
جرب ده

كود:
  private void AutoAttackCallback(GameState clientint time)
        {
            try
            {
                if (
client == null || !client.Entity.FullyLoaded || client.Entity == null)
                    return;

                if (
client.Entity.Alive == false)
                {
                    if (
DateTime.Now client.Entity.GhostStamp)
                    {
                        if (
client.Entity.Hitpoints == && client.Entity.ContainFlag(Game.MsgServer.MsgUpdate.Flags.Dead) && !client.Entity.ContainFlag(MsgUpdate.Flags.Ghost))
                        {
                            
client.Entity.AddFlag(Game.MsgServer.MsgUpdate.Flags.GhostRole.StatusFlagsBigVector32.PermanentFlagtrue);
                            if (
client.Entity.Body 10 3)
                                
client.Entity.TransformationID 99;
                            else
                                
client.Entity.TransformationID 98;
                        }
                    }
                }
                
ServerProject.MsgServer.Time32 timer ServerProject.MsgServer.Time32.Now;
                if (
client.OnAutoAttack && client.Entity.Alive)
                {
                    if (
client.Entity.ContainFlag(Game.MsgServer.MsgUpdate.Flags.Dizzy))
                    {
                        
client.OnAutoAttack false;
                        return;
                    }

                    
InteractQuery action = new InteractQuery();
                    
action InteractQuery.ShallowCopy(client.AutoAttack);
                    
client.Entity.RandomSpell action.SpellID;
                    
MsgAttackPacket.Process(clientaction);

                    
//MsgAttackPacket.ProcessAttack.Enqueue(new MsgAttackPacket.AttackObj() { User = client, Attack = action });
                
}

                
/* if (client.PrepareAttack != null)//&& client.TryAttacking > 0)
                 {
                     //  client.TryAttacking--;
                     InteractQuery action = new InteractQuery();
                     action = InteractQuery.ShallowCopy(client.PrepareAttack.Attack);
                     MsgAttackPacket.Process(client, action);

                 }*/
            
}
            catch (
Exception e)
            {
                
Console.WriteLine(e.ToString());
            }

        }