Register for your free account! | Forgot your password?

You last visited: Today at 13:58

  • Please register to post and access all features, it's quick, easy and FREE!


Fully Class Pk Envoy

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2010
Posts: 474
Received Thanks: 14
Fully Class Pk Envoy

hello Elite Members , i have a fully Class pk envoy code , its still have something wrong in its codes , could anyone correct my mistake ?


i am trying to make it like real co , levels from 1-99 in a map , also 100-119 , 120-129 and 130 and above levels .

and i wanna make it check day , hour and minute

and wanna make it check class , levels !!


i`ll be happy if someone help me out !!

here is the code for class pk envoy , check it .


PHP Code:
                            #region Class Pk Envoy
                            
case 11222:
                                {
                                    switch (
npcRequest.OptionID)
                                    {
                                        case 
0:
                                            {
                                                
dialog.Text("Hello! We have Class Pk War for different class every day and the champion will get a nice reward. Will you give it go?");
                                                
dialog.Option("Tell me the rules"4);
                                                
dialog.Option("Sign me up"1);
                                                
dialog.Option("Nope"255);
                                                
dialog.Send();
                                                break;
                                            }
                                        case 
4:
                                            {
                                                
dialog.Text("Okay, Monday is for Trojan War, and Tuesdey is for Warriors, Wednesday for Archers,Thursday for Water and Fire Taoist , and Friday for Ninjas, saturday for Monks ");
                                                
dialog.Text(" It`ll take place 19:45 -  20:00  . Talk me you sign up 15 minutes before it starts, but after it starts ");
                                                
dialog.Text(" but after it starts,nobody cand enter the arena. the War will by divided into four groups, That is Lvl 90- , 100-119, lvl 120 -129 and 130+ Before the War Ends, the last players in each Arena will be the champion  ");
                                                
dialog.Text(" and can clain 5 Exp Balls with the pk Escort. If ther are more 1 Player in the arena  at 14:49 or 22:59, all Player Will send you TwinCity and the War Stoped automatically ");
                                                
dialog.Option("Sign me up"1);
                                                
dialog.Option("l`ll pass"255);
                                                
dialog.Send();
                                                break;
                                            }
                                        case 
1:
                                            {

                                                
#region Trojan
                                                
if (client.Entity.Class >= 10 && client.Entity.Class <= 15)
                                                {
                                                    if (
client.Entity.Level >= && client.Entity.Level <= 99)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Monday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Monday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15912540);
                                                                if (
Nr == 2client.Entity.Teleport(15912333);
                                                                if (
Nr == 3client.Entity.Teleport(15911725);
                                                                if (
Nr == 4client.Entity.Teleport(15913128);
                                                                if (
Nr == 5client.Entity.Teleport(15914234);
                                                                if (
Nr == 6client.Entity.Teleport(15915142);
                                                                if (
Nr == 7client.Entity.Teleport(15915254);
                                                                if (
Nr == 8client.Entity.Teleport(15915265);
                                                                if (
Nr == 9client.Entity.Teleport(15914166);
                                                                if (
Nr == 10client.Entity.Teleport(15912855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Trojans Class Pk War Levels (1-99) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Trojans Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 100 && client.Entity.Level <= 119)
                                                    {

                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Monday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Monday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15922540);
                                                                if (
Nr == 2client.Entity.Teleport(15922333);
                                                                if (
Nr == 3client.Entity.Teleport(15921725);
                                                                if (
Nr == 4client.Entity.Teleport(15923128);
                                                                if (
Nr == 5client.Entity.Teleport(15924234);
                                                                if (
Nr == 6client.Entity.Teleport(15925142);
                                                                if (
Nr == 7client.Entity.Teleport(15925254);
                                                                if (
Nr == 8client.Entity.Teleport(15925265);
                                                                if (
Nr == 9client.Entity.Teleport(15924166);
                                                                if (
Nr == 10client.Entity.Teleport(15922855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Trojans Class Pk War Levels (100-119) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Trojans Class pk war , starts each Monday at 19:45 , come sign up before 20:00 ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 120 && client.Entity.Level <= 129)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Monday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Monday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15932540);
                                                                if (
Nr == 2client.Entity.Teleport(15932333);
                                                                if (
Nr == 3client.Entity.Teleport(15931725);
                                                                if (
Nr == 4client.Entity.Teleport(15933128);
                                                                if (
Nr == 5client.Entity.Teleport(15934234);
                                                                if (
Nr == 6client.Entity.Teleport(15935142);
                                                                if (
Nr == 7client.Entity.Teleport(15935254);
                                                                if (
Nr == 8client.Entity.Teleport(15935265);
                                                                if (
Nr == 9client.Entity.Teleport(15934166);
                                                                if (
Nr == 10client.Entity.Teleport(15932855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Trojans Class Pk War Levels (120-129) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Trojans Class pk war , starts each Monday at 19:45 , come sign up before 20:00 ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 130)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Monday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Monday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15942540);
                                                                if (
Nr == 2client.Entity.Teleport(15942333);
                                                                if (
Nr == 3client.Entity.Teleport(15941725);
                                                                if (
Nr == 4client.Entity.Teleport(15943128);
                                                                if (
Nr == 5client.Entity.Teleport(15944234);
                                                                if (
Nr == 6client.Entity.Teleport(15945142);
                                                                if (
Nr == 7client.Entity.Teleport(15945254);
                                                                if (
Nr == 8client.Entity.Teleport(15945265);
                                                                if (
Nr == 9client.Entity.Teleport(15944166);
                                                                if (
Nr == 10client.Entity.Teleport(15942855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Trojans Class Pk War Levels (130-140) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Trojans Class pk war , starts each Monday at 19:45 , come sign up before 20:00 ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                }
                                                
#endregion
                                                #region Warrior
                                                
if (client.Entity.Class >= 20 && client.Entity.Class <= 25)
                                                {
                                                    if (
client.Entity.Level >= && client.Entity.Level <= 99)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Tuesday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Tuesday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15912540);
                                                                if (
Nr == 2client.Entity.Teleport(15912333);
                                                                if (
Nr == 3client.Entity.Teleport(15911725);
                                                                if (
Nr == 4client.Entity.Teleport(15913128);
                                                                if (
Nr == 5client.Entity.Teleport(15914234);
                                                                if (
Nr == 6client.Entity.Teleport(15915142);
                                                                if (
Nr == 7client.Entity.Teleport(15915254);
                                                                if (
Nr == 8client.Entity.Teleport(15915265);
                                                                if (
Nr == 9client.Entity.Teleport(15914166);
                                                                if (
Nr == 10client.Entity.Teleport(15912855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Warriors Class Pk War Levels (1-99) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Warriors Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 100 && client.Entity.Level <= 119)
                                                    {

                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Tuesday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Tuesday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15922540);
                                                                if (
Nr == 2client.Entity.Teleport(15922333);
                                                                if (
Nr == 3client.Entity.Teleport(15921725);
                                                                if (
Nr == 4client.Entity.Teleport(15923128);
                                                                if (
Nr == 5client.Entity.Teleport(15924234);
                                                                if (
Nr == 6client.Entity.Teleport(15925142);
                                                                if (
Nr == 7client.Entity.Teleport(15925254);
                                                                if (
Nr == 8client.Entity.Teleport(15925265);
                                                                if (
Nr == 9client.Entity.Teleport(15924166);
                                                                if (
Nr == 10client.Entity.Teleport(15922855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Warriors Class Pk War Levels (100-119) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Warriors Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 120 && client.Entity.Level <= 129)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Tuesday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Tuesday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15932540);
                                                                if (
Nr == 2client.Entity.Teleport(15932333);
                                                                if (
Nr == 3client.Entity.Teleport(15931725);
                                                                if (
Nr == 4client.Entity.Teleport(15933128);
                                                                if (
Nr == 5client.Entity.Teleport(15934234);
                                                                if (
Nr == 6client.Entity.Teleport(15935142);
                                                                if (
Nr == 7client.Entity.Teleport(15935254);
                                                                if (
Nr == 8client.Entity.Teleport(15935265);
                                                                if (
Nr == 9client.Entity.Teleport(15934166);
                                                                if (
Nr == 10client.Entity.Teleport(15932855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Warriors Class Pk War Levels (120-129) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Warriors Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 130)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Tuesday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Tuesday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15942540);
                                                                if (
Nr == 2client.Entity.Teleport(15942333);
                                                                if (
Nr == 3client.Entity.Teleport(15941725);
                                                                if (
Nr == 4client.Entity.Teleport(15943128);
                                                                if (
Nr == 5client.Entity.Teleport(15944234);
                                                                if (
Nr == 6client.Entity.Teleport(15945142);
                                                                if (
Nr == 7client.Entity.Teleport(15945254);
                                                                if (
Nr == 8client.Entity.Teleport(15945265);
                                                                if (
Nr == 9client.Entity.Teleport(15944166);
                                                                if (
Nr == 10client.Entity.Teleport(15942855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Warriors Class Pk War Levels (130-140) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Warriors Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                }
                                                
#endregion
                                                #region Archer
                                                
if (client.Entity.Class >= 20 && client.Entity.Class <= 25)
                                                {
                                                    if (
client.Entity.Level >= && client.Entity.Level <= 99)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Wednesday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Wednesday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15912540);
                                                                if (
Nr == 2client.Entity.Teleport(15912333);
                                                                if (
Nr == 3client.Entity.Teleport(15911725);
                                                                if (
Nr == 4client.Entity.Teleport(15913128);
                                                                if (
Nr == 5client.Entity.Teleport(15914234);
                                                                if (
Nr == 6client.Entity.Teleport(15915142);
                                                                if (
Nr == 7client.Entity.Teleport(15915254);
                                                                if (
Nr == 8client.Entity.Teleport(15915265);
                                                                if (
Nr == 9client.Entity.Teleport(15914166);
                                                                if (
Nr == 10client.Entity.Teleport(15912855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Archers Class Pk War Levels (1-99) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Archers Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay"255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 100 && client.Entity.Level <= 119)
                                                    {

                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Wednesday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Wednesday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15922540);
                                                                if (
Nr == 2client.Entity.Teleport(15922333);
                                                                if (
Nr == 3client.Entity.Teleport(15921725);
                                                                if (
Nr == 4client.Entity.Teleport(15923128);
                                                                if (
Nr == 5client.Entity.Teleport(15924234);
                                                                if (
Nr == 6client.Entity.Teleport(15925142);
                                                                if (
Nr == 7client.Entity.Teleport(15925254);
                                                                if (
Nr == 8client.Entity.Teleport(15925265);
                                                                if (
Nr == 9client.Entity.Teleport(15924166);
                                                                if (
Nr == 10client.Entity.Teleport(15922855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Archers Class Pk War Levels (100-119) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Archers Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 120 && client.Entity.Level <= 129)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Wednesday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Wednesday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15932540);
                                                                if (
Nr == 2client.Entity.Teleport(15932333);
                                                                if (
Nr == 3client.Entity.Teleport(15931725);
                                                                if (
Nr == 4client.Entity.Teleport(15933128);
                                                                if (
Nr == 5client.Entity.Teleport(15934234);
                                                                if (
Nr == 6client.Entity.Teleport(15935142);
                                                                if (
Nr == 7client.Entity.Teleport(15935254);
                                                                if (
Nr == 8client.Entity.Teleport(15935265);
                                                                if (
Nr == 9client.Entity.Teleport(15934166);
                                                                if (
Nr == 10client.Entity.Teleport(15932855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Archers Class Pk War Levels (120-129) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Archers Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 130)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Wednesday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Wednesday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15942540);
                                                                if (
Nr == 2client.Entity.Teleport(15942333);
                                                                if (
Nr == 3client.Entity.Teleport(15941725);
                                                                if (
Nr == 4client.Entity.Teleport(15943128);
                                                                if (
Nr == 5client.Entity.Teleport(15944234);
                                                                if (
Nr == 6client.Entity.Teleport(15945142);
                                                                if (
Nr == 7client.Entity.Teleport(15945254);
                                                                if (
Nr == 8client.Entity.Teleport(15945265);
                                                                if (
Nr == 9client.Entity.Teleport(15944166);
                                                                if (
Nr == 10client.Entity.Teleport(15942855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Archers Class Pk War Levels (130-140) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Archers Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                }
                                                
#endregion
                                                #region Water
                                                
if (client.Entity.Class >= 132 && client.Entity.Class <= 135)
                                                {
                                                    if (
client.Entity.Level >= && client.Entity.Level <= 99)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Thursday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Thursday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15912540);
                                                                if (
Nr == 2client.Entity.Teleport(15912333);
                                                                if (
Nr == 3client.Entity.Teleport(15911725);
                                                                if (
Nr == 4client.Entity.Teleport(15913128);
                                                                if (
Nr == 5client.Entity.Teleport(15914234);
                                                                if (
Nr == 6client.Entity.Teleport(15915142);
                                                                if (
Nr == 7client.Entity.Teleport(15915254);
                                                                if (
Nr == 8client.Entity.Teleport(15915265);
                                                                if (
Nr == 9client.Entity.Teleport(15914166);
                                                                if (
Nr == 10client.Entity.Teleport(15912855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Waters Class Pk War Levels (1-99) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Waters Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 100 && client.Entity.Level <= 119)
                                                    {

                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Thursday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Thursday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15922540);
                                                                if (
Nr == 2client.Entity.Teleport(15922333);
                                                                if (
Nr == 3client.Entity.Teleport(15921725);
                                                                if (
Nr == 4client.Entity.Teleport(15923128);
                                                                if (
Nr == 5client.Entity.Teleport(15924234);
                                                                if (
Nr == 6client.Entity.Teleport(15925142);
                                                                if (
Nr == 7client.Entity.Teleport(15925254);
                                                                if (
Nr == 8client.Entity.Teleport(15925265);
                                                                if (
Nr == 9client.Entity.Teleport(15924166);
                                                                if (
Nr == 10client.Entity.Teleport(15922855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Waters Class Pk War Levels (100-119) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Waters Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 120 && client.Entity.Level <= 129)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Thursday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Thursday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15932540);
                                                                if (
Nr == 2client.Entity.Teleport(15932333);
                                                                if (
Nr == 3client.Entity.Teleport(15931725);
                                                                if (
Nr == 4client.Entity.Teleport(15933128);
                                                                if (
Nr == 5client.Entity.Teleport(15934234);
                                                                if (
Nr == 6client.Entity.Teleport(15935142);
                                                                if (
Nr == 7client.Entity.Teleport(15935254);
                                                                if (
Nr == 8client.Entity.Teleport(15935265);
                                                                if (
Nr == 9client.Entity.Teleport(15934166);
                                                                if (
Nr == 10client.Entity.Teleport(15932855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Waters Class Pk War Levels (120-129) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Waters Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 130)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Thursday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Thursday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15942540);
                                                                if (
Nr == 2client.Entity.Teleport(15942333);
                                                                if (
Nr == 3client.Entity.Teleport(15941725);
                                                                if (
Nr == 4client.Entity.Teleport(15943128);
                                                                if (
Nr == 5client.Entity.Teleport(15944234);
                                                                if (
Nr == 6client.Entity.Teleport(15945142);
                                                                if (
Nr == 7client.Entity.Teleport(15945254);
                                                                if (
Nr == 8client.Entity.Teleport(15945265);
                                                                if (
Nr == 9client.Entity.Teleport(15944166);
                                                                if (
Nr == 10client.Entity.Teleport(15942855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Waters Class Pk War Levels (130-140) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Waters Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                }
                                                
#endregion
                                                #region Fire
                                                
if (client.Entity.Class >= 142 && client.Entity.Class <= 145)
                                                {
                                                    if (
client.Entity.Level >= && client.Entity.Level <= 99)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Friday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Friday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15912540);
                                                                if (
Nr == 2client.Entity.Teleport(15912333);
                                                                if (
Nr == 3client.Entity.Teleport(15911725);
                                                                if (
Nr == 4client.Entity.Teleport(15913128);
                                                                if (
Nr == 5client.Entity.Teleport(15914234);
                                                                if (
Nr == 6client.Entity.Teleport(15915142);
                                                                if (
Nr == 7client.Entity.Teleport(15915254);
                                                                if (
Nr == 8client.Entity.Teleport(15915265);
                                                                if (
Nr == 9client.Entity.Teleport(15914166);
                                                                if (
Nr == 10client.Entity.Teleport(15912855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Fires Class Pk War Levels (1-99) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Fires Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 100 && client.Entity.Level <= 119)
                                                    {

                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Friday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Friday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15922540);
                                                                if (
Nr == 2client.Entity.Teleport(15922333);
                                                                if (
Nr == 3client.Entity.Teleport(15921725);
                                                                if (
Nr == 4client.Entity.Teleport(15923128);
                                                                if (
Nr == 5client.Entity.Teleport(15924234);
                                                                if (
Nr == 6client.Entity.Teleport(15925142);
                                                                if (
Nr == 7client.Entity.Teleport(15925254);
                                                                if (
Nr == 8client.Entity.Teleport(15925265);
                                                                if (
Nr == 9client.Entity.Teleport(15924166);
                                                                if (
Nr == 10client.Entity.Teleport(15922855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Fires Class Pk War Levels (100-119) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Fires Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 120 && client.Entity.Level <= 129)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Friday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Friday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15932540);
                                                                if (
Nr == 2client.Entity.Teleport(15932333);
                                                                if (
Nr == 3client.Entity.Teleport(15931725);
                                                                if (
Nr == 4client.Entity.Teleport(15933128);
                                                                if (
Nr == 5client.Entity.Teleport(15934234);
                                                                if (
Nr == 6client.Entity.Teleport(15935142);
                                                                if (
Nr == 7client.Entity.Teleport(15935254);
                                                                if (
Nr == 8client.Entity.Teleport(15935265);
                                                                if (
Nr == 9client.Entity.Teleport(15934166);
                                                                if (
Nr == 10client.Entity.Teleport(15932855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Fires Class Pk War Levels (120-129) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Fires Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 130)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Friday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Friday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15942540);
                                                                if (
Nr == 2client.Entity.Teleport(15942333);
                                                                if (
Nr == 3client.Entity.Teleport(15941725);
                                                                if (
Nr == 4client.Entity.Teleport(15943128);
                                                                if (
Nr == 5client.Entity.Teleport(15944234);
                                                                if (
Nr == 6client.Entity.Teleport(15945142);
                                                                if (
Nr == 7client.Entity.Teleport(15945254);
                                                                if (
Nr == 8client.Entity.Teleport(15945265);
                                                                if (
Nr == 9client.Entity.Teleport(15944166);
                                                                if (
Nr == 10client.Entity.Teleport(15942855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Fires Class Pk War Levels (130-140) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Fires Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Ah,my bad"255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                }
                                                
#endregion
                                                #region Ninja
                                                
if (client.Entity.Class >= 50 && client.Entity.Class <= 55)
                                                {
                                                    if (
client.Entity.Level >= && client.Entity.Level <= 99)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Saturday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Saturday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15912540);
                                                                if (
Nr == 2client.Entity.Teleport(15912333);
                                                                if (
Nr == 3client.Entity.Teleport(15911725);
                                                                if (
Nr == 4client.Entity.Teleport(15913128);
                                                                if (
Nr == 5client.Entity.Teleport(15914234);
                                                                if (
Nr == 6client.Entity.Teleport(15915142);
                                                                if (
Nr == 7client.Entity.Teleport(15915254);
                                                                if (
Nr == 8client.Entity.Teleport(15915265);
                                                                if (
Nr == 9client.Entity.Teleport(15914166);
                                                                if (
Nr == 10client.Entity.Teleport(15912855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Ninjas Class Pk War Levels (1-99) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Ninjas Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 100 && client.Entity.Level <= 119)
                                                    {

                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Saturday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Saturday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15922540);
                                                                if (
Nr == 2client.Entity.Teleport(15922333);
                                                                if (
Nr == 3client.Entity.Teleport(15921725);
                                                                if (
Nr == 4client.Entity.Teleport(15923128);
                                                                if (
Nr == 5client.Entity.Teleport(15924234);
                                                                if (
Nr == 6client.Entity.Teleport(15925142);
                                                                if (
Nr == 7client.Entity.Teleport(15925254);
                                                                if (
Nr == 8client.Entity.Teleport(15925265);
                                                                if (
Nr == 9client.Entity.Teleport(15924166);
                                                                if (
Nr == 10client.Entity.Teleport(15922855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Ninjas Class Pk War Levels (100-119) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Ninjas Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 120 && client.Entity.Level <= 129)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Saturday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Saturday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15932540);
                                                                if (
Nr == 2client.Entity.Teleport(15932333);
                                                                if (
Nr == 3client.Entity.Teleport(15931725);
                                                                if (
Nr == 4client.Entity.Teleport(15933128);
                                                                if (
Nr == 5client.Entity.Teleport(15934234);
                                                                if (
Nr == 6client.Entity.Teleport(15935142);
                                                                if (
Nr == 7client.Entity.Teleport(15935254);
                                                                if (
Nr == 8client.Entity.Teleport(15935265);
                                                                if (
Nr == 9client.Entity.Teleport(15934166);
                                                                if (
Nr == 10client.Entity.Teleport(15932855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Ninjas Class Pk War Levels (120-129) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Ninjas Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 130)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Saturday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Saturday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15942540);
                                                                if (
Nr == 2client.Entity.Teleport(15942333);
                                                                if (
Nr == 3client.Entity.Teleport(15941725);
                                                                if (
Nr == 4client.Entity.Teleport(15943128);
                                                                if (
Nr == 5client.Entity.Teleport(15944234);
                                                                if (
Nr == 6client.Entity.Teleport(15945142);
                                                                if (
Nr == 7client.Entity.Teleport(15945254);
                                                                if (
Nr == 8client.Entity.Teleport(15945265);
                                                                if (
Nr == 9client.Entity.Teleport(15944166);
                                                                if (
Nr == 10client.Entity.Teleport(15942855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Ninjas Class Pk War Levels (130-140) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Ninjas Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                }
                                                
#endregion
                                                #region trojan
                                                
if (client.Entity.Class >= 10 && client.Entity.Class <= 15)
                                                {
                                                    if (
client.Entity.Level >= && client.Entity.Level <= 99)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Sunday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Sunday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15912540);
                                                                if (
Nr == 2client.Entity.Teleport(15912333);
                                                                if (
Nr == 3client.Entity.Teleport(15911725);
                                                                if (
Nr == 4client.Entity.Teleport(15913128);
                                                                if (
Nr == 5client.Entity.Teleport(15914234);
                                                                if (
Nr == 6client.Entity.Teleport(15915142);
                                                                if (
Nr == 7client.Entity.Teleport(15915254);
                                                                if (
Nr == 8client.Entity.Teleport(15915265);
                                                                if (
Nr == 9client.Entity.Teleport(15914166);
                                                                if (
Nr == 10client.Entity.Teleport(15912855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Monks Class Pk War Levels (1-99) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Monks Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 100 && client.Entity.Level <= 119)
                                                    {

                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Sunday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Sunday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15922540);
                                                                if (
Nr == 2client.Entity.Teleport(15922333);
                                                                if (
Nr == 3client.Entity.Teleport(15921725);
                                                                if (
Nr == 4client.Entity.Teleport(15923128);
                                                                if (
Nr == 5client.Entity.Teleport(15924234);
                                                                if (
Nr == 6client.Entity.Teleport(15925142);
                                                                if (
Nr == 7client.Entity.Teleport(15925254);
                                                                if (
Nr == 8client.Entity.Teleport(15925265);
                                                                if (
Nr == 9client.Entity.Teleport(15924166);
                                                                if (
Nr == 10client.Entity.Teleport(15922855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Monks Class Pk War Levels (100-119) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Monks Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 120 && client.Entity.Level <= 129)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Sunday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Sunday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15932540);
                                                                if (
Nr == 2client.Entity.Teleport(15932333);
                                                                if (
Nr == 3client.Entity.Teleport(15931725);
                                                                if (
Nr == 4client.Entity.Teleport(15933128);
                                                                if (
Nr == 5client.Entity.Teleport(15934234);
                                                                if (
Nr == 6client.Entity.Teleport(15935142);
                                                                if (
Nr == 7client.Entity.Teleport(15935254);
                                                                if (
Nr == 8client.Entity.Teleport(15935265);
                                                                if (
Nr == 9client.Entity.Teleport(15934166);
                                                                if (
Nr == 10client.Entity.Teleport(15932855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Monks Class Pk War Levels (120-129) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Monks Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    else if (
client.Entity.Level >= 130)
                                                    {
                                                        if (
DateTime.Now.DayOfWeek == DayOfWeek.Sunday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                        {
                                                            if (
DateTime.Now.DayOfWeek == DayOfWeek.Sunday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 50)
                                                            {
                                                                
Random R = new Random();
                                                                
int Nr R.Next(110);
                                                                if (
Nr == 1client.Entity.Teleport(15942540);
                                                                if (
Nr == 2client.Entity.Teleport(15942333);
                                                                if (
Nr == 3client.Entity.Teleport(15941725);
                                                                if (
Nr == 4client.Entity.Teleport(15943128);
                                                                if (
Nr == 5client.Entity.Teleport(15944234);
                                                                if (
Nr == 6client.Entity.Teleport(15945142);
                                                                if (
Nr == 7client.Entity.Teleport(15945254);
                                                                if (
Nr == 8client.Entity.Teleport(15945265);
                                                                if (
Nr == 9client.Entity.Teleport(15944166);
                                                                if (
Nr == 10client.Entity.Teleport(15942855);
                                                                
Kernel.SendWorldMessage(new Message(client.Entity.Name " has Joined Monks Class Pk War Levels (130-140) "System.Drawing.Color.BlackMessage.Service), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("Monks Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                                
dialog.Option("Okay."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                        }
                                                    }
                                                }
                                                
#endregion
                                            
}


                                            break;


                                    }
                                    break;
                                }

                            
#endregion 



abdeen is offline  
Old 10/12/2011, 17:42   #2
 
elite*gold: 0
Join Date: Jun 2009
Posts: 602
Received Thanks: 193
Whats wrong with your current one ? i see it does it all...


diedwarrior is offline  
Thanks
1 User
Old 10/12/2011, 18:04   #3
 
elite*gold: 0
Join Date: Mar 2010
Posts: 474
Received Thanks: 14
Quote:
Originally Posted by diedwarrior View Post
Whats wrong with your current one ? i see it does it all...
if i am archer , and today is Trojan top , its don't tell me that , and its don't tell me its not correct time , and its inviting me every time i ask her to join
abdeen is offline  
Old 10/12/2011, 18:32   #4
 
elite*gold: 0
Join Date: Jun 2009
Posts: 602
Received Thanks: 193
In my current classpkenvoy dialog im using switch (client.Entity.Class)
For i.e
Case 50:
Case 51:

That would be for the first two promotions of the ninja, i hope that you've got the idea.


diedwarrior is offline  
Thanks
1 User
Old 10/12/2011, 18:40   #5
 
elite*gold: 0
Join Date: Mar 2010
Posts: 474
Received Thanks: 14
Quote:
Originally Posted by diedwarrior View Post
In my current classpkenvoy dialog im using switch (client.Entity.Class)
For i.e
Case 50:
Case 51:

That would be for the first two promotions of the ninja, i hope that you've got the idea.
can you explain it more ?
abdeen is offline  
Old 10/12/2011, 18:46   #6
 
elite*gold: 0
Join Date: Aug 2010
Posts: 983
Received Thanks: 1,054
PHP Code:
switch (npcRequest.OptionID)
                                    {
case 
11222:
                                {
                                    switch (
npcRequest.OptionID)
                                    {
                                        case 
0:
                                            {
                                                
dialog.Text("Hello! We have Class Pk War for different class every day and the champion will get a nice reward. Will you give it go?");
                                                
dialog.Option("Tell me the rules"4);
                                                
dialog.Option("Sign me up"1);
                                                
dialog.Option("Nope"255);
                                                
dialog.Send();
                                                break;
                                            }
                                        case 
4:
                                            {
                                                
dialog.Text("Okay, Monday is for Trojan War, and Tuesdey is for Warriors, Wednesday for Archers,Thursday for Water and Fire Taoist , and Friday for Ninjas, saturday for Monks ");
                                                
dialog.Text(" It`ll take place 19:45 -  20:00  . Talk me you sign up 15 minutes before it starts, but after it starts ");
                                                
dialog.Text(" but after it starts,nobody cand enter the arena. the War will by divided into four groups, That is Lvl 90- , 100-119, lvl 120 -129 and 130+ Before the War Ends, the last players in each Arena will be the champion  ");
                                                
dialog.Text(" and can clain 5 Exp Balls with the pk Escort. If ther are more 1 Player in the arena  at 14:49 or 22:59, all Player Will send you TwinCity and the War Stoped automatically ");
                                                
dialog.Option("Sign me up"1);
                                                
dialog.Option("l`ll pass"255);
                                                
dialog.Send();
                                                break;
                                            }
                                        case 
1:
                                            {
                                                if (
DateTime.Now.DayOfWeek == DayOfWeek.Monday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                {
                                                
Random R = new Random();
                                                
byte[] TX = new byte[10]{ 25,23,17,31,42,51,52,52,41,28};
                                                
byte[] TY = new byte[10]{ 40,33,25,28,34,42,54,65,66,55};
                                                
int Nr R.Next(110), Map 0TX[Nr], TY[Nr];
                                                
// Class checks 
                                                
if (client.Entity.Class >= 10 && client.Entity.Class <= 15)
                                                {
                                                    
Map += 5;
                                                }
                                                else if (
client.Entity.Class >= 20 && client.Entity.Class <= 25)
                                                {
                                                    
Map += 10;
                                                }
                                                else if (
client.Entity.Class >= 40 && client.Entity.Class <= 45)
                                                {
                                                    
Map += 15;
                                                }
                                                else if (
client.Entity.Class >= 50 && client.Entity.Class <= 55)
                                                {
                                                    
Map += 20;
                                                }
                                                else if (
client.Entity.Class >= 60 && client.Entity.Class <= 65)
                                                {
                                                    
Map += 25;
                                                }
                                                else if (
client.Entity.Class >= 100 && client.Entity.Class <= 145)
                                                {
                                                    
Map += 30;
                                                }
                                               
// end of the class check


                                               //Level
                                                
if (client.Entity.Level >= && client.Entity.Level <= 99)
                                                {
                                                   
Map += 1;
                                                   
client.Entity.Teleport(MapXY);
                                                   
//Message
                                                
}
                                                else if (
client.Entity.Level >= 100 && client.Entity.Level <= 119)
                                                {
                                                    
Map += 2;
                                                    
client.Entity.Teleport(MapXY);
                                                    
//Message
                                                
}
                                                else if (
client.Entity.Level >= 120 && client.Entity.Level <= 129)
                                                {
                                                    
Map += 3;
                                                    
client.Entity.Teleport(MapXY);
                                                    
//Message
                                                
}
                                                else if (
client.Entity.Level >= 130)
                                                {
                                                    
Map += 4;
                                                    
client.Entity.Teleport(MapXY);
                                                    
//Message
                                                
}
                                                
//end of the level check
                                                
}
                                                else
                                                {
                                                
dialog.Text("Trojans Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                
dialog.Option("Okay."255);
                                                
dialog.Send();
                                                }
                                                break;
                                            }

                                    }
                                      break;
                                } 
so if you wanted to check the player class and split the players not only based on the level but based on the class and the level create the dynamic maps 5 - 34 and you are done

if not and you want it to be based on the level remove the class checks and the e(Map += 1,2,3,4) and use the maps 1591 - 1594 just like you did earlier.

as for the class of the day war you should be checking it by doing something like .

Quote:
if (today is whatever )//trojan
dialog.Option("Sign me up", 10);
else if (today is whatever )//monk
dialog.Option("Sign me up", 60);
else if (today is whatever )//archer
dialog.Option("Sign me up", 40);


lets say that the the day was Monday then the option will be 10 then in the case 10 you do something like this

case 10:
{
if (client.job >= 10 && Client.job <= 15)
{
do something
}
else {/* Message */ return;}
break;
}

Good Luck.
{ Angelius } is offline  
Thanks
1 User
Old 10/12/2011, 19:01   #7
 
elite*gold: 0
Join Date: Mar 2010
Posts: 474
Received Thanks: 14
Quote:
Originally Posted by { Angelius } View Post
PHP Code:
switch (npcRequest.OptionID)
                                    {
case 
11222:
                                {
                                    switch (
npcRequest.OptionID)
                                    {
                                        case 
0:
                                            {
                                                
dialog.Text("Hello! We have Class Pk War for different class every day and the champion will get a nice reward. Will you give it go?");
                                                
dialog.Option("Tell me the rules"4);
                                                
dialog.Option("Sign me up"1);
                                                
dialog.Option("Nope"255);
                                                
dialog.Send();
                                                break;
                                            }
                                        case 
4:
                                            {
                                                
dialog.Text("Okay, Monday is for Trojan War, and Tuesdey is for Warriors, Wednesday for Archers,Thursday for Water and Fire Taoist , and Friday for Ninjas, saturday for Monks ");
                                                
dialog.Text(" It`ll take place 19:45 -  20:00  . Talk me you sign up 15 minutes before it starts, but after it starts ");
                                                
dialog.Text(" but after it starts,nobody cand enter the arena. the War will by divided into four groups, That is Lvl 90- , 100-119, lvl 120 -129 and 130+ Before the War Ends, the last players in each Arena will be the champion  ");
                                                
dialog.Text(" and can clain 5 Exp Balls with the pk Escort. If ther are more 1 Player in the arena  at 14:49 or 22:59, all Player Will send you TwinCity and the War Stoped automatically ");
                                                
dialog.Option("Sign me up"1);
                                                
dialog.Option("l`ll pass"255);
                                                
dialog.Send();
                                                break;
                                            }
                                        case 
1:
                                            {
                                                if (
DateTime.Now.DayOfWeek == DayOfWeek.Monday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                {
                                                
Random R = new Random();
                                                
byte[] TX = new byte[10]{ 25,23,17,31,42,51,52,52,41,28};
                                                
byte[] TY = new byte[10]{ 40,33,25,28,34,42,54,65,66,55};
                                                
int Nr R.Next(110), Map 0TX[Nr], TY[Nr];
                                                
// Class checks 
                                                
if (client.Entity.Class >= 10 && client.Entity.Class <= 15)
                                                {
                                                    
Map += 5;
                                                }
                                                else if (
client.Entity.Class >= 20 && client.Entity.Class <= 25)
                                                {
                                                    
Map += 10;
                                                }
                                                else if (
client.Entity.Class >= 40 && client.Entity.Class <= 45)
                                                {
                                                    
Map += 15;
                                                }
                                                else if (
client.Entity.Class >= 50 && client.Entity.Class <= 55)
                                                {
                                                    
Map += 20;
                                                }
                                                else if (
client.Entity.Class >= 60 && client.Entity.Class <= 65)
                                                {
                                                    
Map += 25;
                                                }
                                                else if (
client.Entity.Class >= 100 && client.Entity.Class <= 145)
                                                {
                                                    
Map += 30;
                                                }
                                               
// end of the class check


                                               //Level
                                                
if (client.Entity.Level >= && client.Entity.Level <= 99)
                                                {
                                                   
Map += 1;
                                                   
client.Entity.Teleport(MapXY);
                                                   
//Message
                                                
}
                                                else if (
client.Entity.Level >= 100 && client.Entity.Level <= 119)
                                                {
                                                    
Map += 2;
                                                    
client.Entity.Teleport(MapXY);
                                                    
//Message
                                                
}
                                                else if (
client.Entity.Level >= 120 && client.Entity.Level <= 129)
                                                {
                                                    
Map += 3;
                                                    
client.Entity.Teleport(MapXY);
                                                    
//Message
                                                
}
                                                else if (
client.Entity.Level >= 130)
                                                {
                                                    
Map += 4;
                                                    
client.Entity.Teleport(MapXY);
                                                    
//Message
                                                
}
                                                
//end of the level check
                                                
}
                                                else
                                                {
                                                
dialog.Text("Trojans Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                
dialog.Option("Okay."255);
                                                
dialog.Send();
                                                }
                                                break;
                                            }

                                    }
                                      break;
                                } 
so if you wanted to check the player class and split the players not only based on the level but based on the class and the level create the dynamic maps 5 - 34 and you are done

if not and you want it to be based on the level remove the class checks and the e(Map += 1,2,3,4) and use the maps 1591 - 1594 just like you did earlier.

as for the class of the day war you should be checking it by doing something like .




Good Luck.


how to create the dynamic maps 5 - 34 ?
abdeen is offline  
Old 10/12/2011, 19:05   #8
 
elite*gold: 0
Join Date: Aug 2010
Posts: 983
Received Thanks: 1,054
ummm i think thats something that you have to figure out by yourself cus i dont know what source you are using or how its dealing with the maps .
{ Angelius } is offline  
Old 10/12/2011, 19:07   #9
 
elite*gold: 0
Join Date: Mar 2010
Posts: 474
Received Thanks: 14
Quote:
Originally Posted by { Angelius } View Post
PHP Code:
switch (npcRequest.OptionID)
                                    {
case 
11222:
                                {
                                    switch (
npcRequest.OptionID)
                                    {
                                        case 
0:
                                            {
                                                
dialog.Text("Hello! We have Class Pk War for different class every day and the champion will get a nice reward. Will you give it go?");
                                                
dialog.Option("Tell me the rules"4);
                                                
dialog.Option("Sign me up"1);
                                                
dialog.Option("Nope"255);
                                                
dialog.Send();
                                                break;
                                            }
                                        case 
4:
                                            {
                                                
dialog.Text("Okay, Monday is for Trojan War, and Tuesdey is for Warriors, Wednesday for Archers,Thursday for Water and Fire Taoist , and Friday for Ninjas, saturday for Monks ");
                                                
dialog.Text(" It`ll take place 19:45 -  20:00  . Talk me you sign up 15 minutes before it starts, but after it starts ");
                                                
dialog.Text(" but after it starts,nobody cand enter the arena. the War will by divided into four groups, That is Lvl 90- , 100-119, lvl 120 -129 and 130+ Before the War Ends, the last players in each Arena will be the champion  ");
                                                
dialog.Text(" and can clain 5 Exp Balls with the pk Escort. If ther are more 1 Player in the arena  at 14:49 or 22:59, all Player Will send you TwinCity and the War Stoped automatically ");
                                                
dialog.Option("Sign me up"1);
                                                
dialog.Option("l`ll pass"255);
                                                
dialog.Send();
                                                break;
                                            }
                                        case 
1:
                                            {
                                                if (
DateTime.Now.DayOfWeek == DayOfWeek.Monday && DateTime.Now.Hour >= 19 || DateTime.Now.Minute 45)
                                                {
                                                
Random R = new Random();
                                                
byte[] TX = new byte[10]{ 25,23,17,31,42,51,52,52,41,28};
                                                
byte[] TY = new byte[10]{ 40,33,25,28,34,42,54,65,66,55};
                                                
int Nr R.Next(110), Map 0TX[Nr], TY[Nr];
                                                
// Class checks 
                                                
if (client.Entity.Class >= 10 && client.Entity.Class <= 15)
                                                {
                                                    
Map += 5;
                                                }
                                                else if (
client.Entity.Class >= 20 && client.Entity.Class <= 25)
                                                {
                                                    
Map += 10;
                                                }
                                                else if (
client.Entity.Class >= 40 && client.Entity.Class <= 45)
                                                {
                                                    
Map += 15;
                                                }
                                                else if (
client.Entity.Class >= 50 && client.Entity.Class <= 55)
                                                {
                                                    
Map += 20;
                                                }
                                                else if (
client.Entity.Class >= 60 && client.Entity.Class <= 65)
                                                {
                                                    
Map += 25;
                                                }
                                                else if (
client.Entity.Class >= 100 && client.Entity.Class <= 145)
                                                {
                                                    
Map += 30;
                                                }
                                               
// end of the class check


                                               //Level
                                                
if (client.Entity.Level >= && client.Entity.Level <= 99)
                                                {
                                                   
Map += 1;
                                                   
client.Entity.Teleport(MapXY);
                                                   
//Message
                                                
}
                                                else if (
client.Entity.Level >= 100 && client.Entity.Level <= 119)
                                                {
                                                    
Map += 2;
                                                    
client.Entity.Teleport(MapXY);
                                                    
//Message
                                                
}
                                                else if (
client.Entity.Level >= 120 && client.Entity.Level <= 129)
                                                {
                                                    
Map += 3;
                                                    
client.Entity.Teleport(MapXY);
                                                    
//Message
                                                
}
                                                else if (
client.Entity.Level >= 130)
                                                {
                                                    
Map += 4;
                                                    
client.Entity.Teleport(MapXY);
                                                    
//Message
                                                
}
                                                
//end of the level check
                                                
}
                                                else
                                                {
                                                
dialog.Text("Trojans Class pk war , starts each Monday at 19:45 , come sign up before 20:00  ");
                                                
dialog.Option("Okay."255);
                                                
dialog.Send();
                                                }
                                                break;
                                            }

                                    }
                                      break;
                                } 
so if you wanted to check the player class and split the players not only based on the level but based on the class and the level create the dynamic maps 5 - 34 and you are done

if not and you want it to be based on the level remove the class checks and the e(Map += 1,2,3,4) and use the maps 1591 - 1594 just like you did earlier.

as for the class of the day war you should be checking it by doing something like .




Good Luck.


thanks bro for your help but im new in C# section , could you please create this npc for me ?

and when you done , i will check what have you done , and learn from it .

thanks bro

Quote:
Originally Posted by { Angelius } View Post
ummm i think thats something that you have to figure out by yourself cus i dont know what source you are using or how its dealing with the maps .
i am using Trinity Source version 5518+
abdeen is offline  
Old 10/12/2011, 19:12   #10
 
elite*gold: 0
Join Date: Jun 2009
Posts: 602
Received Thanks: 193
Well, iunno how to make dynamaps either, but im looking into the code of the honor arena one, since its a dynamap, if i figure out anything ill tell u :P.
diedwarrior is offline  
Thanks
1 User
Old 10/12/2011, 19:15   #11
 
elite*gold: 0
Join Date: Mar 2010
Posts: 474
Received Thanks: 14
Quote:
Originally Posted by { Angelius } View Post
ummm i think thats something that you have to figure out by yourself cus i dont know what source you are using or how its dealing with the maps .
Quote:
Originally Posted by diedwarrior View Post
Well, iunno how to make dynamaps either, but im looking into the code of the honor arena one, since its a dynamap, if i figure out anything ill tell u :P.
okay bro , thanks :P



hey guys , i wanna say something beside the problem ,

Really You Are Good Guys !!

i tried this code , but its didn't work


PHP Code:
if (today is whatever )//trojan
dialog.Option("Sign me up"10);
else if (
today is whatever )//monk
dialog.Option("Sign me up"60);
else if (
today is whatever )//archer
dialog.Option("Sign me up"40);


lets say that the the day was Monday then the option will be 10 then in the case 10 you do something like this

case 10:
{
if (
client.job >= 10 && Client.job <= 15)
{
do 
something
}
else {
/* Message */ return;}
break;

Okay , guys .

now i have another issue

i want to edit the pk flag when the player attack another player in free pk maps

to stay normal flag , not flashing name .

i know this edit will be here .

PHP Code:
public static bool CanAttack(Game.Entity attackerGame.Entity attackedDatabase.SpellInformation spellbool melee)
        {
            if (
spell != null)
                if (
spell.CanKill && attacker.EntityFlag == EntityFlag.Player && ServerBase.Constants.PKForbiddenMaps.Contains(attacker.Owner.Map.ID) && attacked.EntityFlag == EntityFlag.Player)
                    return 
false;
            if (
attacker.EntityFlag == EntityFlag.Player)
                if (
attacker.Owner.WatchingGroup != null)
                    return 
false;
            if (
attacked == null)
                return 
false;
            if (
attacked.Dead)
            {
                
attacker.AttackPacket null;
                return 
false;
            }
            if (
attacked.EntityFlag == EntityFlag.Monster)
            {
                if (
attacked.Companion)
                {
                    if (
ServerBase.Constants.PKForbiddenMaps.Contains(attacker.Owner.Map.ID))
                    {
                        if (
attacked.Owner == attacker.Owner)
                            return 
false;
                        if (
attacker.PKMode != Conquer_Online_Server.Game.Enums.PKMode.PK &&
                         
attacker.PKMode != Conquer_Online_Server.Game.Enums.PKMode.Team)
                            return 
false;
                        else
                        {
                            
attacker.AddFlag(Network.GamePackets.Update.Flags.FlashingName);
                            
attacker.FlashingNameStamp Time32.Now;
                            
attacker.FlashingNameTime 10;

                            return 
true;
                        }
                    }
                }
                if (
attacked.Name.Contains("Guard"))
                {
                    if (
attacker.PKMode != Conquer_Online_Server.Game.Enums.PKMode.PK &&
                    
attacker.PKMode != Conquer_Online_Server.Game.Enums.PKMode.Team)
                        return 
false;
                    else
                    {
                        
attacker.AddFlag(Network.GamePackets.Update.Flags.FlashingName);
                        
attacker.FlashingNameStamp Time32.Now;
                        
attacker.FlashingNameTime 10;

                        return 
true;
                    }
                }
                else
                    return 
true;
            }
            else
            {
                if (
attacked.EntityFlag == EntityFlag.Player)
                    if (!
attacked.Owner.Attackable)
                        return 
false;
                if (
attacker.EntityFlag == EntityFlag.Player)
                    if (
attacker.Owner.WatchingGroup == null)
                        if (
attacked.EntityFlag == EntityFlag.Player)
                            if (
attacked.Owner.WatchingGroup != null)
                                return 
false;

                if (
spell != null)
                    if (
spell.OnlyGround)
                        if (
attacked.ContainsFlag(Update.Flags.Fly))
                            return 
false;
                if (
melee && attacked.ContainsFlag(Update.Flags.Fly))
                    return 
false;

                if (
ServerBase.Constants.PKForbiddenMaps.Contains(attacker.Owner.Map.ID))
                {
                    if (
attacker.PKMode == Conquer_Online_Server.Game.Enums.PKMode.PK ||
                        
attacker.PKMode == Conquer_Online_Server.Game.Enums.PKMode.Team || (spell != null && spell.CanKill))
                    {
                        
attacker.Owner.Send(ServerBase.Constants.PKForbidden);
                        
attacker.AttackPacket null;
                    }
                    return 
false;
                }
                if (
attacker.PKMode == Conquer_Online_Server.Game.Enums.PKMode.Capture)
                {
                    if (
attacked.ContainsFlag(Update.Flags.FlashingName) || attacked.PKPoints 99)
                    {
                        return 
true;
                    }
                }
                if (
attacker.PKMode == Conquer_Online_Server.Game.Enums.PKMode.Team)
                {
                    if (
attacker.Owner.Team != null)
                        if (
attacker.Owner.Team.IsTeammate(attacked.UID))
                        {
                            
attacker.AttackPacket null;
                            return 
false;
                        }
                    if (
attacker.Owner.Guild != null)
                    {
                        if (
attacker.GuildID != 0)
                        {
                            if (
attacked.GuildID != 0)
                            {
                                if (
attacker.GuildID == attacked.GuildID)
                                {
                                    
attacker.AttackPacket null;
                                    return 
false;
                                }
                            }
                        }
                    }
                    if (
attacker.Owner.Friends.ContainsKey(attacked.UID))
                    {
                        
attacker.AttackPacket null;
                        return 
false;
                    }
                }

                if (
spell != null)
                    if (
spell.OnlyGround)
                        if (
attacked.ContainsFlag(Update.Flags.Fly))
                            return 
false;
                if (
spell != null)
                    if (!
spell.CanKill)
                    {
                        if (
spell != null && !spell.CanKill && attacker.PKMode == Conquer_Online_Server.Game.Enums.PKMode.Capture)
                        {
                            return 
false;
                        }
                        if (
spell != null && !spell.CanKill && attacker.Owner.Map.ID >= 10000)
                        {
                            
attacker.AddFlag(Network.GamePackets.Update.Flags.Normal);
                            return 
true;
                        }
                        else
                        {
                            
attacker.AddFlag(Network.GamePackets.Update.Flags.FlashingName);
                            
attacker.FlashingNameStamp Time32.Now;
                            
attacker.FlashingNameTime 10;
                            return 
true;

                        }
                    }



                if (
attacker.PKMode != Conquer_Online_Server.Game.Enums.PKMode.PK &&
                    
attacker.PKMode != Conquer_Online_Server.Game.Enums.PKMode.Team && attacked.PKPoints 99)
                {
                    
attacker.AttackPacket null;
                    return 
false;
                }
                else
                {
                    if (!
attacked.ContainsFlag(Update.Flags.FlashingName) || !attacked.ContainsFlag(Update.Flags.BlackName))
                    {
                        if (
ServerBase.Constants.PKFreeMaps.Contains(attacker.Owner.Map.BaseID))
                            return 
true;
                        
attacker.AddFlag(Network.GamePackets.Update.Flags.FlashingName);
                        
attacker.FlashingNameStamp Time32.Now;
                        
attacker.FlashingNameTime 10;
                    }
                }
                return 
true;
            }
        } 

i edit this code


PHP Code:
                if (attacker.PKMode != Conquer_Online_Server.Game.Enums.PKMode.PK &&
                    
attacker.PKMode != Conquer_Online_Server.Game.Enums.PKMode.Team && attacked.PKPoints 99)
                {
                    
attacker.AttackPacket null;
                    return 
false;
                }
                else
                {
                    if (!
attacked.ContainsFlag(Update.Flags.FlashingName) || !attacked.ContainsFlag(Update.Flags.BlackName))
                    {
                        if (
ServerBase.Constants.PKFreeMaps.Contains(attacker.Owner.Map.BaseID))
                            return 
true;
                        
attacker.AddFlag(Network.GamePackets.Update.Flags.FlashingName);
                        
attacker.FlashingNameStamp Time32.Now;
                        
attacker.FlashingNameTime 10;
                    }
                }
                return 
true;
            }
        } 
into

PHP Code:
                if (attacker.PKMode != Conquer_Online_Server.Game.Enums.PKMode.PK &&
                    
attacker.PKMode != Conquer_Online_Server.Game.Enums.PKMode.Team && attacked.PKPoints 99)
                {
                    
attacker.AttackPacket null;
                    return 
false;
                }
                else
                {
                    if (!
attacked.ContainsFlag(Update.Flags.FlashingName) || !attacked.ContainsFlag(Update.Flags.BlackName))
                    {
                        if (
ServerBase.Constants.PKFreeMaps.Contains(attacker.Owner.Map.BaseID))
                            return 
true;
                        
attacker.AddFlag(Network.GamePackets.Update.Flags.Normal);
                        
attacker.NormalStamp Time32.Now;
                    }
                }
                return 
true;
            }
        } 
its worked fine in free pk maps , but in another maps like ape , bird , desert and phoenix etc ... its when you attack someone your name wont flash , buts its flash if you killed the guy which you attacked

any idea ?
abdeen is offline  
Old 10/13/2011, 01:02   #12
 
elite*gold: 0
Join Date: May 2011
Posts: 75
Received Thanks: 7
Quote:
Originally Posted by abdeen View Post

any idea ?
I though it is because the desert, bird & etc.. are free pk maps and you have changed only the attacking code not the KILLING one so it doesn't be flagging when you attack it does so when you have already killed someone hope you get it about the maps go to maps table in your database then add new columns with random ids and with the same map you would like to be like it such as: 1005 which is arena, the type it would be like desert or bird "8192" or whatever you need ,and the weather as you like default=0.

I hope I've helped you, any mistakes just tell me


-GeniuS- is offline  
Thanks
1 User
Reply



« connection error | [Question] Traffic Balancing from Server »

Similar Threads
Class PK Envoy Command to start it?
is there a command to start class pk envoy? if there is can u tell me
11 Replies - CO2 PServer - Discussions / Questions
[Release]Class PK Envoy for 5165
thats Class Pk Envoy for 5165 and ProfPKChief for WeeklyPKChampion #region Top WeeklyPKChampion case 1502: { if (Control == 0) { ...
16 Replies - CO2 PServer Guides & Releases



All times are GMT +2. The time now is 13:58.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.