منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   توب الشخصيات (https://code.vpscairo.com/showthread.php?t=1202)

محمد ياسر 2019-07-30 12:33 PM

توب الشخصيات
 

السلام عليكم ورحمة الله وبركاته
معانا اليوم توب الشخصيات
التوب لشخصيات دول لو تحب تكتر براحتك
Pirates vs Trojan

Assassin vs Monk

Ninja vs Water

Fire vs Warrior



كل شخصيتن من دول هيلعبو في مابه ومش هينفع شخصيه تانيه تخش المابا غير الشخصيات اللي قلت عليها كذا ضد كذا
الشرح

اولا افتح Npcs.cs

وضيف دول تحت اي توب عندك
كود PHP:

#region Top-Monk-VS-Assassin by ana wad gentle
                
case 201510:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there " client.Entity.Name " Would you like to join Top-Monk-VS-Assassin-World ClassPk?.");
                                    
dialog.Option("Yes Please"1);
                                    
dialog.Option("Me Not Monk or Assassin."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
DateTime Now64 DateTime.Now;
                                    if (
DateTime.Now.Minute >= 01 && DateTime.Now.Minute <= 04)
                                    {
                                        if (
client.Entity.Class == 15) return;
                                        if (
client.Entity.Class == 25) return;
                                        if (
client.Entity.Class == 135) return;
                                        if (
client.Entity.Class == 145) return;
                                        if (
client.Entity.Class == 55) return;
                                        if (
client.Entity.Class == 75) return;
                                        
                                    
                                        
Random R = new Random();
                                        
int Nr R.Next(110);
                                        if (
Nr == 1client.Entity.Teleport(2255173);

                                        if (
Nr == 2client.Entity.Teleport(2253334);
                                        if (
Nr == 3client.Entity.Teleport(2256734);
                                        if (
Nr == 4client.Entity.Teleport(2255173);
                                        if (
Nr == 5client.Entity.Teleport(2253334);
                                        if (
Nr == 6client.Entity.Teleport(2256734);
                                        if (
Nr == 7client.Entity.Teleport(2255173);
                                        if (
Nr == 8client.Entity.Teleport(2253334);
                                        if (
Nr == 9client.Entity.Teleport(2256734);
                                        if (
Nr == 10client.Entity.Teleport(2256857);
                                    }
                                    else
                                    {
                                        
dialog.Text("Top-Monk-VS-Ninja-World ClassPk is held during 01:04 to 01:04 you have 5 min to signup ");
                                        
dialog.Option("I don't care."255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                    
                        break;
                    }
                
#endregion
                #region Winner of Top-Monk-VS-Assassin  by ana wad gentle
                
case 201511:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there " client.Entity.Name " Would you like to claim your Prize?.");
                                    
dialog.Option("Yes Please"1);
                                    
dialog.Option("I don't care."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
Daily.CheackAlive3();
                                    
DateTime Now64 DateTime.Now;
                                    if (
DateTime.Now.Minute >= 08 && DateTime.Now.Minute <= 10)
                                    {
                                        if (
Daily.howmanyinmap2 == 1)
                                        {
                                            
client.Entity.ConquerPoints += 500000;
                                            
client.Entity.AddTopStatus(Update.Flags2.Top2NinjaDateTime.Now.AddDays(1));
                                            
MrEtaleProject.ServerBase.Kernel.SendWorldMessage(new Message("Congratulations! " client.Entity.Name " claimed the prize " 500000 " ConquerPoints for winning the Top-Monk-VS-Assassin Pk War and Receive PkWar Halo."System.Drawing.Color.WhiteMessage.Talk), Program.GamePool);
                                            
client.Entity.SendSpawn(clienttrue);
                                            
client.Entity.Teleport(1002299278);
                                            
EntityTable.SaveEntity(client);
                                        }
                                        else
                                        {
                                            
dialog.Text("There are still " Daily.howmanyinmap2 " 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 00:20");
                                        
dialog.Option("okay"255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion

                #region Top-Trojan-VS-Pirates by ana wad gentle
                
case 201512:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there " client.Entity.Name " Would you like to join Trojan-VS-Pirates-World ClassPk?.");
                                    
dialog.Option("Yes Please"1);
                                    
dialog.Option("me not Trojan Or Pirates."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
DateTime Now64 DateTime.Now;
                                    if (
DateTime.Now.Minute >= 11 && DateTime.Now.Minute <= 14)
                                    {
                                        if (
client.Entity.Class == 55) return;
                                        if (
client.Entity.Class == 25) return;
                                        if (
client.Entity.Class == 135) return;
                                        if (
client.Entity.Class == 145) return;
                                        if (
client.Entity.Class == 65) return;
                                        if (
client.Entity.Class == 45) return;

                                        
Random R = new Random();
                                        
int Nr R.Next(110);
                                        if (
Nr == 1client.Entity.Teleport(2265173);

                                        if (
Nr == 2client.Entity.Teleport(2263334);
                                        if (
Nr == 3client.Entity.Teleport(2266734);
                                        if (
Nr == 4client.Entity.Teleport(2265173);
                                        if (
Nr == 5client.Entity.Teleport(2263334);
                                        if (
Nr == 6client.Entity.Teleport(2266734);
                                        if (
Nr == 7client.Entity.Teleport(2265173);
                                        if (
Nr == 8client.Entity.Teleport(2263334);
                                        if (
Nr == 9client.Entity.Teleport(2266734);
                                        if (
Nr == 10client.Entity.Teleport(2266857);
                                    }
                                    else
                                    {
                                        
dialog.Text("Top-Trojan-VS-Archer-World ClassPk is held during 05:08 to 05:08 you have 5 min to signup ");
                                        
dialog.Option("I don't care."255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }

                        break;
                    }
                
#endregion
                #region Winner of Top-Trojan-VS-Pirates by ana wad gentle
                
case 201513:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there " client.Entity.Name " Would you like to claim your Prize?.");
                                    
dialog.Option("Yes Please"1);
                                    
dialog.Option("I don't care."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
Daily.CheackAlive3();
                                    
DateTime Now64 DateTime.Now;
                                    if (
DateTime.Now.Minute >= 17 && DateTime.Now.Minute <= 20)
                                    {
                                        if (
Daily.howmanyinmap2 == 1)
                                        {
                                            
client.Entity.ConquerPoints += 500000;
                                            
client.Entity.AddTopStatus(Update.Flags2.Top2NinjaDateTime.Now.AddDays(1));
                                            
MrEtaleProject.ServerBase.Kernel.SendWorldMessage(new Message("Congratulations! " client.Entity.Name " claimed the prize " 500000 " ConquerPoints for winning the Top-Trojan-VS-Pirates Pk War and Receive Top-Monk-VS-Ninja PkWar Halo."System.Drawing.Color.WhiteMessage.Talk), Program.GamePool);
                                            
client.Entity.SendSpawn(clienttrue);
                                            
client.Entity.Teleport(1002299278);
                                            
EntityTable.SaveEntity(client);
                                        }
                                        else
                                        {
                                            
dialog.Text("There are still " Daily.howmanyinmap2 " 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 01:10");
                                        
dialog.Option("okay"255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion

                #region Top-Ninja-VS-Water by ana wad gentle
                
case 201514:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there " client.Entity.Name " Would you like to join Ninja-VS-Water-World ClassPk?.");
                                    
dialog.Option("Yes Please"1);
                                    
dialog.Option("Me not Ninja or Water."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
DateTime Now64 DateTime.Now;
                                    if (
DateTime.Now.Minute >= 21 && DateTime.Now.Minute <= 24)
                                    {
                                        if (
client.Entity.Class == 15) return;
                                        if (
client.Entity.Class == 25) return;
                                        if (
client.Entity.Class == 65) return;
                                        if (
client.Entity.Class == 145) return;
                                        if (
client.Entity.Class == 65) return;
                                        if (
client.Entity.Class == 75) return;

                                        
Random R = new Random();
                                        
int Nr R.Next(110);
                                        if (
Nr == 1client.Entity.Teleport(2275173);

                                        if (
Nr == 2client.Entity.Teleport(2273334);
                                        if (
Nr == 3client.Entity.Teleport(2276734);
                                        if (
Nr == 4client.Entity.Teleport(2275173);
                                        if (
Nr == 5client.Entity.Teleport(2273334);
                                        if (
Nr == 6client.Entity.Teleport(2276734);
                                        if (
Nr == 7client.Entity.Teleport(2275173);
                                        if (
Nr == 8client.Entity.Teleport(2273334);
                                        if (
Nr == 9client.Entity.Teleport(2276734);
                                        if (
Nr == 10client.Entity.Teleport(2276857);
                                    }
                                    else
                                    {
                                        
dialog.Text("Top-Ninja-VS-Water-World ClassPk is held during 09:11 to 09:11 you have 5 min to signup ");
                                        
dialog.Option("I don't care."255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }

                        break;
                    }
                
#endregion
                #region Winner of Top-Ninja-VS-Water by ana wad gentle
                
case 201515:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there " client.Entity.Name " Would you like to claim your Prize?.");
                                    
dialog.Option("Yes Please"1);
                                    
dialog.Option("I don't care."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
Daily.CheackAlive3();
                                    
DateTime Now64 DateTime.Now;
                                    if (
DateTime.Now.Minute >= 28 && DateTime.Now.Minute <= 31)
                                    {
                                        if (
Daily.howmanyinmap2 == 1)
                                        {
                                            
client.Entity.ConquerPoints += 500000;
                                            
client.Entity.AddTopStatus(Update.Flags2.Top2NinjaDateTime.Now.AddDays(1));
                                            
MrEtaleProject.ServerBase.Kernel.SendWorldMessage(new Message("Congratulations! " client.Entity.Name " claimed the prize " 500000 " ConquerPoints for winning the Top-Ninja-VS-Water Pk War and Receive Top-Monk-VS-Ninja PkWar Halo."System.Drawing.Color.WhiteMessage.Talk), Program.GamePool);
                                            
client.Entity.SendSpawn(clienttrue);
                                            
client.Entity.Teleport(1002299278);
                                            
EntityTable.SaveEntity(client);
                                        }
                                        else
                                        {
                                            
dialog.Text("There are still " Daily.howmanyinmap2 " 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 01:10");
                                        
dialog.Option("okay"255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion

                #region Top-Warrior-VS-Fire by ana wad gentle
                
case 201516:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there " client.Entity.Name " Would you like to join Warrior-VS-Fire-World ClassPk?.");
                                    
dialog.Option("Yes Please"1);
                                    
dialog.Option("Me not Warrior or Fire."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
DateTime Now64 DateTime.Now;
                                    if (
DateTime.Now.Minute >= 32 && DateTime.Now.Minute <= 34)
                                    {
                                        if (
client.Entity.Class == 15) return;
                                        if (
client.Entity.Class == 55) return;
                                        if (
client.Entity.Class == 65) return;
                                        if (
client.Entity.Class == 135) return;
                                        if (
client.Entity.Class == 65) return;
                                        if (
client.Entity.Class == 75) return;

                                        
Random R = new Random();
                                        
int Nr R.Next(110);
                                        if (
Nr == 1client.Entity.Teleport(2285173);

                                        if (
Nr == 2client.Entity.Teleport(2283334);
                                        if (
Nr == 3client.Entity.Teleport(2286734);
                                        if (
Nr == 4client.Entity.Teleport(2285173);
                                        if (
Nr == 5client.Entity.Teleport(2283334);
                                        if (
Nr == 6client.Entity.Teleport(2286734);
                                        if (
Nr == 7client.Entity.Teleport(2285173);
                                        if (
Nr == 8client.Entity.Teleport(2283334);
                                        if (
Nr == 9client.Entity.Teleport(2286734);
                                        if (
Nr == 10client.Entity.Teleport(2286857);
                                    }
                                    else
                                    {
                                        
dialog.Text("Warrior-VS-Fire-World ClassPk is held during 00:34 to 00:34 you have 5 min to signup ");
                                        
dialog.Option("I don't care."255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }

                        break;
                    }
                
#endregion
                #region Winner of Top-Warrior-VS-Fire by ana wad gentle
                
case 201517:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there " client.Entity.Name " Would you like to claim your Prize?.");
                                    
dialog.Option("Yes Please"1);
                                    
dialog.Option("I don't care."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
Daily.CheackAlive3();
                                    
DateTime Now64 DateTime.Now;
                                    if (
DateTime.Now.Minute >= 37 && DateTime.Now.Minute <= 40)
                                    {
                                        if (
Daily.howmanyinmap2 == 1)
                                        {
                                            
client.Entity.ConquerPoints += 500000;
                                            
client.Entity.AddTopStatus(Update.Flags2.Top2NinjaDateTime.Now.AddDays(1));
                                            
MrEtaleProject.ServerBase.Kernel.SendWorldMessage(new Message("Congratulations! " client.Entity.Name " claimed the prize " 500000 " ConquerPoints for winning the Top-Monk-VS-Ninja Pk War and Receive Top-Monk-VS-Ninja PkWar Halo."System.Drawing.Color.WhiteMessage.Talk), Program.GamePool);
                                            
client.Entity.SendSpawn(clienttrue);
                                            
client.Entity.Teleport(1002299278);
                                            
EntityTable.SaveEntity(client);
                                        }
                                        else
                                        {
                                            
dialog.Text("There are still " Daily.howmanyinmap2 " 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 01:10");
                                        
dialog.Option("okay"255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 

ثانيا الاتو انفيت

ضيف دول في ملف World.cs

تحت اي اتو انفيت

كود PHP:

#region Top-Monk-VS-Assassin by ana wad gentle
            
if (Now64.Minute == 01 && Now64.Second == 00)
            {
                
Kernel.SendWorldMessage(new Message("Top-Monk-VS-Assassin began!"Color.RedMessage.Center), Program.GamePool);
                foreach (var 
pclint in Program.GamePool)
                    
client.MessageBox("Top-Monk-VS-Assassin Event Has Started Wana Join? ",
                        (
p) => { p.Entity.Teleport(1002285359); }, null10);
            }
            
#endregion Top-Monk-VS-Assassin by ana wad gentle
            #region Top-Trojan-VS-Pirates
            
if (Now64.Minute == 11 && Now64.Second == 00)
            {
                
Kernel.SendWorldMessage(new Message("Top-Trojan-VS-Pirates began!"Color.RedMessage.Center), Program.GamePool);
                foreach (var 
pclint in Program.GamePool)
                    
client.MessageBox("Top-Trojan-VS-Pirates Event Has Started Wana Join? ",
                        (
p) => { p.Entity.Teleport(1002274359); }, null10);
            }
            
#endregion Top-Trojan-VS-Pirates by ana wad gentle
            #region Top-Warrior-VS-Fire
            
if (Now64.Minute == 32 && Now64.Second == 00)
            {
                
Kernel.SendWorldMessage(new Message("Top-Warrior-VS-Fire began!"Color.RedMessage.Center), Program.GamePool);
                foreach (var 
pclint in Program.GamePool)
                    
client.MessageBox("Top-Warrior-VS-Fire Event Has Started Wana Join? ",
                        (
p) => { p.Entity.Teleport(1002281359); }, null10);
            }
            
#endregion Top-Warrior-VS-Fire by ana wad gentle
            #region Top-Ninja-VS-Water
            
if (Now64.Minute == 21 && Now64.Second == 00)
            {
                
Kernel.SendWorldMessage(new Message("Top-Ninja-VS-Water began!"Color.RedMessage.Center), Program.GamePool);
                foreach (var 
pclint in Program.GamePool)
                    
client.MessageBox("Top-Ninja-VS-Water Event Has Started Wana Join? ",
                        (
p) => { p.Entity.Teleport(1002277359); }, null10);
            }
            
#endregion Top-Ninja-VS-Water by ana wad gentle 

ثالثا شغل النفي كات

دول في ملف Npcs
كود PHP:

201511    0    0    Top-Monk-VS-asa1    2    29500    -1    225    50    50    0    0    0    0    0    0    0    0    0    0    0    0        0    0    0    0    0    
201512    0    0    Trojan
-VS-Pirate    2    29500    -1    1002    274    357    0    0    0    0    0    0    0    0    0    0    0    0        0    0    0    0    0    
201513    0    0    Trojan
-VS-Pirate    2    29500    -1    226    50    50    0    0    0    0    0    0    0    0    0    0    0    0        0    0    0    0    0    
201514    0    0    Ninja
-VS-Water    2    29500    -1    1002    277    357    0    0    0    0    0    0    0    0    0    0    0    0        0    0    0    0    0    
201515    0    0    Ninja
-VS-Water1    2    29500    -1    227    50    50    0    0    0    0    0    0    0    0    0    0    0    0        0    0    0    0    0    
201516    0    0    Warrior
-VS-Fire    2    29500    -1    1002    281    357    0    0    0    0    0    0    0    0    0    0    0    0        0    0    0    0    0    
201517    0    0    Warrior
-VS-Fire1    2    29500    -1    228    50    50    0    0    0    0    0    0    0    0    0    0    0    0        0    0    0    0    0 

ودول في ملف maps
كود PHP:

225    1730    7    0
226    1730    7    0
227    1730    7    0
228    1730    7    0 


ALz3em 2019-07-30 02:49 PM

رد: توب الشخصيات
 
تسلم أيدك أستمر


الساعة الآن 04:44 PM

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