منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   افضل 9 مسابقات للسيرفرات الصعبة (https://code.vpscairo.com/showthread.php?t=120)

محمد ياسر 2019-04-23 11:28 AM

افضل 9 مسابقات للسيرفرات الصعبة
 

دلوقتي 9 كويستات من عندي من السورس بتاعي باوتو انفيت,
نخش علي الشرح علي طول بقا,
افتح ملف Npcs في السي شارب وضيف الاكواد دي
كود PHP:

//NEW Quest BY.MR AMR
                    /////////////////////////////////////////////////////////////////
                    #region ConquerPK
                    
case 81500:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to join ConquerPK?.");
                                        
dialog.Option("Yes Please", 1);
                                        
dialog.Option("Not now.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        if (
DateTime.Now.Minute >= 01 && DateTime.Now.Minute <= 4)
                                        {
                                            
client.Entity.Teleport(8510, 50, 50);
                                        }
                                        else
                                        {
                                            
dialog.Text("[ConquerPK] War is held during xx:01 To xx:04 in every Day");
                                            
dialog.Option("I don't care.", 255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion
                    #region ConquerPK Prize
                    
case 81501:
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to claim your Prize?.");
                                    
dialog.Option("Yes Please", 1);
                                    
dialog.Option("I don't care.", 0xff);
                                    
dialog.Send();
                                    break;
                                }

                            case 
1:
                                {
                                    
int alive = 1;
                                    var 
Now64 = DateTime.Now;
                                    if (
DateTime.Now.Minute >= 05 && DateTime.Now.Minute <= 50)
                                    {
                                        if (
alive == 1)
                                        {
                                            
client.Entity.ConquerPoints += 20000;
                                            
client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags.Ride); ;
                                            
client.Entity.AddTopStatus((ulong)FlagsUpdate.Flags2.Top2Ninja, DateTime.Now.AddMinutes(58));
                                            
Kernel.SendWorldMessage(new Message("Congratulations! > " + client.Entity.Name + " < You Wenner Quest ConquerPK Prize " + 20000 + " CPs.", System.Drawing.Color.Black, Message.Center), Server.Values);
                                            
client.Entity.SendSpawn(client, true);
                                            
client.Entity.Teleport(1002, 303, 278);
                                            
EntityTable.SaveEntity(client);
                                        }
                                        else
                                        {
                                            
dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
                                            
dialog.Option("okay", 0xff);
                                            
dialog.Send();
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " < You can only claim the prize when the time on or after xx:05");
                                        
dialog.Option("okay", 0xff);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    {
                                        
client.Entity.Teleport(1002, 302, 280);
                                    }
                                    break;
                                }
                        }
                        break;
                    
#endregion
                    /////////////////////////////////////////////////////////////////
                    #region GhostPk
                    
case 81502:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to join Ghostpk?.");
                                        
dialog.Option("Yes Please", 1);
                                        
dialog.Option("Not now.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        if (
DateTime.Now.Minute >= 06 && DateTime.Now.Minute <= 9)
                                        {
                                            
client.Entity.Teleport(8511, 50, 50);
                                        }
                                        else
                                        {
                                            
dialog.Text("[Ghost Pk] War is held during xx:6 To xx:9 in every Day");
                                            
dialog.Option("I don't care.", 255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion
                    #region Ghost Winner
                    
case 81503:
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to claim your Prize?.");
                                    
dialog.Option("Yes Please", 1);
                                    
dialog.Option("I don't care.", 0xff);
                                    
dialog.Send();
                                    break;
                                }

                            case 
1:
                                {
                                    
int alive = 1;
                                    var 
Now64 = DateTime.Now;
                                    if (
DateTime.Now.Minute >= 10 && DateTime.Now.Minute <= 50)
                                    {
                                        if (
alive == 1)
                                        {
                                            
client.Entity.ConquerPoints += 20000;
                                            
client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags.Ride);
                                            
client.Entity.AddTopStatus((ulong)FlagsUpdate.Flags2.Top2Archer, DateTime.Now.AddMinutes(58));
                                            
Kernel.SendWorldMessage(new Message("Congratulations! > " + client.Entity.Name + " < You Wenner Quest GhostPk Prize " + 20000 + " CPs.", System.Drawing.Color.Black, Message.Center), Server.Values);
                                            
client.Entity.SendSpawn(client, true);
                                            
client.Entity.Teleport(1002, 303, 278);
                                            
EntityTable.SaveEntity(client);
                                        }
                                        else
                                        {
                                            
dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
                                            
dialog.Option("okay", 0xff);
                                            
dialog.Send();
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " < You can only claim the prize when the time on or after xx:10");
                                        
dialog.Option("okay", 0xff);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    {
                                        
client.Entity.Teleport(1002, 302, 280);
                                    }
                                    break;
                                }
                        }
                        break;
                    
#endregion
                    /////////////////////////////////////////////////////////////////
                    #region StayAlive pk
                    
case 81504:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to join StayAlive pk?.");
                                        
dialog.Option("Yes Please", 1);
                                        
dialog.Option("Not now.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        if (
DateTime.Now.Minute >= 16 && DateTime.Now.Minute <= 19)
                                        {
                                            
client.Entity.Teleport(8512, 50, 50);
                                        }
                                        else
                                        {
                                            
dialog.Text("[StayAlive] War is held during xx:16 To xx:19 in every Day");
                                            
dialog.Option("I don't care.", 255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion
                    #region StayAlive Prize
                    
case 81505:
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to claim your Prize?.");
                                    
dialog.Option("Yes Please", 1);
                                    
dialog.Option("I don't care.", 0xff);
                                    
dialog.Send();
                                    break;
                                }

                            case 
1:
                                {
                                    
int alive = 1;
                                    var 
Now64 = DateTime.Now;
                                    if (
DateTime.Now.Minute >= 20 && DateTime.Now.Minute <= 50)
                                    {
                                        if (
alive == 1)
                                        {
                                            
client.Entity.ConquerPoints += 20000;
                                            
client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags.Ride);
                                            
client.Entity.AddTopStatus((ulong)FlagsUpdate.Flags2.Top2Warrior, DateTime.Now.AddMinutes(58));
                                            
Kernel.SendWorldMessage(new Message("Congratulations! > " + client.Entity.Name + " < You Wenner Quest StayAlive Prize " + 20000 + " CPs.", System.Drawing.Color.Black, Message.Center), Server.Values);
                                            
client.Entity.SendSpawn(client, true);
                                            
client.Entity.Teleport(1002, 303, 278);
                                            
EntityTable.SaveEntity(client);
                                        }
                                        else
                                        {
                                            
dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
                                            
dialog.Option("okay", 0xff);
                                            
dialog.Send();
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " < You can only claim the prize when the time on or after xx:20");
                                        
dialog.Option("okay", 0xff);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    {
                                        
client.Entity.Teleport(1002, 302, 280);
                                    }
                                    break;
                                }
                        }
                        break;
                    
#endregion
                    /////////////////////////////////////////////////////////////////
                    #region PrinceWar
                    
case 81508:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to join PrinceWar?.");
                                        
dialog.Option("Yes Please", 1);
                                        
dialog.Option("Not now.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        if (
DateTime.Now.Minute >= 23 && DateTime.Now.Minute <= 26)
                                        {
                                            
client.Entity.Teleport(8514, 50, 50);
                                        }
                                        else
                                        {
                                            
dialog.Text("PrinceWar War is held during xx:23 To xx:26 in every Day");
                                            
dialog.Option("I don't care.", 255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion
                    #region PrinceWar Prize
                    
case 81509:
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to claim your Prize?.");
                                    
dialog.Option("Yes Please", 1);
                                    
dialog.Option("I don't care.", 0xff);
                                    
dialog.Send();
                                    break;
                                }

                            case 
1:
                                {
                                    
int alive = 1;
                                    var 
Now64 = DateTime.Now;
                                    if (
DateTime.Now.Minute >= 27 && DateTime.Now.Minute <= 50)
                                    {
                                        if (
alive == 1)
                                        {
                                            
client.Entity.ConquerPoints += 20000;
                                            
client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags.Ride);
                                            
client.Entity.AddTopStatus((ulong)FlagsUpdate.Flags2.Top3Warrior, DateTime.Now.AddHours(1));
                                            
Kernel.SendWorldMessage(new Message("Congratulations! > " + client.Entity.Name + " < You Wenner Quest PrinceWar Prize " + 20000 + " CPs.", System.Drawing.Color.Black, Message.Center), Server.Values);
                                            
client.Entity.SendSpawn(client, true);
                                            
client.Entity.Teleport(1002, 303, 278);
                                            
EntityTable.SaveEntity(client);
                                        }
                                        else
                                        {
                                            
dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
                                            
dialog.Option("okay", 0xff);
                                            
dialog.Send();
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " < You can only claim the prize when the time on or after xx:27");
                                        
dialog.Option("okay", 0xff);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    {
                                        
client.Entity.Teleport(1002, 302, 280);
                                    }
                                    break;
                                }
                        }
                        break;
                    
#endregion
                    /////////////////////////////////////////////////////////////////
                    #region AttackersTop
                    
case 91510:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to join AttackersTop.");
                                        
dialog.Option("Yes Please", 1);
                                        
dialog.Option("Not now.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        if (
DateTime.Now.Minute >= 32 && DateTime.Now.Minute <= 35)
                                        {
                                            
client.Entity.Teleport(8527, 50, 50);
                                        }
                                        else
                                        {
                                            
dialog.Text("AttackersTop War is held during xx:32 To xx:35 in every Day");
                                            
dialog.Option("I don't care.", 255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion
                    #region AttackersTop Prize
                    
case 91511:
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to claim your Prize?.");
                                    
dialog.Option("Yes Please", 1);
                                    
dialog.Option("I don't care.", 0xff);
                                    
dialog.Send();
                                    break;
                                }

                            case 
1:
                                {
                                    
int alive = 1;
                                    var 
Now64 = DateTime.Now;
                                    if (
DateTime.Now.Minute >= 36 && DateTime.Now.Minute <= 59)
                                    {
                                        if (
alive == 1)
                                        {
                                            
client.Entity.ConquerPoints += 20000;
                                            
client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags.Ride);
                                            
client.Entity.AddTopStatus((ulong)FlagsUpdate.Flags2.Top2Archer, DateTime.Now.AddHours(1));
                                            
Kernel.SendWorldMessage(new Message("Congratulations! > " + client.Entity.Name + " < You Winner Quest AttackerPk Prize" + 20000 + " CPs.", System.Drawing.Color.Black, Message.Center), Server.Values);
                                            
client.Entity.SendSpawn(client, true);
                                            
client.Entity.Teleport(1002, 303, 278);
                                            
EntityTable.SaveEntity(client);
                                        }
                                        else
                                        {
                                            
dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
                                            
dialog.Option("okay", 0xff);
                                            
dialog.Send();
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " < You can only claim the prize when the time on or after xx:36 ");
                                        
dialog.Option("okay", 0xff);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    {
                                        
client.Entity.Teleport(1002, 302, 280);
                                    }
                                    break;
                                }
                        }
                        break;
                    
#endregion
                    ///////////////////////////////////////////////////////////////
                    #region RabbitPK
                    
case 81516:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to join RabbitPK?.");
                                        
dialog.Option("Yes Please", 1);
                                        
dialog.Option("Not now.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        if (
DateTime.Now.Minute >= 38 && DateTime.Now.Minute <= 41)
                                        {
                                            
client.Entity.Teleport(8518, 50, 50);
                                        }
                                        else
                                        {
                                            
dialog.Text("Rabbit War is held during xx:38 To xx:41 in every Day");
                                            
dialog.Option("I don't care.", 255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion
                    #region Rabbit Prize
                    
case 81517:
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to claim your Prize?.");
                                    
dialog.Option("Yes Please", 1);
                                    
dialog.Option("I don't care.", 0xff);
                                    
dialog.Send();
                                    break;
                                }

                            case 
1:
                                {
                                    
int alive = 1;
                                    var 
Now64 = DateTime.Now;
                                    if (
DateTime.Now.Minute >= 43 && DateTime.Now.Minute <= 59)
                                    {
                                        if (
alive == 1)
                                        {
                                            
client.Entity.ConquerPoints += 20000;
                                            
client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags.Ride);
                                            
client.Entity.AddTopStatus((ulong)FlagsUpdate.Flags2.Top8Warrior, DateTime.Now.AddHours(1));
                                            
Kernel.SendWorldMessage(new Message("Congratulations! > " + client.Entity.Name + " < You Winner Quest RabbitPK and get " + 20000 + " CPs.", System.Drawing.Color.Black, Message.Center), Server.Values);
                                            
client.Entity.SendSpawn(client, true);
                                            
client.Entity.Teleport(1002, 303, 278);
                                            
EntityTable.SaveEntity(client);
                                        }
                                        else
                                        {
                                            
dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
                                            
dialog.Option("okay", 0xff);
                                            
dialog.Send();
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " < You can only claim the prize when the time on or after xx:43");
                                        
dialog.Option("okay", 0xff);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    {
                                        
client.Entity.Teleport(1002, 302, 280);
                                    }
                                    break;
                                }
                        }
                        break;
                    
#endregion
                    /////////////////////////////////////////////////////////////////
                    #region RevengerWar
                    
case 91500:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to join RevengerWar.");
                                        
dialog.Option("Yes Please", 1);
                                        
dialog.Option("Not now.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        if (
DateTime.Now.Minute >= 47 && DateTime.Now.Minute <= 50)
                                        {
                                            
client.Entity.Teleport(8526, 50, 50);
                                        }
                                        else
                                        {
                                            
dialog.Text("ReVenger War is held during xx:47 To xx:50 in every Day");
                                            
dialog.Option("I don't care.", 255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion
                    #region ReVenger War Winner
                    
case 91501:
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to claim your Prize?.");
                                    
dialog.Option("Yes Please", 1);
                                    
dialog.Option("I don't care.", 0xff);
                                    
dialog.Send();
                                    break;
                                }

                            case 
1:
                                {
                                    
int alive = 1;
                                    var 
Now64 = DateTime.Now;
                                    if (
DateTime.Now.Minute >= 52 && DateTime.Now.Minute <= 59)
                                    {
                                        if (
alive == 1)
                                        {
                                            
client.Entity.ConquerPoints += 20000;
                                            
client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags.Ride);
                                            
client.Entity.AddTopStatus((ulong)FlagsUpdate.Flags2.Top8Ninja, DateTime.Now.AddHours(1));
                                            
Kernel.SendWorldMessage(new Message("Congratulations! > " + client.Entity.Name + " < You Winner Quest ReVenger Prize " + 20000 + " CPs.", System.Drawing.Color.Black, Message.Center), Server.Values);
                                            
client.Entity.SendSpawn(client, true);
                                            
client.Entity.Teleport(1002, 303, 278);
                                            
EntityTable.SaveEntity(client);
                                        }
                                        else
                                        {
                                            
dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
                                            
dialog.Option("okay", 0xff);
                                            
dialog.Send();
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " < You can only claim the prize when the time on or after xx:52 ");
                                        
dialog.Option("okay", 0xff);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    {
                                        
client.Entity.Teleport(1002, 302, 280);
                                    }
                                    break;
                                }
                        }
                        break;
                    
#endregion
                    /////////////////////////////////////////////////////////////////
                    #region Dead World
                    
case 81524:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to join Dead World?.");
                                        
dialog.Option("Yes Please", 1);
                                        
dialog.Option("Not now.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        if (
DateTime.Now.Minute >= 53 && DateTime.Now.Minute <= 55)
                                        {
                                            
client.Entity.Teleport(8522, 50, 50);
                                        }
                                        else
                                        {
                                            
dialog.Text("[Dead World] War is held during xx:53 To xx:55 in every Day");
                                            
dialog.Option("I don't care.", 255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion
                    #region Dead World Prize
                    
case 81525:
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to claim your Prize?.");
                                    
dialog.Option("Yes Please", 1);
                                    
dialog.Option("I don't care.", 0xff);
                                    
dialog.Send();
                                    break;
                                }

                            case 
1:
                                {
                                    
int alive = 1;
                                    var 
Now64 = DateTime.Now;
                                    if (
DateTime.Now.Minute >= 57 && DateTime.Now.Minute <= 59)
                                    {
                                        if (
alive == 1)
                                        {
                                            
client.Entity.ConquerPoints += 20000;
                                            
client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags.Ride);
                                            
client.Entity.AddTopStatus((ulong)FlagsUpdate.Flags2.Top2Ninja, DateTime.Now.AddHours(1));
                                            
Kernel.SendWorldMessage(new Message("Congratulations! > " + client.Entity.Name + " < You Wenner Quest Dead World Prize " + 20000 + " CPs.", System.Drawing.Color.Black, Message.Center), Server.Values);
                                            
client.Entity.SendSpawn(client, true);
                                            
client.Entity.Teleport(1002, 303, 278);
                                            
EntityTable.SaveEntity(client);
                                        }
                                        else
                                        {
                                            
dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
                                            
dialog.Option("okay", 0xff);
                                            
dialog.Send();
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " < You can only claim the prize when the time on or after xx:57");
                                        
dialog.Option("okay", 0xff);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    {
                                        
client.Entity.Teleport(1002, 302, 280);
                                    }
                                    break;
                                }
                        }
                        break;
                    
#endregion
                    /////////////////////////////////////////////////////////////////
                    #region MemberAlter
                    
case 81526:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to join MemberAlterPK?.");
                                        
dialog.Option("Yes Please", 1);
                                        
dialog.Option("Not now.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        if (
DateTime.Now.Minute >= 57 && DateTime.Now.Minute <= 59)
                                        {
                                            
client.Entity.Teleport(8523, 50, 50);
                                        }
                                        else
                                        {
                                            
dialog.Text("MemberAlter War is held during xx:57 To xx:00 in every Day");
                                            
dialog.Option("I don't care.", 255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion
                    #region MemberAlter Prize
                    
case 81527:
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there > " + client.Entity.Name + " <  Would you like to claim your Prize?.");
                                    
dialog.Option("Yes Please", 1);
                                    
dialog.Option("I don't care.", 0xff);
                                    
dialog.Send();
                                    break;
                                }

                            case 
1:
                                {
                                    
int alive = 1;
                                    var 
Now64 = DateTime.Now;
                                    if (
DateTime.Now.Minute >= 01 && DateTime.Now.Minute <= 09)
                                    {
                                        if (
alive == 1)
                                        {
                                            
client.Entity.ConquerPoints += 20000;
                                            
client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags.Ride);
                                            
client.Entity.AddTopStatus((ulong)FlagsUpdate.Flags2.Top2Fire, DateTime.Now.AddHours(1));
                                            
Kernel.SendWorldMessage(new Message("Congratulations! > " + client.Entity.Name + " < You Wenner Quest MemberAlter Prize " + 20000 + " CPs.", System.Drawing.Color.Black, Message.Center), Server.Values);
                                            
client.Entity.SendSpawn(client, true);
                                            
client.Entity.Teleport(1002, 303, 278);
                                            
EntityTable.SaveEntity(client);
                                        }
                                        else
                                        {
                                            
dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
                                            
dialog.Option("okay", 0xff);
                                            
dialog.Send();
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("Hey there > " + client.Entity.Name + " < You can only claim the prize when the time on or after xx:01");
                                        
dialog.Option("okay", 0xff);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    {
                                        
client.Entity.Teleport(1002, 302, 280);
                                    }
                                    break;
                                }
                        }
                        break;
                    
#endregion
                    ///////////////////////////////////////////////////////////////// 

افتح ملف Thread.cs وابحث عن
ضيف دول

كود PHP:

            #region ConquerPK PK
            
if (DateTime.Now.Minute == 01 && Now64.Second == 10)
            {
                
Kernel.SendWorldMessage(new Message(" ConquerPK Pk, Now Online All Go To Play PK, !", Color.White, Message.Talk), Server.Values);
                foreach (var 
client in Server.GamePool)
                    
client.MessageBox(" ConquerPK Pk, Now Online, like to Join? ",
                    
p => { p.Entity.Teleport(1002, 327, 250); }, null, 60);
            }
            
#endregion
            #region Ghost PK
            
if (DateTime.Now.Minute == 06 && Now64.Second == 10)
            {
                
Kernel.SendWorldMessage(new Message(" Ghost Pk, Now Online All Go To Play PK !", Color.White, Message.Talk), Server.Values);
                foreach (var 
client in Server.GamePool)
                    
client.MessageBox(" Ghostpk Pk, Now Online, like to Join? ",
                    
p => { p.Entity.Teleport(1002, 331, 250); }, null, 60);
            }
            
#endregion
            #region StayAlive PK
            
if (DateTime.Now.Minute == 16 && Now64.Second == 10)
            {
                
Kernel.SendWorldMessage(new Message(" StayAlive Pk, Now Online All Go To Play PK !", Color.White, Message.Talk), Server.Values);
                foreach (var 
client in Server.GamePool)
                    
client.MessageBox(" StayAlive Pk, Now Online, like to Join? ",
                    
p => { p.Entity.Teleport(1002, 339, 250); }, null, 60);
            }
            
#endregion
            #region PrinceWar
            
if (DateTime.Now.Minute == 23 && Now64.Second == 1)
            {
                
Kernel.SendWorldMessage(new Message("(PrinceWar Pk, Now Online All Go To Play PK", Color.White, Message.Talk), Server.Values);
                foreach (var 
client in Server.GamePool)
                    
client.MessageBox(" PrinceWar, Now Online, like to Join? ",
                    
p => { p.Entity.Teleport(1002, 335, 250); }, null, 60);
            }
            
#endregion
            #region Attackers QuesT
            
if (DateTime.Now.Minute == 32 && Now64.Second == 1)
            {
                
Kernel.SendWorldMessage(new Message(" Attackers  Pk, Now Online All Go To Play PK !", Color.White, Message.Talk), Server.Values);
                foreach (var 
client in Server.GamePool)
                    
client.MessageBox(" Attackers QuesT Pk, Now Online, like to Join?",
                    (
p) => { p.Entity.Teleport(1002, 343, 250); }, null, 60);
            }
            
#endregion
            #region Rabbit PK
            
if (DateTime.Now.Minute == 38 && Now64.Second == 1)
            {
                
Kernel.SendWorldMessage(new Message(" Rabbit Pk, Now Online All Go To Play PK !", Color.White, Message.Talk), Server.Values);
                foreach (var 
client in Server.GamePool)
                    
client.MessageBox(" Rabbit Pk, Now Online, like to Join? ",
                    
p => { p.Entity.Teleport(1002, 323, 250); }, null, 60);
            }
            
#endregion
            #region RevengerWar
            
if (DateTime.Now.Minute == 47 && Now64.Second == 1)
            {
                
Kernel.SendWorldMessage(new Message(" ReVenger, Now Online All Go To Play PK,!", Color.White, Message.Talk), Server.Values);
                foreach (var 
client in Server.GamePool)
                    
client.MessageBox(" ReVengerWar Pk, Now Online, like to Join? ",
                    (
p) => { p.Entity.Teleport(1002, 319, 250); }, null, 60);
            }
            
#endregion
            #region Dead World
            
if (DateTime.Now.Minute == 53 && Now64.Second == 1)
            {
                
Kernel.SendWorldMessage(new Message(" Dead World Pk, Now Online All Go To Play PK!", Color.White, Message.Talk), Server.Values);
                foreach (var 
client in Server.GamePool)
                    
client.MessageBox(" Dead World Pk, Now Online, like to Join? ",
                    
p => { p.Entity.Teleport(1002, 315, 250); }, null, 60);
            }
            
#endregion
            #region MemberAlter
            
if (DateTime.Now.Minute == 57 && Now64.Second == 10)
            {
                
Kernel.SendWorldMessage(new Message(" MemberAlter, Now Online All Go To Play PK,!", Color.White, Message.Talk), Server.Values);
                foreach (var 
client in Server.GamePool)
                    
client.MessageBox("War, MemberAlter, Now Online, like to Join? ",
                    
p => { p.Entity.Teleport(1002, 311, 250); }, null, 60);
            }
            
#endregion 

وبعدين خش علي ملف Constants
ابحث عن
كود PHP:

PKFreeMaps 

وتحت القوس ضيف دول
كود PHP:

8510,8511,8512,8514,8518,8522,8523,8526,8527, 

افتح النافي كات وفي ملف npsc ضيف الاكواد دي
او دوس f6 ايطلعلك القونصل حط فيهم دول
كود PHP:

INSERT INTO `npcs` VALUES ('81500', '[ Conquer-PK ]', '0002', '50046', '1002', '0327', '0247', 'ninjapk_third');
INSERT INTO `npcs` VALUES ('81501', 'Prize', '0002', '29206', '8510', '0032', '0050', '');
INSERT INTO `npcs` VALUES ('81502', '[ Ghost-PK ]', '0002', '50010', '1002', '0331', '0247', 'Archerpk_third');
INSERT INTO `npcs` VALUES ('81503', 'Prize', '0002', '29206', '8511', '0032', '0050', '');
INSERT INTO `npcs` VALUES ('81504', '[ StayAlivePK ]', '0002', '50000', '1002', '0339', '0247', 'warriorpk_second');
INSERT INTO `npcs` VALUES ('81505', 'Prize', '0002', '29206', '8512', '0032', '0050', '');
INSERT INTO `npcs` VALUES ('81508', '[ PrinceWar ]', '0002', '50076', '1002', '0335', '0247', 'warriorpk_third');
INSERT INTO `npcs` VALUES ('81509', 'Prize', '0002', '29206', '8514', '0032', '0050', '');
INSERT INTO `npcs` VALUES ('91510', '[ Attacking ]', '0002', '50037', '1002', '0343', '0247', 'Archerpk_second');
INSERT INTO `npcs` VALUES ('91511', 'Prize', '0002', '29200', '8527', '0032', '0050', '');
INSERT INTO `npcs` VALUES ('81516', '[ Rabbit-War ] ', '0002', '50610', '1002', '0323', '0247', 'warriorpk_eight');
INSERT INTO `npcs` VALUES ('81517', 'Prize', '0002', '29200', '8518', '0032', '0050', '');
INSERT INTO `npcs` VALUES ('91500', '[ ReVenger-War ]', '0002', '51586', '1002', '0319', '0247', 'ninjapk_eight');
INSERT INTO `npcs` VALUES ('91501', 'Prize', '0002', '29200', '8526', '0032', '0050', '');
INSERT INTO `npcs` VALUES ('81524', '[ Dead-World ]', '0002', '50020', '1002', '0315', '0247', 'ninjapk_second');
INSERT INTO `npcs` VALUES ('81525', 'Prize', '0002', '29200', '8522', '0032', '0050', '');
INSERT INTO `npcs` VALUES ('81526', '[ MemberAlter ]', '0002', '50056', '1002', '0311', '0247', 'firepk_eight');
INSERT INTO `npcs` VALUES ('81527', 'Prize', '0002', '29200', '8523', '0032', '0050', ''); 

ونفتح بردو ملف maps في النافي كات ونضيف الاكواد دي

كود PHP:

INSERT INTO `maps` VALUES ('8510', '700', '0007', '0000');
INSERT INTO `maps` VALUES ('8511', '700', '0007', '0000');
INSERT INTO `maps` VALUES ('8512', '700', '0007', '0000');
INSERT INTO `maps` VALUES ('8514', '700', '0007', '0000');
INSERT INTO `maps` VALUES ('8527', '700', '0007', '0000');
INSERT INTO `maps` VALUES ('8518', '700', '0007', '0000');
INSERT INTO `maps` VALUES ('8526', '700', '0007', '0000');
INSERT INTO `maps` VALUES ('8522', '700', '0007', '0000');
INSERT INTO `maps` VALUES ('8523', '700', '0007', '0000'); 


Hassan Emprator 2019-04-23 12:53 PM

ينفع كوسته TowerOfMersty لي سورسات ورلد لو سمحت

محمد ياسر 2019-04-23 01:06 PM

رد
 
اقتباس:

المشاركة الأصلية كتبت بواسطة hassan (المشاركة 202)
ينفع كوسته towerofmersty لي سورسات ورلد لو سمحت

معاك الاكواد تبعها ؟

ahmedfathy96 2024-08-06 06:37 PM

رد: افضل 9 مسابقات للسيرفرات الصعبة
 
مشكوور


الساعة الآن 06:35 PM

مرحبا بكم في منتدي اكواد لتطوير الالعاب