الموضوع: مسااااااعده
عرض مشاركة واحدة
قديم 2020-04-30, 01:53 PM
المشاركة #4  
Hassan Emprator
  • غير متواجد
افتراضي رد: مسااااااعده
ضيف ال 2 دول في world

سيرش عا

كود:
        private void WorldTournaments(int time

ضيف


كود:
#region GuildWar
            
if (GuildWar.IsWar)
            {
                if (
Time32.Now GuildWar.ScoreSendStamp.AddSeconds(3))
                {
                    
GuildWar.ScoreSendStamp Time32.Now;
                    
GuildWar.SendScores();
                }

            }
            if ((
Now64.Hour >= 00 && Now64.Hour <= 21) && Now64.DayOfWeek == DayOfWeek.Sunday)
            {
                if (!
GuildWar.IsWar)
                {
                    
GuildWar.Start();
                    foreach (
Client.GameState client in Kernel.GamePool.Values)
                    {
                        if (
client.Map.BaseID != 6001 && client.Map.BaseID != 6000 && !client.Entity.Dead)
                        {
                            
EventAlert alert = new EventAlert
                            
{
                                
StrResID 10515,
                                
Countdown 60,
                                
UK12 1
                            
};
                            
client.Entity.StrResID 10515;
                            
client.Send(alert);
                        }
                    }
                }
            }
            if (
GuildWar.IsWar)
            {
                if (
Now64.Hour == 22 && Now64.Second <= 00)
                {
                    
GuildWar.Flame10th false;
                    
GuildWar.End();
                }
            }
            
#endregion
            #region GuildWar
            
if ((Now64.Hour == 21 && Now64.Minute == 00 && Now64.Second == 00) && (Now64.DayOfWeek == DayOfWeek.Sunday))
            {
                
Kernel.SendWorldMessage(new Message("Guild War now work will end at 22:00 Server time have Chance To Get [500.000 Cps] !"Color.WhiteMessage.BroadcastMessage), Program.Values);
                foreach (var 
client in Program.Values)
                    
client.MessageBox(" Guild War now work will end at 22:00 Server time?",
                    
=> { p.Entity.Teleport(1002224237); }, null20);
            }
            
#endregion