الموضوع: طلب Clan war
عرض مشاركة واحدة
قديم 2020-02-13, 04:32 PM
المشاركة 3
MRonlineGvrix
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: طلب Clan war
با النسبة للجوايز ابحث بدل دا با الى عندك

كود:
                #region ClanWar
                
case 48116:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hello there. Do you want to Join The ClanWar.. It Start [20.00 To 21.00] EveryDay Excpt Friday?.");
                                    
dialog.Option("Yes Please."1);
                                    
dialog.Option("Cliam Prize."2);
                                    
dialog.Option("Just Passing By!"255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    if (
ClanWar.IsWar)
                                    {
                                        
client.Entity.Teleport(150982119);
                                        
client.Entity.PKMode Game.Enums.PKMode.PK;
                                        
client.Send(new Data(true) { UID client.Entity.UIDID Data.ChangePKModedwParam = (uint)client.Entity.PKMode });
                                    }
                                    else
                                    {
                                        
dialog.Text("The War Has Not Started It Start [20.00 To 21.00] EveryDay Excpt Friday");
                                        
dialog.Option("Aww ok!"255);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    if (
ClanWar.KeeperID != && !ClanWar.IsWar && ClanWar.Claim && client.Entity.ClanId == ClanWar.KeeperID && client.Entity.ClanRank == Clan.Ranks.ClanLeader)
                                    {

                                        
Program.AddWarLog("ClanWar""[Prize : 1,000,000]"client.Entity.Name);
                                        
ClanWar.Claim false;
                                        
ClanWar.KeeperID 0;
                                        
client.Entity.OnlinePoints += 1;
                                        
client.Entity.ConquerPoints += 1000000;
                                        
client.Entity.BoundCps += 100000;
                                        
KhaledMohamed.Kernel.SendWorldMessage(new Message(" Congratulations  " client.Entity.Name " Leader of " client.Entity.ClanName " The winner Clan has Claimed Clan War Prize " 1000000 "[1,000,000] ConquerPoints & [100.000] CpsBound "System.Drawing.Color.WhiteMessage.TopLeft), Program.Values);
                                    }
                                    else
                                    {
                                        
dialog.Text("Sorry you dont have Any Prize to claim only CL of the winner CLAN can claim Prize After CW");
                                        
dialog.Option("Ahh."255);
                                        
dialog.Send();
                                    }

                                    break;
                                }
                        }
                        break;
                    }
                case 
4482115:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hello there. Do you want to Teleport To Twincity.");
                                    
dialog.Option(" Send Me There. "1);
                                    
dialog.Option("Just Passing By!"255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
client.Entity.Teleport(1002284146);
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 

با النسبة للوقت عدل برحتك بقا


كود:
            #region Clan War [14H] To [16H]

            
if (!Game.ClanWar.IsWar)
            {
                if ((
Now64.Hour == 14) && Now64.Minute == 00 && Now64.Second == 15 && !ClanWar.IsWar)
                {
                    
Game.ClanWar.Start();
                    
ClanWarAI false;
                    if (
Now64.Hour != 2)
                    {
                        
ClanWarAI Now64.Hour != 2;
                        foreach (var 
client in Program.Values)
                            if (
client.Entity.GuildID != 0)
                                
client.MessageBox("ClanWar has begun! Would you like to join?",
                                    
=> { p.Entity.Teleport(1002285148); }, null);
                    }
                }
                if ((
DateTime.Now.Hour == 14 && DateTime.Now.Minute == 55 && Now64.Second == 58))
                {
                    
ClanWarAI true;
                    foreach (var 
client in Program.Values)
                        if (
client.Entity.GuildID != 0)
                            
client.MessageBox("ClanWar has begun Would you like to join Prize [100,000,000] ConquerPoints & [100.000]",
                                
=> { p.Entity.Teleport(1002286143); }, null);
                }
                if (
DateTime.Now.Hour == 15 && DateTime.Now.Minute == 00 && Now64.Second == 10)
                {
                    
Game.ClanWar.End();
                }
                if (
Game.ClanWar.IsWar)
                {
                    if (
Time32.Now Game.ClanWar.ScoreSendStamp.AddSeconds(3))
                    {
                        
Game.ClanWar.ScoreSendStamp Time32.Now;
                        
Game.ClanWar.SendScores();
                    }
                }
            }
            
#endregion