0
حصريا كوسته السوبر بيكا لسورس كيمو

بسم الله الرحمان الرحيم

انهرده جيبلوكو كوسته حلوه وي الكول عرفها وي هيا السوبر بيكا

اول حاجه الكود ده هيضاف في dialogs


كود PHP:
#region Super Pk
                
case 252531:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialogs.Text("Hey there " client.Entity.Name " Would you like to join the Super PKWar?.");
                                    
dialogs.Option("Yes Please"1);
                                    
dialogs.Option("I don't care."255);
                                    
dialogs.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    if (
DateTime.Now.Minute >= 06 && DateTime.Now.Minute <= 08)
                                    {
                                        
client.Entity.Teleport(2629111136);
                                    }
                                    else
                                    {
                                        
dialogs.Text("Super Pk War is held during xx:06 To xx:08 in every Hour");
                                        
dialogs.Option("I don't care."255);
                                        
dialogs.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion
                #region Winner of Super Pk
                
case 252532:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialogs.Text("Hey there" client.Entity.Name "Would you like to claim your Prize?.");
                                    
dialogs.Option("Yes Please"1);
                                    
dialogs.Option("I don't care."255);
                                    
dialogs.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
int alive 0;
                                    foreach (
Conquer_Online_Server.Client.GameState players in Conquer_Online_Server.ServerBase.Kernel.GamePool.Values)
                                        if (
players.Entity.MapID == 2629 && (!players.Entity.Dead))
                                            
alive++;
                                    if (
DateTime.Now.Minute >= 16 && DateTime.Now.Minute <= 20)
                                    {
                                        if (
alive == 1)
                                        {
                                            
client.Entity.ConquerPoints += 50000;
                                            
client.Entity.Status3 1;
                                            
Conquer_Online_Server.ServerBase.Kernel.SendWorldMessage(new Message("Congratulations! " client.Entity.Name " claimed the prize 50 k ConquerPoints for winning the Super Pk for this Hour."System.Drawing.Color.BlackMessage.Talk), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                            
client.Entity.AddFlag(Update.Flags.WeeklyPKChampion);
                                            
client.Entity.SendSpawn(clienttrue);
                                            
client.Entity.Teleport(1002429378);
                                            
EntityTable.SaveEntity(client);
                                        }
                                        else
                                        {
                                            
dialogs.Text("There are still " alive " players in the map kill it first to claim prize!");
                                            
dialogs.Option("okay"255);
                                            
dialogs.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        
dialogs.Text("Hey there " client.Entity.Name "You can only claim the prize when the time on or after xx:16 To xx:20");
                                        
dialogs.Option("okay"255);
                                        
dialogs.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 
النفيكات
كود PHP:
252531  Super Pk Jion  7888  1002  446  243
252532  Super Pk Winner  11890  2629 90 132 
الماب

كود PHP:
2629  1508  7  0 

0 التعليقات:

إرسال تعليق

 
تعريب وتطوير mandoo
مدونة conquer Pvp لشروحات السيرفرات الشخصيه © 2010 | عودة الى الاعلى
Designed by mandoo