• مرحبا بك زائر , نحن نعمل الان على تطويرات عامة فى المنتدى

كويست 11 كويستة شغالين على مدار الساعة

Mayer Amir

Administrator
طاقم الإدارة
ad
السلام عليكم ورحمة الله وبركاته

جايبلكم 11 كويستة للسيرفرات السهله
عشان ميبقاش فيه ملل فى السيرفر وكل شوية يبقى فيه كويستة

نخش على الشرح على طول
هتفتح كلاس NPC
تضيف دول
C#:
                #region UnionConquer Quests
                #region LastMan [1]
                #region Last Man [1]
                case 54245:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + " Would you like to join LastManStanding PKWar?.");
                                    dialog.Option("Yes Please", 1);
                                    dialog.Option("I don't care.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {

                                    DateTime Now64 = DateTime.Now;
                                    if (Now64.Minute >= 1 && Now64.Minute <= 4)
                                    {
                                        client.Entity.RemoveFlag(Update.Flags.Ride);
                                        Random R = new Random();
                                        int Nr = R.Next(1, 10);
                                        if (Nr == 1) client.Entity.Teleport(4444, 51, 73);
                                        if (Nr == 2) client.Entity.Teleport(4444, 33, 34);
                                        if (Nr == 3) client.Entity.Teleport(4444, 67, 34);
                                        if (Nr == 4) client.Entity.Teleport(4444, 51, 73);
                                        if (Nr == 5) client.Entity.Teleport(4444, 33, 34);
                                        if (Nr == 6) client.Entity.Teleport(4444, 67, 34);
                                        if (Nr == 7) client.Entity.Teleport(4444, 51, 73);
                                        if (Nr == 8) client.Entity.Teleport(4444, 33, 34);
                                        if (Nr == 9) client.Entity.Teleport(4444, 67, 34);
                                        if (Nr == 10) client.Entity.Teleport(4444, 68, 57);
                                        client.Entity.PKMode = Game.Enums.PKMode.PK;
                                        client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
                                    }
                                    else
                                    {
                                        dialog.Text("LastManStanding Pk War is held during xx:1 to xx:4 you have 2 min to signup ");
                                        dialog.Option("I don't care.", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #region Winner of Last man [5]
                case 54246:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
                                    dialog.Option("Yes Please", 1);
                                    dialog.Option("I don't care.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    int alive = 0;
                                    DateTime Now64 = DateTime.Now;
                                    foreach (Client.GameState Entitys in Kernel.GamePool.Values)
                                        if (Entitys.Entity.MapID == 4444 && (!Entitys.Entity.Dead))
                                            alive++;
                                    if (Now64.Minute >= 5)
                                    {
                                        if (alive == 1)
                                        {
                                            client.Entity.Teleport(1002, 300, 278);
                                            client.Entity.AddTopStatus(Update.Flags2.Top8Ninja, 2, DateTime.Now.AddMinutes(59));
                                            client.Entity.ConquerPoints += CPanel.lastman;
                                            UnionConquer.Kernel.SendWorldMessage(new Message(" Congratulations " + client.Entity.Name + " claimed the prize [5kk] ConquerPoints  for winning LastManStanding for this Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
                                            client.Entity.SendSpawn(client, true);
                                            foreach (var clients in Program.Values)
                                            {
                                                if (clients.Entity.MapID == 4444)
                                                {
                                                    clients.Entity.Teleport(1002, 300, 278);
                                                    clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
                                                }
                                            }
                                        }
                                        else
                                        {
                                            dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
                                            dialog.Option("okay", 255);
                                            dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:5");
                                        dialog.Option("okay", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #endregion
                #region TeamOfWar [10]
                #region Team Of War [10]
                case 66655:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Do you Want To Go To Team Of War Event!! ");
                                    dialog.Option("Yes I want to Join.", 1);
                                    dialog.Option("No Thanks Man.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {

                                    if (DateTime.Now.Minute >= 10 && DateTime.Now.Minute < 14)
                                    {
                                        if (client.Team != null && client.Team.TeamLeader)
                                        {
                                            foreach (Client.GameState Teammate in client.Team.Teammates)
                                            {
                                                if (Teammate != null)
                                                {
                                                    Random R = new Random();
                                                    int Nr = R.Next(1, 3);
                                                    if (Nr == 1) Teammate.Entity.Teleport(2233, 45, 55);
                                                    if (Nr == 2) Teammate.Entity.Teleport(2233, 50, 55);
                                                    if (Nr == 3) Teammate.Entity.Teleport(2233, 55, 50);
                                                    client.Entity.RemoveFlag(Update.Flags.Ride);
                                                    client.Entity.PKMode = Game.Enums.PKMode.Team;
                                                    client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
                                                }
                                                else
                                                {
                                                    dialog.Text("Pleas Open the Team Or sign up in the any team other. ");
                                                    dialog.Option("I don't care.", 255);
                                                    dialog.Send();
                                                    break;
                                                }

                                            }
                                        }
                                        else
                                        {
                                            dialog.Text("Sorry You Dont Leader Team. ");
                                            dialog.Option("I don't care.", 255);
                                            dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Sign Up to War Of Team Event Every Hours in Time xx:10 To xx:14 . ");
                                        dialog.Option("I don't care.", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;

                                }


                        }
                        break;
                    }
                #endregion
                #region Prize Team Of War [10]
                case 3010557:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + " You neeD Claim your Prize Team Of War?.");
                                    dialog.Option("Yes Please", 1);
                                    dialog.Option("I don't care.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    Daily.CheackAlive19();
                                    var Now64 = DateTime.Now;
                                    if (DateTime.Now.Minute >= 15)
                                    {
                                        if (Daily.howmanyinmap19 == 1)
                                        {
                                            client.Entity.AddTopStatus(Update.Flags2.Top8Ninja, 2, DateTime.Now.AddMinutes(59));
                                            client.Entity.ConquerPoints += CPanel.teamofwar;
                                            Kernel.SendWorldMessage(new Message(" Congratulations " + client.Entity.Name + " You Win [5kk] ConquerPoints  you Earned War Team Of War.", System.Drawing.Color.Black, Message.Center), Program.Values);
                                            client.Entity.SendSpawn(client, true);
                                            client.Entity.Teleport(1002, 300, 278);
                                            EntityTable.SaveEntity(client);
                                            foreach (var clients in Program.Values)
                                            {
                                                if (clients.Entity.MapID == 2233)
                                                {
                                                    clients.Entity.Teleport(1002, 300, 278);
                                                    clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
                                                }
                                            }
                                        }
                                        else
                                        {
                                            dialog.Text("There are still " + Daily.howmanyinmap19 + " Entitys in the map kill it First To Claim Prize!");
                                            dialog.Option("okay", 255);
                                            dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:15 To xx:15");
                                        dialog.Option("okay", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #endregion
                #region UnionConquer [15]
                #region UnionConquer [15]
                case 7553:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + " Would you like to join UnionConquer PKWar?.");
                                    dialog.Option("Yes Please", 1);
                                    dialog.Option("I don't care.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {

                                    DateTime Now64 = DateTime.Now;
                                    if (Now64.Minute >= 15 && Now64.Minute <= 19)
                                    {
                                        client.Entity.RemoveFlag(Update.Flags.Ride);
                                        Random R = new Random();
                                        int Nr = R.Next(1, 2);
                                        if (Nr == 1) client.Entity.Teleport(3694, 33, 34);
                                        if (Nr == 2) client.Entity.Teleport(3694, 67, 34);
                                        client.Entity.PKMode = Game.Enums.PKMode.PK;
                                        client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
                                    }
                                    else
                                    {
                                        dialog.Text("UnionConquer Pk War is held during xx:15 to xx:19 you have 4 min to signup ");
                                        dialog.Option("I don't care.", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #region Winner of UnionConquer [15]
                case 3694:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
                                    dialog.Option("Yes Please", 1);
                                    dialog.Option("I don't care.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    int alive = 0;
                                    DateTime Now64 = DateTime.Now;
                                    foreach (Client.GameState Entitys in Kernel.GamePool.Values)
                                        if (Entitys.Entity.MapID == 3694 && (!Entitys.Entity.Dead))
                                            alive++;
                                    if (Now64.Minute >= 20)
                                    {
                                        if (alive == 1)
                                        {
                                            client.Entity.Teleport(1002, 300, 278);
                                            client.Entity.AddTopStatus(Update.Flags2.Top8Water, 2, DateTime.Now.AddMinutes(59));
                                            client.Entity.ConquerPoints += CPanel.unionconquerwar;
                                            UnionConquer.Kernel.SendWorldMessage(new Message(" Congratulations " + client.Entity.Name + " claimed the prize [5kk] ConquerPoints  for winning UnionConquer for this Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
                                            client.Entity.SendSpawn(client, true);
                                            foreach (var clients in Program.Values)
                                            {
                                                if (clients.Entity.MapID == 3694)
                                                {
                                                    clients.Entity.Teleport(1002, 300, 278);
                                                    clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry " + client.Entity.Name + "God Luck Next Time ;) "));
                                                }
                                            }
                                        }
                                        else
                                        {
                                            dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
                                            dialog.Option("okay", 255);
                                            dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:20");
                                        dialog.Option("okay", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #endregion
                #region Nobility War [20]
                #region Nobility War
                case 54230:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hello my friend : " + client.Entity.Name + " Would you like to join Nobility War?.");
                                    dialog.Option("King Island.", 1);
                                    dialog.Option("Prince Island.", 2);
                                    dialog.Option("Duck Island.", 3);
                                    dialog.Option("I don't care.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    DateTime Now64 = DateTime.Now;
                                    if (client.Entity.NobilityRank == NobilityRank.King)
                                    {
                                        if (Copra_Times.Start.Nobilty)
                                        {
                                            client.Entity.RemoveFlag(Update.Flags.Ride);
                                            client.Entity.Teleport(3691, 51, 51);
                                            client.Entity.PKMode = Game.Enums.PKMode.PK;
                                            client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
                                            #region Effects
                                            _String str = new _String(true);
                                            str.UID = client.Entity.UID;
                                            str.TextsCount = 1;
                                            str.Type = _String.Effect;
                                            str.Texts.Add("end_task");
                                            client.SendScreen(str, true);
                                            #endregion
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Nobility War is held during xx:20 to xx:24 you have 4 min to signup or You are not King.");
                                        dialog.Option("I don't care.", 255);
                                        dialog.Send();
                                    }
                                    break;
                                }
                            case 2:
                                {
                                    DateTime Now64 = DateTime.Now;
                                    if (client.Entity.NobilityRank == NobilityRank.Prince)
                                    {
                                        if (Copra_Times.Start.Nobilty)
                                        {
                                            client.Entity.RemoveFlag(Update.Flags.Ride);
                                            client.Entity.Teleport(3692, 51, 51);
                                            client.Entity.PKMode = Game.Enums.PKMode.PK;
                                            client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
                                            #region Effects
                                            _String str = new _String(true);
                                            str.UID = client.Entity.UID;
                                            str.TextsCount = 1;
                                            str.Type = _String.Effect;
                                            str.Texts.Add("end_task");
                                            client.SendScreen(str, true);
                                            #endregion
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Nobility War is held during xx:20 to xx:24 you have 4 min to signup or You are not Prince.");
                                        dialog.Option("I don't care.", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                            case 3:
                                {
                                    DateTime Now64 = DateTime.Now;
                                    if (client.Entity.NobilityRank == NobilityRank.Duke)
                                    {
                                        if (Copra_Times.Start.Nobilty)
                                        {
                                            client.Entity.RemoveFlag(Update.Flags.Ride);
                                            client.Entity.Teleport(3693, 51, 51);
                                            client.Entity.PKMode = Game.Enums.PKMode.PK;
                                            client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
                                            #region Effects
                                            _String str = new _String(true);
                                            str.UID = client.Entity.UID;
                                            str.TextsCount = 1;
                                            str.Type = _String.Effect;
                                            str.Texts.Add("end_task");
                                            client.SendScreen(str, true);
                                            #endregion
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Nobility War is held during xx:20 to xx:24 you have 4 min to signup or You are not Duke.");
                                        dialog.Option("I don't care.", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                            case 4:
                                {
                                    DateTime Now64 = DateTime.Now;
                                    if (client.Entity.NobilityRank == NobilityRank.Earl)
                                    {
                                        if (Copra_Times.Start.Nobilty)
                                        {
                                            client.Entity.RemoveFlag(Update.Flags.Ride);
                                            client.Entity.Teleport(3694, 51, 51);
                                            client.Entity.PKMode = Game.Enums.PKMode.PK;
                                            client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
                                            #region Effects
                                            _String str = new _String(true);
                                            str.UID = client.Entity.UID;
                                            str.TextsCount = 1;
                                            str.Type = _String.Effect;
                                            str.Texts.Add("end_task");
                                            client.SendScreen(str, true);
                                            #endregion
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Nobility War is held during xx:20 to xx:24 you have 4 min to signup or You are not Earl.");
                                        dialog.Option("I don't care.", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #region Nobility Wars KingPrize
                case 3691:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim King of Kings Prize? Yeah!!");
                                    dialog.Option("Nobility War prize", 1);
                                    dialog.Option("I don't care.", 0xff);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    if (Copra_Times.End.Nobilty)
                                    {
                                        UnionConquer.Game.ConquerStructures.Daily.CheackAlive22();
                                        if (UnionConquer.Game.ConquerStructures.Daily.howmanyinmap22 == 1)
                                        {
                                            client.Entity.AddTopStatus(Update.Flags2.Top8Water, 2, DateTime.Now.AddMinutes(59));
                                            client.Entity.ConquerPoints += CPanel.nobility;
                                            Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Entity.Name + " has Claimed King Prize [5kk] ConquerPoints ", System.Drawing.Color.Black, Message.Center), Program.Values);
                                            client.Entity.SendSpawn(client, true);
                                            client.Entity.Teleport(1002, 300, 278);
                                            foreach (var clients in Program.Values)
                                            {
                                                if (clients.Entity.MapID == 3691)
                                                {
                                                    clients.Entity.Teleport(1002, 300, 278);
                                                    clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
                                                }
                                            }
                                        }
                                        else
                                        {
                                            dialog.Text("Sorry, Must be (1) Alive in this map.");
                                            dialog.Option("Okay", 255);
                                            dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Nobility War King of kings you can get prize from xx:23 to xx: 25");
                                        dialog.Option("Okay", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #region Nobility Wars PrincePrize
                case 3692:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim Prince Prize? Yeah!!");
                                    dialog.Option("Prince prize.", 1);
                                    dialog.Option("i want Face Kings.", 2);
                                    dialog.Option("No, thanks.", 0xff);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    if (Copra_Times.End.Nobilty)
                                    {
                                        UnionConquer.Game.ConquerStructures.Daily.CheackAlive23();
                                        if (UnionConquer.Game.ConquerStructures.Daily.howmanyinmap23 == 1)
                                        {
                                            client.Entity.ConquerPoints += CPanel.nobility;
                                            client.Entity.AddTopStatus(Update.Flags2.Top8Water, 2, DateTime.Now.AddMinutes(59));
                                            Kernel.SendWorldMessage(new Message(" Congratulations " + client.Entity.Name + " has Claimed Prince Prize  [5kk] ConquerPoints  ", System.Drawing.Color.Black, Message.Center), Program.Values);
                                            client.Entity.SendSpawn(client, true);
                                            client.Entity.Teleport(1002, 300, 278);
                                            foreach (var clients in Program.Values)
                                            {
                                                if (clients.Entity.MapID == 3692)
                                                {
                                                    clients.Entity.Teleport(1002, 300, 278);
                                                    clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
                                                }
                                            }
                                        }
                                        else
                                        {
                                            dialog.Text("Sorry, Must be (1) Alive in this map.");
                                            dialog.Option("Okay", 255);
                                            dialog.Send();
                                            break;

                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Nobility War Prince you can get prize at xx:23.");
                                        dialog.Option("Okay", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                            case 2:
                                {
                                    if (DateTime.Now.Minute >= 20 && DateTime.Now.Minute <= 22)
                                    {
                                        UnionConquer.Game.ConquerStructures.Daily.CheackAlive23();
                                        if (UnionConquer.Game.ConquerStructures.Daily.howmanyinmap23 == 1)
                                        {
                                            client.Entity.Teleport(3691, 051, 051);
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Sorry should be (1) in Prince Map.or You, can face Princes at xx:20 : xx: 22.");
                                        dialog.Option("Okay", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #region Nobility Wars DukePrize
                case 3693:
                    {
                        switch (npcRequest.OptionID)
                        {

                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim Duke Prize? Yeah!!");
                                    dialog.Option("Duke prize.", 1);
                                    dialog.Option("i Want Face Princes.", 2);
                                    dialog.Option("No, thanks.", 0xff);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    if (Copra_Times.End.Nobilty)
                                    {
                                        UnionConquer.Game.ConquerStructures.Daily.CheackAlive24();
                                        if (UnionConquer.Game.ConquerStructures.Daily.howmanyinmap24 == 1)
                                        {
                                            client.Entity.ConquerPoints += CPanel.nobility;
                                            client.Entity.AddTopStatus(Update.Flags2.Top8Water, 2, DateTime.Now.AddMinutes(59));
                                            client.Entity.Update(_String.Effect, "moonpk_eight", true);
                                            Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Entity.Name + " has Claimed Duke Prize [5kk] ConquerPoints  ", System.Drawing.Color.Black, Message.Center), Program.Values);
                                            client.Entity.SendSpawn(client, true);
                                            client.Entity.Teleport(1002, 300, 278);
                                            foreach (var clients in Program.Values)
                                            {
                                                if (clients.Entity.MapID == 3693)
                                                {
                                                    clients.Entity.Teleport(1002, 300, 278);
                                                    clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
                                                }
                                            }
                                        }
                                        else
                                        {
                                            dialog.Text("Sorry, Must be (1) Alive in this map.");
                                            dialog.Option("Okay", 255);
                                            dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Nobility War Duke you can get prize at xx:23.");
                                        dialog.Option("Okay", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                            case 2:
                                {

                                    if (DateTime.Now.Minute >= 20 && DateTime.Now.Minute <= 22)
                                    {
                                        UnionConquer.Game.ConquerStructures.Daily.CheackAlive24();
                                        if (UnionConquer.Game.ConquerStructures.Daily.howmanyinmap24 == 1)
                                        {
                                            client.Entity.Teleport(3692, 051, 051);
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Sorry should be (1) in Duke Map.or You, can face Princes at xx:20 to xx:22.");
                                        dialog.Option("Okay", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #endregion
                #region Ss & FB [25]
                #region SS and FB [25]
                case 50545:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    if (client.Entity.Class >= 40 && client.Entity.Class <= 45)
                                    {
                                        dialog.Text("your Are an archer You can't join this arena.");
                                        dialog.Option("I see.", 255);
                                        dialog.Avatar(116);
                                        dialog.Send();
                                        break;
                                    }
                                    var weps = client.Weapons;
                                    if ((weps.Item1 != null && weps.Item1.ID / 1000 != 410) && (weps.Item2 != null && weps.Item2.ID / 1000 != 410) && (weps.Item1 != null && weps.Item1.ID / 1000 != 420) && (weps.Item2 != null && weps.Item2.ID / 1000 != 420) && (weps.Item1 != null && weps.Item1.ID / 1000 != 614) && (weps.Item2 != null && weps.Item2.ID / 1000 != 614))
                                    {
                                        client.Send(new Message("You need to wear only blade or sword!", Color.Red, Message.Talk));
                                        return;
                                    }
                                    dialog.Text("Hello " + client.Entity.Name + " I am a teleporter, I can teleport you to 1 Hit arena ,You can't use cheap skills in this map You can only use this skills [FastBlade,ScentSword], So you can play .");
                                    dialog.Option("Yea Teleport me Please !!", 1);
                                    dialog.Option("Just passing by.", 255);
                                    dialog.Avatar(234);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    if (Copra_Times.Start.FBSS2)
                                    {
                                        client.Entity.RemoveFlag(Update.Flags.Ride);
                                        //client.Entity.Hitpoints = 1;
                                        client.Entity.Teleport(1238, 50, 50);
                                        client.Entity.PKMode = Game.Enums.PKMode.PK;
                                        client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
                                        break;
                                    }
                                    else
                                    {
                                        dialog.Text("Not Now Only at xx:25 to xx:28");
                                        dialog.Option("I see.", 255);
                                        dialog.Avatar(116);
                                        dialog.Send();
                                        break;
                                    }
                                }
                        }
                        break;
                    }

                #endregion
                #region Winner of SS FB [28]
                case 5658821:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
                                    dialog.Option("Yes Please ", 1);
                                    dialog.Option("I don't care.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    int alive = 0;
                                    foreach (UnionConquer.Client.GameState Entitys in Kernel.GamePool.Values)
                                        if (Entitys.Entity.MapID == 1238 && (!Entitys.Entity.Dead))
                                            alive++;
                                    if (Copra_Times.End.FBSS)
                                    {
                                        if (alive == 1)
                                        {
                                            client.Entity.ConquerPoints += CPanel.ssfb;
                                            client.Entity.AddTopStatus(Update.Flags2.Top3Trojan, 2, DateTime.Now.AddMinutes(59));
                                            Kernel.SendWorldMessage(new Message(" Congratulations " + client.Entity.Name + " claimed [5kk] ConquerPoints  for winning the Top SS & FB for this Hour and Get Top!.", System.Drawing.Color.Black, Message.Center), Program.Values);
                                            client.Entity.SendSpawn(client, true);
                                            client.Entity.Teleport(1002, 300, 278);
                                            foreach (var clients in Program.Values)
                                            {
                                                if (clients.Entity.MapID == 1238)
                                                {
                                                    clients.Entity.Teleport(1002, 300, 278);
                                                    clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
                                                }
                                            }
                                            EntityTable.SaveEntity(client);
                                        }
                                        else
                                        {
                                            dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
                                            dialog.Option("okay", 255);
                                            dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after --:8 To --:10  ");
                                        dialog.Option("Ok I Sorry ", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #endregion
                #region Top guild [35]
                #region Sign up
                case 14569:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("HI its the new war for   guild   debuty will play with them self and leaders and members");
                                    dialog.Option("i want to join it please", 1);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    DateTime Now64 = DateTime.Now;
                                    if (DateTime.Now.Minute >= 35 && DateTime.Now.Minute <= 39)
                                    {
                                        if (client.Entity.GuildRank == (ushort)Game.Enums.GuildMemberRank.GuildLeader)
                                        {
                                            client.Entity.RemoveFlag(Update.Flags.Ride);
                                            client.Entity.Teleport(1458, 96, 113);
                                            client.Entity.PKMode = Game.Enums.PKMode.PK;
                                            client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
                                        }
                                        else if (client.Entity.GuildRank == (ushort)Game.Enums.GuildMemberRank.DeputyLeader)
                                        {
                                            client.Entity.RemoveFlag(Update.Flags.Ride);
                                            client.Entity.Teleport(1459, 96, 113);
                                            client.Entity.PKMode = Game.Enums.PKMode.PK;
                                            client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
                                        }
                                        else
                                        {
                                            client.Entity.RemoveFlag(Update.Flags.Ride);
                                            client.Entity.Teleport(1460, 96, 113);
                                            client.Entity.PKMode = Game.Enums.PKMode.PK;
                                            client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
                                        }
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #region Winner for leader
                case 15165:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
                                    dialog.Option("Yes Please", 1);
                                    dialog.Option("I don't care.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    int alive = 0;
                                    foreach (UnionConquer.Client.GameState Entitys in Program.Values)
                                        if (Entitys.Entity.MapID == 1458 && (!Entitys.Entity.Dead))
                                            alive++;
                                    client.Send(new Message("there are in map" + alive + "", System.Drawing.Color.Azure, Message.TopLeft));
                                    if (DateTime.Now.Minute > 40)
                                    {
                                        if (alive == 1)
                                        {

                                            client.Entity.ConquerPoints += CPanel.topguild;
                                            client.Entity.AddTopStatus(Update.Flags2.Top8Fire, 2, DateTime.Now.AddMinutes(59));
                                            client.Entity.Update(_String.Effect, "wspk_third", true);
                                            Kernel.SendWorldMessage(new Message(" Congratulations GuildLeader  " + client.Entity.Name + " claimed the Prize [5kk] ConquerPoints  for winning the Top Guild Man for this Hour. ", System.Drawing.Color.Black, Message.Center), Program.Values);
                                            client.Entity.Teleport(1002, 300, 278);
                                            foreach (var clients in Program.Values)
                                            {
                                                if (clients.Entity.MapID == 1458)
                                                {
                                                    clients.Entity.Teleport(1002, 300, 278);
                                                    clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
                                                }
                                            }
                                        }
                                        else
                                        {
                                            dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
                                            dialog.Option("okay", 255);
                                            dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 40 ");
                                        dialog.Option("okay", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #region Winner for debuty
                case 151652:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
                                    dialog.Option("Yes Please", 1);
                                    dialog.Option("I don't care.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    int alive = 0;
                                    foreach (UnionConquer.Client.GameState Entitys in Program.Values)
                                        if (Entitys.Entity.MapID == 1459 && (!Entitys.Entity.Dead))
                                            alive++;
                                    client.Send(new Message("there are in map" + alive + "", System.Drawing.Color.Azure, Message.TopLeft));
                                    if (DateTime.Now.Minute > 40)
                                    {
                                        if (alive == 1)
                                        {

                                            client.Entity.ConquerPoints += CPanel.topguild;
                                            client.Entity.AddTopStatus(Update.Flags2.Top8Fire, 2, DateTime.Now.AddMinutes(59));
                                            client.Entity.Update(_String.Effect, "wspk_third", true);
                                            Kernel.SendWorldMessage(new Message(" Congratulations ! DeputyLeader " + client.Entity.Name + " claimed the prize [5kk] ConquerPoints  for winning the Top Guild Man for this Hour. ", System.Drawing.Color.Black, Message.Center), Program.Values);
                                            client.Entity.Teleport(1002, 300, 278);
                                            foreach (var clients in Program.Values)
                                            {
                                                if (clients.Entity.MapID == 1459)
                                                {
                                                    clients.Entity.Teleport(1002, 300, 278);
                                                    clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
                                                }
                                            }

                                        }
                                        else
                                        {
                                            dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
                                            dialog.Option("okay", 255);
                                            dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 40 ");
                                        dialog.Option("okay", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #region Winner for members
                case 151653:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
                                    dialog.Option("Yes Please", 1);
                                    dialog.Option("I don't care.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    int alive = 0;
                                    foreach (UnionConquer.Client.GameState Entitys in Program.Values)
                                        if (Entitys.Entity.MapID == 1460 && (!Entitys.Entity.Dead))
                                            alive++;
                                    client.Send(new Message("there are in map" + alive + "", System.Drawing.Color.Azure, Message.TopLeft));
                                    if (DateTime.Now.Minute > 40)
                                    {
                                        if (alive == 1)
                                        {

                                            client.Entity.ConquerPoints += CPanel.topguild;
                                            client.Entity.AddTopStatus(Update.Flags2.Top8Fire, 2, DateTime.Now.AddMinutes(59));
                                            client.Entity.Update(_String.Effect, "mate_pk_02", true);
                                            Kernel.SendWorldMessage(new Message(" Congratulations ! Member " + client.Entity.Name + " claimed the prize [5kk] ConquerPoints  for winning the Top Guild Man for this Hour. ", System.Drawing.Color.Black, Message.Center), Program.Values);
                                            client.Entity.Teleport(1002, 300, 278);
                                            foreach (var clients in Program.Values)
                                            {
                                                if (clients.Entity.MapID == 1460)
                                                {
                                                    clients.Entity.Teleport(1002, 300, 278);
                                                    clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
                                                }
                                            }

                                        }
                                        else
                                        {
                                            dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
                                            dialog.Option("okay", 255);
                                            dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 40 ");
                                        dialog.Option("okay", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #endregion
                #region Conquer~Top[40]
                #region [Conquer~Top][40]
                case 333311:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + " Would you like to join the [Conquer~Top] if you win Conquer.Top & CPs  ?.");
                                    dialog.Option("Yes Please", 1);
                                    dialog.Option("Not now.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    DateTime Now64 = DateTime.Now;
                                    if (DateTime.Now.Minute >= 40 && DateTime.Now.Minute <= 44)
                                    {
                                        client.Entity.RemoveFlag(Update.Flags.Ride);
                                        client.Entity.Teleport(44444, 50, 46);
                                        client.Entity.PKMode = Game.Enums.PKMode.PK;
                                        client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
                                    }
                                    else
                                    {
                                        dialog.Text("[Conquer~Top] PK War is held during xx:40 To xx:44 in every Hour");
                                        dialog.Option("I don't care.", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #region [Conquer~Top Prize][40]
                case 333322:
                    switch (npcRequest.OptionID)
                    {
                        case 0:
                            {
                                dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
                                dialog.Option("Yes Please", 1);
                                dialog.Option("I don't care.", 0xff);
                                dialog.Send();
                                break;
                            }

                        case 1:
                            {
                                int alive = 0;
                                foreach (UnionConquer.Client.GameState Entitys in UnionConquer.Kernel.GamePool.Values)

                                    if (Entitys.Entity.MapID == 44444 && (!Entitys.Entity.Dead))
                                        alive++;
                                if (DateTime.Now.Minute >= 45)
                                {
                                    if (alive == 1)
                                    {
                                        client.Entity.AddTopStatus(Update.Flags2.Top8Archer, 2, DateTime.Now.AddMinutes(59));
                                        client.Entity.ConquerPoints += CPanel.conquertop;
                                        client.Entity.Teleport(1002, 298, 278);
                                        Kernel.SendWorldMessage(new Message(string.Concat(new object[] { " Congratulations ", client.Entity.Name, " claimed the prize [5kk] ConquerPoints  for winning the [Conquer~Top] for this Hour." }), System.Drawing.Color.Black, 0x7db), UnionConquer.Program.Values);
                                        client.Entity.SendSpawn(client, true);
                                        client.Entity.Teleport(0x3ea, 0x1ad, 0x17a);
                                        client.Entity.Teleport(1002, 298, 278);
                                        EntityTable.SaveEntity(client);
                                        foreach (var clients in Program.Values)
                                        {
                                            if (clients.Entity.MapID == 44444)
                                            {
                                                clients.Entity.Teleport(1002, 300, 278);
                                                clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
                                            }
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("There are still " + Daily.howmanyinmap + " Entitys in the map kill it first to claim prize!");
                                        dialog.Option("okay", 0xff);
                                        dialog.Send();
                                    }
                                }
                                else
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:45");
                                    dialog.Option("okay", 0xff);
                                    dialog.Send();
                                }
                                break;
                            }
                    }
                    break;
                #endregion
                #endregion
                #region Attacker Quest [50]
                #region Attacker Quest [50]
                case 122222:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize Attacker Quest");
                                    dialog.Option("Yes Please", 1);
                                    dialog.Option("I don't care.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {

                                    DateTime Now64 = DateTime.Now;
                                    if (Now64.Minute >= 50 && Now64.Minute <= 54)
                                    {
                                        client.Entity.RemoveFlag(Update.Flags.Ride);
                                        Random R = new Random();
                                        int Nr = R.Next(1, 10);
                                        if (Nr == 1) client.Entity.Teleport(2222, 51, 73);
                                        if (Nr == 2) client.Entity.Teleport(2222, 33, 34);
                                        if (Nr == 3) client.Entity.Teleport(2222, 67, 34);
                                        if (Nr == 4) client.Entity.Teleport(2222, 51, 73);
                                        if (Nr == 5) client.Entity.Teleport(2222, 33, 34);
                                        if (Nr == 6) client.Entity.Teleport(2222, 67, 34);
                                        if (Nr == 7) client.Entity.Teleport(2222, 51, 73);
                                        if (Nr == 8) client.Entity.Teleport(2222, 33, 34);
                                        if (Nr == 9) client.Entity.Teleport(2222, 67, 34);
                                        if (Nr == 10) client.Entity.Teleport(2222, 68, 57);
                                        client.Entity.PKMode = Game.Enums.PKMode.PK;
                                        client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
                                    }
                                    else
                                    {
                                        dialog.Text("Attacker Quest is held during xx:50 to xx:54 you have 4 min to signup ");
                                        dialog.Option("I don't care.", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #region Winner of Attacker Quest
                case 122223:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
                                    dialog.Option("Yes Please", 1);
                                    dialog.Option("I don't care.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    DateTime Now64 = DateTime.Now;
                                    int alive = 0;
                                    foreach (Client.GameState Entitys in Kernel.GamePool.Values)
                                        if (Entitys.Entity.MapID == 2121 && (!Entitys.Entity.Dead))
                                            alive++;
                                    if (Now64.Minute >= 55)
                                    {
                                        if (alive == 1)
                                        {
                                            client.Entity.AddTopStatus(Update.Flags2.Top8Archer, 2, DateTime.Now.AddMinutes(59));
                                            client.Entity.ConquerPoints += CPanel.attacker;
                                            Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Entity.Name + " Win [5kk] ConquerPoints  for win Attacker Quest Tournament.", System.Drawing.Color.Black, Message.Center), Program.Values);
                                            client.Entity.SendSpawn(client, true);
                                            client.Entity.Teleport(1002, 300, 278);
                                            foreach (var clients in Program.Values)
                                            {
                                                if (clients.Entity.MapID == 2121 || clients.Entity.MapID == 2323 || clients.Entity.MapID == 2222)
                                                {
                                                    clients.Entity.Teleport(1002, 300, 278);
                                                    clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
                                                }
                                            }
                                        }
                                        else
                                        {
                                            dialog.Text("There are still " + alive + " Attacker Quest Tournament Entitys in the map kill it first to claim prize!");
                                            dialog.Option("okay", 255);
                                            dialog.Avatar(32);
                                            dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after in every Hour xx:55");
                                        dialog.Option("ok I Sorry", 255);
                                        dialog.Avatar(32);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #endregion
                #region InnerPower Quest
                #region InnerPowerQuest
                case 12341:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Do you want to join InnerPwoer points quest ?");
                                    dialog.Option("Yes i want", 1);
                                    dialog.Option("Not now", 255);
                                    dialog.Send();
                                }
                                break;
                            case 1:
                                {
                                    DateTime Now64 = DateTime.Now;
                                    if (DateTime.Now.Minute >= 05 && DateTime.Now.Minute <= 08)
                                    {
                                        client.Entity.Teleport(5566, 49, 33);
                                    }
                                    else
                                    {
                                        dialog.Text("Sorry, Quest start every time x05 To x9.");
                                        dialog.Option("Thanks.", 255);
                                    }
                                }
                                break;
                        }
                        break;
                    }

                #endregion
                #region InnerPowerQuest Prize
                case 524246:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
                                    dialog.Option("Yes Please", 1);
                                    dialog.Option("I don't care.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    int alive = 0;
                                    DateTime Now64 = DateTime.Now;
                                    foreach (Client.GameState Entitys in Kernel.GamePool.Values)
                                        if (Entitys.Entity.MapID == 5566 && (!Entitys.Entity.Dead))
                                            alive++;
                                    if (DateTime.Now.Minute >= 9)
                                    {
                                        if (alive == 1)
                                        {
                                            client.Entity.Teleport(1002, 300, 278);
                                            client.Entity.AddTopStatus(Update.Flags4.WindwalkerTop, 2, DateTime.Now.AddMinutes(59));
                                            client.Entity.ConquerPoints += CPanel.innerp;
                                            UnionConquer.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Entity.Name + " claimed the prize [5kk] ConquerPoints  for winning InnerPower Quest for this Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
                                            client.Entity.SendSpawn(client, true);
                                            foreach (var clients in Program.Values)
                                            {
                                                if (clients.Entity.MapID == 5566)
                                                {
                                                    clients.Entity.Teleport(1002, 300, 278);
                                                    clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
                                                }
                                            }
                                        }
                                        else
                                        {
                                            dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
                                            dialog.Option("okay", 255);
                                            dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:09");
                                        dialog.Option("okay", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #endregion
                #region Donation Pk
                #region Donation~PK
                case 1234561:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Donation PK?.");
                                    dialog.Option("Yes Please", 1);
                                    dialog.Option("Not now.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    DateTime Now64 = DateTime.Now;
                                    if (Now64.Minute >= 45 && Now64.Minute <= 49)
                                    {
                                        client.Entity.Teleport(5541, 55, 50);
                                    }
                                    else
                                    {
                                        dialog.Text("[Donation~PK] War is held during Every Hour At xx.45 until xx 49");
                                        dialog.Option("I don't care.", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #region Donation~PK Prize
                case 12345611:
                    switch (npcRequest.OptionID)
                    {
                        case 0:
                            {
                                dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
                                dialog.Option("Yes Please", 1);
                                dialog.Option("I don't care.", 0xff);
                                dialog.Send();
                                break;
                            }

                        case 1:
                            {
                                int alive = 0;
                                foreach (GameState Entitys in Kernel.GamePool.Values)
                                    if (Entitys.Entity.MapID == 5541 && (!Entitys.Entity.Dead))
                                        alive++;
                                DateTime Now64 = DateTime.Now;
                                if (DateTime.Now.Minute >= 50)
                                {

                                    if (alive == 1)
                                    {
                                        if (DateTime.Now.Minute >= 50 && DateTime.Now.Minute <= 59)
                                            client.Entity.RemoveFlag(Update.Flags.Ride);
                                        //client.Inventory.Add(3000624, 0, 1);
                                        client.Entity.AddTopStatus(Update.Flags2.Top8Warrior, 2, DateTime.Now.AddMinutes(59));
                                        client.Entity.ConquerPoints += CPanel.donationpk;
                                        UnionConquer.Kernel.SendWorldMessage(new Message(" Congratulations !  " + client.Entity.Name + "You Winner Quest Donation-Pk Prize [5kk] ConquerPoints  ", System.Drawing.Color.Black, Message.Center), Program.Values);
                                        client.Entity.SendSpawn(client, true);
                                        client.Entity.Teleport(1002, 300, 278);
                                        EntityTable.SaveEntity(client);

                                        foreach (var clients in Program.Values)
                                        {
                                            if (clients.Entity.MapID == 5541)
                                            {
                                                clients.Entity.Teleport(1002, 300, 278);
                                                clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
                                            }
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("There are still " + Daily.howmanyinmap + " Entitys in the map kill it first to claim prize!");
                                        dialog.Option("okay", 0xff);
                                        dialog.Send();
                                    }
                                }
                                else
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after  xx:50");
                                    dialog.Option("okay", 0xff);
                                    dialog.Send();
                                }
                                break;
                            }
                        case 2:
                            {
                                {
                                    client.Entity.Teleport(1002, 302, 280);
                                }
                                break;
                            }
                        case 3:
                            {
                                INpc npc = null;
                                if (client.Map.Npcs.TryGetValue(client.ActiveNpc, out npc))
                                {
                                    Data data = new Data(true);
                                    data.ID = Data.OpenWindow;
                                    data.UID = client.Entity.UID;
                                    data.TimeStamp = Time32.Now;
                                    data.dwParam = 0x1FA;
                                    data.wParam1 = npc.X;
                                    data.wParam2 = npc.Y;
                                    client.Send(data);
                                }
                                break;
                            }
                    }
                    break;
                #endregion
                #endregion
                #region Mr&Ms Conquer [56]
                #region Mr Conquer
                case 18222:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hello " + client.Entity.Name + " This Is Mr Conquer join now And Get Top Mr Conquer");
                                    dialog.Option("let me join", 1);

                                    break;
                                }
                            case 1:
                                DateTime Now64 = DateTime.Now;
                                if (DateTime.Now.Minute >= 56 && DateTime.Now.Minute <= 58)
                                {
                                    if (PacketHandler.IsBoy(client.Entity.Body))
                                    {
                                        client.Entity.Teleport(1366, 55, 67);
                                    }
                                    else
                                    {
                                        dialog.Text("You Are Not boy");
                                        dialog.Option("okay", 255);
                                        dialog.Send();
                                    }
                                }
                                else
                                {

                                    dialog.Text("This is not the right time Come Later at xx56 to xx59 in every hour");
                                    dialog.Option("okay", 255);
                                    dialog.Send();
                                }
                                break;

                        }
                        break;
                    }
                #endregion
                #region Miss Conquer
                case 18223:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hello " + client.Entity.Name + " This Is Miss Conquer join now And Get Top Miss Conquer");
                                    dialog.Option("let me join", 1);

                                    break;
                                }
                            case 1:
                                DateTime Now64 = DateTime.Now;
                                if (DateTime.Now.Minute >= 56 && DateTime.Now.Minute <= 58)
                                {
                                    if (PacketHandler.IsGirl(client.Entity.Body))
                                    {
                                        client.Entity.Teleport(1365, 55, 67);
                                    }
                                    else
                                    {
                                        dialog.Text("You Are Not Girl");
                                        dialog.Option("okay", 255);
                                        dialog.Send();
                                    }
                                }
                                else
                                {

                                    dialog.Text("This is not the right time Come Later at xx56 to xx59 in every Hour");
                                    dialog.Option("okay", 255);
                                    dialog.Send();
                                }
                                break;

                        }
                        break;
                    }
                #endregion
                #region Winner MRConquerHost [56]
                case 301052:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
                                    dialog.Option("Yes Please", 1);
                                    dialog.Option("I don't care.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    Daily.CheackAlive17();
                                    var Now64 = DateTime.Now;
                                    if (DateTime.Now.Minute >= 59)
                                    {
                                        if (Daily.howmanyinmap17 == 1)
                                        {
                                            client.Entity.Update(_String.Effect, "cortege", true);
                                            client.Entity.ConquerPoints += CPanel.mrmsconquer;
                                            client.Entity.AddTopStatus(Update.Flags.TopSpouse, 1, DateTime.Now.AddMinutes(59));
                                            Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Entity.Name + " has got [5kk] ConquerPoints  For Winning Top MRConquerHost For This Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
                                            client.Entity.SendSpawn(client, true);
                                            client.Entity.Teleport(1002, 302, 278);
                                            EntityTable.SaveEntity(client);
                                            foreach (var clients in Program.Values)
                                            {
                                                if (clients.Entity.MapID == 1366)
                                                {
                                                    clients.Entity.Teleport(1002, 300, 278);
                                                    clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
                                                }
                                            }
                                        }
                                        else
                                        {
                                            dialog.Text("There are still " + Daily.howmanyinmap17 + " Entitys in the map kill it first to claim prize!");
                                            dialog.Option("okay", 255);
                                            dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:59");
                                        dialog.Option("okay", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #region Winner MSsConquerHost [56]
                case 301053:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
                                    dialog.Option("Yes Please", 1);
                                    dialog.Option("I don't care.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    Daily.CheackAlive16();
                                    var Now64 = DateTime.Now;
                                    if (DateTime.Now.Minute >= 59)
                                    {
                                        if (Daily.howmanyinmap16 == 1)
                                        {
                                            client.Entity.Update(_String.Effect, "cortege", true);
                                            client.Entity.ConquerPoints += CPanel.mrmsconquer;
                                            client.Entity.AddTopStatus(Update.Flags.TopSpouse, 1, DateTime.Now.AddMinutes(59));
                                            Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Entity.Name + " has got [5kk] ConquerPoints  For Winning Top MRConquerHost For This Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
                                            client.Entity.SendSpawn(client, true);
                                            client.Entity.Teleport(1002, 302, 278);
                                            EntityTable.SaveEntity(client);
                                            foreach (var clients in Program.Values)
                                            {
                                                if (clients.Entity.MapID == 1365)
                                                {
                                                    clients.Entity.Teleport(1002, 300, 278);
                                                    clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
                                                }
                                            }
                                        }
                                        else
                                        {
                                            dialog.Text("There are still " + Daily.howmanyinmap16 + " Entitys in the map kill it first to claim prize!");
                                            dialog.Option("okay", 255);
                                            dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:59");
                                        dialog.Option("okay", 255);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                #endregion
                #endregion
                #endregion
بعدها تفتح كلاس World or Thread وتضيف دول

C#:
            #region UnionConquer HQuests
            #region Elite GW [00] To [15]
            if (Now64.Minute == 00 && Now64.Second == 2)
            {
                if (!Game.EliteGuildWar.IsWar)
                {
                    if (Now64.Minute == 00 && Now64.Second == 2)
                    {
                        Game.EliteGuildWar.Start();
                        foreach (var client in Program.Values)

                            client.MessageBox("EliteGuildWar Begin Want Join [Prize : 50.000.000] CPs] ?",
                                p => { p.Entity.Teleport(1002, 328, 247); }, null);
                        foreach (var client in Program.Values)
                            client.MessageBox("EliteGuildWar Begin Want Join [Prize : 50.000.000] CPs]",
                                   p => { p.Entity.Teleport(1002, 328, 247); }, null, 60, Languages.Arabic);
                    }
                }
                if (Game.EliteGuildWar.IsWar)
                {
                    if (Time32.Now > Game.EliteGuildWar.ScoreSendStamp.AddSeconds(3))
                    {
                        Game.EliteGuildWar.ScoreSendStamp = Time32.Now;
                        Game.EliteGuildWar.SendScores();
                    }
                    if (Now64.Minute == 10 && Now64.Second == 2)
                    {
                        Kernel.SendWorldMessage(new Network.GamePackets.Message("5 Minutes left till Elite GuildWar End!.", System.Drawing.Color.White, Network.GamePackets.Message.System), Program.Values);
                    }
                }
                if (Game.EliteGuildWar.IsWar)
                {
                    if (Copra_Times.End.EliteGW)
                        Game.EliteGuildWar.End();
                }
            }
            #endregion
            #region last Man [1]
            if (Now64.Minute == 1 && Now64.Second == 3)
            {
                Kernel.SendWorldMessage(new Message(" Last Man War began ", Color.White, Message.TopLeft), Program.Values);
                foreach (var client in Program.Values)
                    client.MessageBox("Last Man began Would you Like to join?",
                    p => { p.Entity.Teleport(1002, 314, 249); }, null, 20);
            }
            #endregion
            #region InnerPwoer [5]
            if (Now64.Minute == 05 && Now64.Second == 2)
            {
                Kernel.SendWorldMessage(new Message("InnerPowerQuest War began ", Color.White, Message.TopLeft), Program.Values);
                foreach (var client in Program.Values)
                    client.MessageBox("InnerPowerQuest began Would you like to join?",
                    p => { p.Entity.Teleport(1002, 339, 249); }, null, 20);
            }
            #endregion
            #region TeamOFWar [10]
            if (DateTime.Now.Minute == 10 && DateTime.Now.Second == 01)
            {
                Kernel.SendWorldMessage(new Message("TeamWar Was began ", Color.White, Message.TopLeft), Program.Values);
                foreach (var client in Program.Values)
                    client.MessageBox("TeamWar began Would you like to join?",
                     p => { p.Entity.Teleport(1002, 316, 249); }, null, 20);
            }
            #endregion
            #region UnionConquer [15]
            if (Now64.Minute == 15 && Now64.Second == 10)
            {
                Kernel.SendWorldMessage(new Message(" UnionConquer War began ", Color.White, Message.TopLeft), Program.Values);
                foreach (var client in Program.Values)
                    client.MessageBox(" UnionConquer began Would you Like to join?",
                    p => { p.Entity.Teleport(1002, 318, 249); }, null, 20);
            }
            #endregion
            #region Nobility [20]
            if (Now64.Minute == 20 && Now64.Second == 02)
            {
                Kernel.SendWorldMessage(new Message(" Nobility War began ", Color.White, Message.TopLeft), Program.Values);
                foreach (var client in Program.Values)
                    client.MessageBox("Nobility Man began Would you like to join?",
                    p => { p.Entity.Teleport(1002, 320, 249); }, null, 20);
            }
            #endregion
            #region Fb&SS [25]
            if (Now64.Minute == 25 && Now64.Second == 10)
            {
                Kernel.SendWorldMessage(new Message(" Fast blade and ScentSword war is began ", Color.White, Message.TopLeft), Program.Values);
                foreach (var client in Program.Values)
                    client.MessageBox("Fast blade and ScentSword began Would you like to join?",
                    p => { p.Entity.Teleport(1002, 322, 249); }, null, 20);
            }
            #endregion
            #region HeroOFGame [30]
            if (DateTime.Now.Minute == 30)
            {
                HeroOfGame.CheakUp();
            }
            #endregion
            #region Topguild [35]
            if (Now64.Minute == 35 && Now64.Second == 10)
            {
                Kernel.SendWorldMessage(new Message("Hero Guild War began ", Color.White, Message.TopLeft), Program.Values);
                foreach (var client in Program.Values)
                    client.MessageBox("Hero Guild began! Would you like to join?",
                    p => { p.Entity.Teleport(1002, 324, 249); }, null, 20);
            }
            #endregion
            #region ConquerTop [40]
            if (DateTime.Now.Minute == 40 && DateTime.Now.Second == 08)
            {
                Kernel.SendWorldMessage(new Message(" Conquer War began ", Color.White, Message.TopLeft), Program.Values);
                foreach (var client in Program.Values)
                    client.MessageBox("ConquerTop Has began Would you like to join Prize?",
                     p => { p.Entity.Teleport(1002, 333, 249); }, null, 20);
            }
            #endregion
            #region Donation~PK [xx.45M]
            if (DateTime.Now.Minute == 45 && DateTime.Now.Second == 01)
            {

                Kernel.SendWorldMessage(new Message("Donation~PK War began", Color.White, Message.Center), Program.Values);
                foreach (var client in Program.Values)
                    client.MessageBox("Donation~PK Has began Would you like to Join?",
                        p => { p.Entity.Teleport(1002, 342, 249); }, null, 20);
            }
            #endregion
            #region Attacker Quest [50]
            if (Now64.Minute == 50 && Now64.Second == 10)
            {
                Kernel.SendWorldMessage(new Message(" Attacker Quest War began ", Color.White, Message.TopLeft), Program.Values);
                foreach (var client in Program.Values)
                    client.MessageBox("Attacker Quest began Would you like to join?",
                    p => { p.Entity.Teleport(1002, 336, 249); }, null, 20);
            }
            #endregion
            #region Mr&Mss Conquer
            #region MR.Conquer [56]
            if (DateTime.Now.Minute == 56 && DateTime.Now.Second == 05)
            {
                foreach (var client in Program.Values)
                    if (client.Entity.Body == 1003 || client.Entity.Body == 1004)
                    {
                        Kernel.SendWorldMessage(new Message(" MR.Conquer War began ", Color.White, Message.Center), Program.Values);
                        client.MessageBox("MR.Conquer began Would you like to Join Prize ? ",
                                  (p) => { p.Entity.Teleport(1002, 342, 272); client.Entity.RemoveFlag(Update.Flags.Ride); }, null);
                        client.Send(new Data(true) { UID = client.Entity.UID, dwParam = 60, ID = Data.CountDown });
                    }
            }
            #endregion
            #region Ms.Conquer [56]
            if (DateTime.Now.Minute == 56 && DateTime.Now.Second == 05)
            {
                foreach (var client in Program.Values)
                    if (client.Entity.Body == 2001 || client.Entity.Body == 2002)
                    {
                        Kernel.SendWorldMessage(new Message(" Ms.Conquer War began ", Color.White, Message.TopLeft), Program.Values);
                        client.MessageBox("Ms.Conquer began! Would you like to Join Prize [5.000.000] ConquerPoints]? ",
                                (p) => { p.Entity.Teleport(1002, 342, 289); client.Entity.RemoveFlag(Update.Flags.Ride); }, null);
                        client.Send(new Data(true) { UID = client.Entity.UID, dwParam = 60, ID = Data.CountDown });
                    }
            }
            #endregion
            #endregion
            #endregion
هتروح بقى للنافى كات
تضيف المابات الموجودين فى الان بى سهات وتضيف برده الان بى سهات
لو حد معرفش يضيفهم يكتبلى فى رد هنا وانا هبعتهملو على طول

بالتوفيق​
 
أعلى

Dear User!

We found that you are blocking the display of ads on our site.

Please add it to the exception list or disable AdBlock.

Our materials are provided for FREE and the only revenue is advertising.

Thank you for understanding!