عرض مشاركة واحدة
قديم 2019-07-13, 07:05 AM
المشاركة 7
Rider
.:: نائب المدير ::.
  • غير متواجد
Happy رد: مشكلة بخصوص السرفر
يجماعة من فضلكو محدش شفلى حل لى المشكلة دى ولا اية مش بشوف بقيت الاميلاات لية ؟؟؟
اصبر علي رزقك يا صحبي

ادخل علي Packethandler.cs


ابحث عن
كود:
static void SetLocation(Data generalData, Client.GameState client) 

و بدلها ب دي
كود:
 static void SetLocation(Data generalData, Client.GameState client)
        {
            if (
client.Entity.MyJiang != null)
            {
                
JiangHu.AttributesToArray(client);
                if (
client.Entity.MyJiang.SecondsEnd != 0)
                {

                    
client.Entity.MyJiang.SendOnline(client, true);
                    
client.Entity.MyJiang.OnShutDown = true;
                    
client.Entity.MyJiang.StartJiang = Time32.Now;
                    
client.LoadItemStats();
                }
                else
                {
                    
client.Entity.MyJiang.SendToArray(client, false);
                }
            }
            else if (
client.Entity.Reborn == 2)
            {
                
TalentStatus tal = new TalentStatus(client.Entity.UID);
                
tal.Mode = "0";
                
tal.Type = 0;
                
client.Send(tal);
            }
            
SendFlower sendFlower = new SendFlower();
            
sendFlower.Typing = (Flowers.IsBoy((uint)client.Entity.Body) ? 3u : 2u);
            
client.Send(sendFlower.ToArray());

            
client.Send(client.Entity.MyAchievement.ToArray());
            if (
client.Guild != null)
            {
                
client.Guild.SendGuild(client);
                
GuildMinDonations guildMinDonations = new GuildMinDonations(31);
                
guildMinDonations.AprendGuild(client.Guild);
                
client.Send(guildMinDonations.ToArray());
            }
            
Clan clan = client.Entity.GetClan;
            if (
clan != null)
            {
                
clan.Build(client, Clan.Types.Info);
                
client.Send(clan);

                
client.Entity.ClanName = clan.Name;

                
client.Send(new ClanRelations(clan, ClanRelations.RelationTypes.Allies));
                
client.Send(new ClanRelations(clan, ClanRelations.RelationTypes.Enemies));
            }

            foreach (
Game.ConquerStructures.Society.Guild guild in Kernel.Guilds.Values)
            {
                
guild.SendName(client);
                
guild.SendName(client);
            }

            if (
client.Entity.EnlightmentTime > 0)
            {
                
Enlight enlight = new Enlight(true);
                
enlight.Enlighted = client.Entity.UID;
                
enlight.Enlighter = 0;

                if (
client.Entity.EnlightmentTime > 80)
                    
client.Entity.EnlightmentTime = 100;
                else if (
client.Entity.EnlightmentTime > 60)
                    
client.Entity.EnlightmentTime = 80;
                else if (
client.Entity.EnlightmentTime > 40)
                    
client.Entity.EnlightmentTime = 60;
                else if (
client.Entity.EnlightmentTime > 20)
                    
client.Entity.EnlightmentTime = 40;
                else if (
client.Entity.EnlightmentTime > 0)
                    
client.Entity.EnlightmentTime = 20;
                for (
int count = 0; count < client.Entity.EnlightmentTime; count += 20)
                {
                    
client.Send(enlight);
                }
            }

            if (
client.Entity.Hitpoints != 0)
            {
                if (
client.Map.ID == 1036 || client.Map.ID == 1039)
                {
                    if (
client.Entity.PreviousMapID == 0)
                        
client.Entity.SetLocation(1002, 300, 278);
                    else
                    {
                        switch (
client.Entity.PreviousMapID)
                        {
                            default:
                                {
                                    
client.Entity.SetLocation(1002, 300, 278);
                                    break;
                                }
                            case 
1000:
                                {
                                    
client.Entity.SetLocation(1000, 500, 650);
                                    break;
                                }
                            case 
1020:
                                {
                                    
client.Entity.SetLocation(1020, 565, 562);
                                    break;
                                }
                            case 
1011:
                                {
                                    
client.Entity.SetLocation(1011, 188, 264);
                                    break;
                                }
                            case 
1015:
                                {
                                    
client.Entity.SetLocation(1015, 717, 571);
                                    break;
                                }
                        }
                    }
                }
            }
            else
            {
                if (
client.Entity.MapID == 1038 && KhaledMohamed.Game.GuildWar.IsWar)
                {
                    
client.Entity.SetLocation(6001, 31, 74);
                }
                else
                {
                    
ushort[] Point = Database.DataHolder.FindReviveSpot(client.Map.ID);
                    
client.Entity.SetLocation(Point[0], Point[1], Point[2]);
                }
            }
            
generalData.dwParam = client.Map.BaseID;
            
generalData.wParam1 = client.Entity.X;
            
generalData.wParam2 = client.Entity.Y;
            
client.Send(generalData);
            
client.Screen.Reload(null);//Done
            
client.Screen.FullWipe();
            
client.SendScreenSpawn(client.Entity, true);
            
client.Screen.Reload(null);
        } 

و سيبك من السورس الي مليان مشاكل ده انا شويه كده و هنزل سورس فكسد باذن الله يا بكره يا بعده