قديم 2019-10-29, 07:33 AM
المشاركة 2
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: ThunderCould بتفضل ظاهره ع الارض مش بتختفي
فوق

كود:
 private void CharactersCallback(GameState clientint time

ارمي دي

كود:
  public TimerRule<EntityThunderCloud;
        private 
void ThunderCloudTimer(Entity ThunderCloudint time)
        {
            if (
ThunderCloud == null) return;
            if (!
Kernel.Maps.ContainsKey(ThunderCloud.MapID))
            {
                
Kernel.Maps[ThunderCloud.MapID].RemoveEntity(ThunderCloud);
                
Data data = new Data(true);
                
data.UID ThunderCloud.UID;
                
data.ID Data.RemoveEntity;
                
ThunderCloud.MonsterInfo.SendScreen(data);
                
ThunderCloud.MonsterInfo.SendScreen(data);
                foreach (var 
client in Kernel.GamePool.Values)
                {
                    if (
Kernel.GetDistance(ThunderCloud.XThunderCloud.Yclient.Player.Xclient.Player.Y) > 16) continue;
                    
client.RemoveScreenSpawn(ThunderCloudtrue);
                }
                
Unregister(ThunderCloud);
                return;
            }
            if (
Time32.Now >= ThunderCloud.ThunderCloudStamp.AddSeconds(1))
            {
                
ThunderCloud.ThunderCloudStamp Time32.Now;
                if (
ThunderCloud.Hitpoints 400)
                    
ThunderCloud.Hitpoints -= 400;
                else
                {
                    
Kernel.Maps[ThunderCloud.MapID].RemoveEntity(ThunderCloud);
                    
Data data = new Data(true);
                    
data.UID ThunderCloud.UID;
                    
data.ID Data.RemoveEntity;
                    
ThunderCloud.MonsterInfo.SendScreen(data);
                    
ThunderCloud.MonsterInfo.SendScreen(data);
                    foreach (var 
client in Kernel.GamePool.Values)
                    {
                        if (
Kernel.GetDistance(ThunderCloud.XThunderCloud.Yclient.Player.Xclient.Player.Y) > 16) continue;
                        
client.RemoveScreenSpawn(ThunderCloudtrue);
                    }
                    
Unregister(ThunderCloud);
                    return;
                }
            }
            if ((
ThunderCloud.SpawnPacket[50] == && Time32.Now >= ThunderCloud.MonsterInfo.LastMove.AddMilliseconds(750)) || ThunderCloud.SpawnPacket[50] == 128)
            {
                
ThunderCloud.MonsterInfo.LastMove Time32.Now;
                if (
ThunderCloud.MonsterInfo.InSight == 0)
                {
                    foreach (var 
one in Kernel.Maps[ThunderCloud.MapID].Entities.Values.Where(=> Kernel.GetDistance(ThunderCloud.XThunderCloud.Yi.Xi.Y) <= ThunderCloud.MonsterInfo.AttackRange))
                    {
                        if (
one == null || one.Dead || one.MonsterInfo.Guard || one.Companion) continue;
                        
ThunderCloud.MonsterInfo.InSight one.UID;
                        
Entity insight null;
                        if (
Kernel.Maps[ThunderCloud.MapID].Entities.ContainsKey(ThunderCloud.MonsterInfo.InSight))
                            
insight Kernel.Maps[ThunderCloud.MapID].Entities[ThunderCloud.MonsterInfo.InSight];
                        else if (
Kernel.GamePool.ContainsKey(ThunderCloud.MonsterInfo.InSight))
                            
insight Kernel.GamePool[ThunderCloud.MonsterInfo.InSight].Player;
                        if (
insight == null || insight.Dead || (insight.MonsterInfo != null && insight.MonsterInfo.Guard))
                        {
                            
ThunderCloud.MonsterInfo.InSight 0;
                            break;
                        }
                        new 
Game.Attacking.Handle(nullThunderCloudinsight);
                        break;
                    }
                }
                else
                {
                    
Entity insight null;
                    if (
Kernel.Maps[ThunderCloud.MapID].Entities.ContainsKey(ThunderCloud.MonsterInfo.InSight))
                        
insight Kernel.Maps[ThunderCloud.MapID].Entities[ThunderCloud.MonsterInfo.InSight];
                    else if (
Kernel.GamePool.ContainsKey(ThunderCloud.MonsterInfo.InSight))
                        
insight Kernel.GamePool[ThunderCloud.MonsterInfo.InSight].Player;
                    if (
insight == null || insight.Dead || (insight.MonsterInfo != null && insight.MonsterInfo.Guard))
                    {
                        
ThunderCloud.MonsterInfo.InSight 0;
                        return;
                    }
                    new 
Game.Attacking.Handle(nullThunderCloudinsight);
                }
            }

        } 

سيرش

كود:
Buffers = new TimerRule<GameState>(BuffersCallback1000ThreadPriority.BelowNormal); 

ارمي فوقها

كود:
 ThunderCloud = new TimerRule<Entity>(ThunderCloudTimer250ThreadPriority.Lowest); 


قديم 2019-10-29, 11:06 PM
المشاركة 3
uncelsam
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: ThunderCould بتفضل ظاهره ع الارض مش بتختفي
فوق

كود:
 private void CharactersCallback(GameState clientint time

ارمي دي

كود:
  public TimerRule<EntityThunderCloud;
        private 
void ThunderCloudTimer(Entity ThunderCloudint time)
        {
            if (
ThunderCloud == null) return;
            if (!
Kernel.Maps.ContainsKey(ThunderCloud.MapID))
            {
                
Kernel.Maps[ThunderCloud.MapID].RemoveEntity(ThunderCloud);
                
Data data = new Data(true);
                
data.UID ThunderCloud.UID;
                
data.ID Data.RemoveEntity;
                
ThunderCloud.MonsterInfo.SendScreen(data);
                
ThunderCloud.MonsterInfo.SendScreen(data);
                foreach (var 
client in Kernel.GamePool.Values)
                {
                    if (
Kernel.GetDistance(ThunderCloud.XThunderCloud.Yclient.Player.Xclient.Player.Y) > 16) continue;
                    
client.RemoveScreenSpawn(ThunderCloudtrue);
                }
                
Unregister(ThunderCloud);
                return;
            }
            if (
Time32.Now >= ThunderCloud.ThunderCloudStamp.AddSeconds(1))
            {
                
ThunderCloud.ThunderCloudStamp Time32.Now;
                if (
ThunderCloud.Hitpoints 400)
                    
ThunderCloud.Hitpoints -= 400;
                else
                {
                    
Kernel.Maps[ThunderCloud.MapID].RemoveEntity(ThunderCloud);
                    
Data data = new Data(true);
                    
data.UID ThunderCloud.UID;
                    
data.ID Data.RemoveEntity;
                    
ThunderCloud.MonsterInfo.SendScreen(data);
                    
ThunderCloud.MonsterInfo.SendScreen(data);
                    foreach (var 
client in Kernel.GamePool.Values)
                    {
                        if (
Kernel.GetDistance(ThunderCloud.XThunderCloud.Yclient.Player.Xclient.Player.Y) > 16) continue;
                        
client.RemoveScreenSpawn(ThunderCloudtrue);
                    }
                    
Unregister(ThunderCloud);
                    return;
                }
            }
            if ((
ThunderCloud.SpawnPacket[50] == && Time32.Now >= ThunderCloud.MonsterInfo.LastMove.AddMilliseconds(750)) || ThunderCloud.SpawnPacket[50] == 128)
            {
                
ThunderCloud.MonsterInfo.LastMove Time32.Now;
                if (
ThunderCloud.MonsterInfo.InSight == 0)
                {
                    foreach (var 
one in Kernel.Maps[ThunderCloud.MapID].Entities.Values.Where(=> Kernel.GetDistance(ThunderCloud.XThunderCloud.Yi.Xi.Y) <= ThunderCloud.MonsterInfo.AttackRange))
                    {
                        if (
one == null || one.Dead || one.MonsterInfo.Guard || one.Companion) continue;
                        
ThunderCloud.MonsterInfo.InSight one.UID;
                        
Entity insight null;
                        if (
Kernel.Maps[ThunderCloud.MapID].Entities.ContainsKey(ThunderCloud.MonsterInfo.InSight))
                            
insight Kernel.Maps[ThunderCloud.MapID].Entities[ThunderCloud.MonsterInfo.InSight];
                        else if (
Kernel.GamePool.ContainsKey(ThunderCloud.MonsterInfo.InSight))
                            
insight Kernel.GamePool[ThunderCloud.MonsterInfo.InSight].Player;
                        if (
insight == null || insight.Dead || (insight.MonsterInfo != null && insight.MonsterInfo.Guard))
                        {
                            
ThunderCloud.MonsterInfo.InSight 0;
                            break;
                        }
                        new 
Game.Attacking.Handle(nullThunderCloudinsight);
                        break;
                    }
                }
                else
                {
                    
Entity insight null;
                    if (
Kernel.Maps[ThunderCloud.MapID].Entities.ContainsKey(ThunderCloud.MonsterInfo.InSight))
                        
insight Kernel.Maps[ThunderCloud.MapID].Entities[ThunderCloud.MonsterInfo.InSight];
                    else if (
Kernel.GamePool.ContainsKey(ThunderCloud.MonsterInfo.InSight))
                        
insight Kernel.GamePool[ThunderCloud.MonsterInfo.InSight].Player;
                    if (
insight == null || insight.Dead || (insight.MonsterInfo != null && insight.MonsterInfo.Guard))
                    {
                        
ThunderCloud.MonsterInfo.InSight 0;
                        return;
                    }
                    new 
Game.Attacking.Handle(nullThunderCloudinsight);
                }
            }

        } 

سيرش

كود:
Buffers = new TimerRule<GameState>(BuffersCallback1000ThreadPriority.BelowNormal); 

ارمي فوقها

كود:
 ThunderCloud = new TimerRule<Entity>(ThunderCloudTimer250ThreadPriority.Lowest); 
عااااااااااااااااااش بجد

قديم 2019-10-30, 01:16 AM
المشاركة 4
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: ThunderCould بتفضل ظاهره ع الارض مش بتختفي
<3


العلامات المرجعية



الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

الانتقال السريع

المواضيع المتشابهه للموضوع: ThunderCould بتفضل ظاهره ع الارض مش بتختفي
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
مشكلة الاسكلات اللى بتفضل ف سورس رايزو nova مشكلات السيرفيرات كونكر الشخصيه 5 2020-03-29 01:43 PM
اسكلة النينجا الى بتطلع من الارض عالية اوي فى الضرب lofyCo مشكلات السيرفيرات كونكر الشخصيه 1 2020-03-25 02:17 PM
اسكلة النينجا اديك فى الارض تفحر عاوز اشوفلها حل MRonlineGvrix مشكلات السيرفيرات كونكر الشخصيه 4 2020-02-05 05:55 PM
حل مشكله الاك لما بيموت يقع عا الارض وبعدين يتحول شبح Hassan Emprator تطوير سيرفرات كونكر 7 2019-11-15 08:49 AM
الوحوش مش ظاهره في اللعبه سمير مشكلات السيرفيرات كونكر الشخصيه 4 2019-10-26 12:56 AM


الساعة الآن 11:28 AM

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.