0
الان كويستة SuperPk Client 5530





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

الان كويستة SuperPk Client 5530


اولا هتروح

Programe.Cs


وهتدور على دا



كود PHP:
if (client.Entity.HandleTiming) 

وهتضيف دا تحتو

كود PHP:
if (DateTime.Now.Minute == 06 && DateTime.Now.Second == 00)
                        {
                            if (
DateTime.Now.Minute == 06 && DateTime.Now.Second == 00)
                            {
                                
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Super Pk Tourment has Started! You Wana Join?");
                                
npc.OptionID = 233;
                                
client.Send(npc.ToArray());
                            } 


وبعد كدا خش على دا



Network/PacketHandler.Cs


هتدور على دا



كود PHP:
if (req.InteractType == NpcReply.MessageBox) 

وهتضيف دا فوقيه

كود PHP:
if (client.Map.BaseID != 6001 && !client.Entity.Dead && req.OptionID == 233)//Super Pk
                        
{
                            
client.Entity.Teleport(2629, 111, 130);
                        } 

وفى نفس الملف ندور على دا

كود PHP:
static void LoginMessages(Client.GameState client) 

ونضيف دا تحتو

كود PHP:
if (client.Entity.MapID == 2626 || client.Entity.MapID == 2627 || client.Entity.MapID == 2643)// login maps
                
client.Entity.Teleport(1002, 430, 378); 

ودا انبى سى الدخول للكويست

كود PHP:
#region Super Pk
                
case 252531:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join the Super PKWar?.");
                                    
dialog.Option("Yes Please", 1);
                                    
dialog.Option("I don't care.", 255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    if (
DateTime.Now.Minute >= 06 && DateTime.Now.Minute <= 08)
                                    {
                                        
client.Entity.Teleport(2629, 111, 136);
                                    }
                                    else
                                    {
                                        
dialog.Text("Super Pk War is held during xx:06 To xx:08 in every Hour");
                                        
dialog.Option("I don't care.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 

ودا انبى سى الجايزه

كود PHP:
#region Winner of Super Pk
                
case 252532:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there" + client.Entity.Name + "Would you like to claim your Prize?.");
                                    
dialog.Option("Yes Please", 1);
                                    
dialog.Option("I don't care.", 255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
int alive = 0;
                                    foreach (
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.Black, Message.Talk), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
                                            
//client.Entity.AddFlag(Update.Flags.WeeklyPKChampion);
                                            
client.Entity.SendSpawn(client, true);
                                            
client.Entity.Teleport(1002, 429, 378);
                                            
EntityTable.SaveEntity(client);
                                        }
                                        else
                                        {
                                            
dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
                                            
dialog.Option("okay", 255);
                                            
dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:16 To xx:20");
                                        
dialog.Option("okay", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 

وادى اكواد النافى كات

كود PHP:
  INSERT INTO `npcs` VALUES ('252531', 'Super Pk Jion', '0002', '7888', '1002', '0463', '0352');INSERT INTO `npcs` VALUES ('252532', 'Super Pk Winner', '0002', '11890', '2629', '0090', '0132');INSERT INTO `maps` VALUES ('2629', '1508', '0007', '0000'); 

0 التعليقات:

إرسال تعليق

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