منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   npc يجيب Runes (https://code.vpscairo.com/showthread.php?t=2653)

Hassan Emprator 2019-10-24 12:28 AM

npc يجيب Runes
 



عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع
في كلاس npcs.cs



كود PHP:

#region ريالك
                
case 71718:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {

                                    
dialog.Text("Hay Bro IAm ريالك Seller How Can I Help U ?");
                                    
dialog.Option("Runes Random ."1);
                                    
// dialog.Option("Epic Pirate .", 190);
                                    
dialog.Option("#Thnx ."255);
                                    break;
                                }
                            case 
1:
                                {
                                    if (
client.Entity.ConquerPoints >= 10000)//السبس
                                    
{
                                        
client.Entity.ConquerPoints -= 10000;//السبس
                                        
byte[] Type = new byte[0];
                                        
byte Count = (byte)Kernel.Random.Next(16);
                                        
uint ID = (uint)(Kernel.Random.Next(16) + 4100000);
                                        
byte vl1 0;
                                        
byte vl2 0;
                                        
byte vl3 0;
                                        
byte vl4 0;
                                        
byte vl5 0;
                                        if (
Count >= 1)
                                        {
                                            
vl1 = (byte)Kernel.Random.Next(114);
                                            if (
vl1 != 0)
                                                
Type = new byte[] { (byte)vl1 };
                                        }
                                        if (
Count >= 2)
                                        {
                                            for (
int x 01000x++)
                                            {
                                                
vl2 = (byte)Kernel.Random.Next(114);
                                                if (
vl2 != vl1)
                                                {
                                                    
Type = new byte[] { (byte)vl1, (byte)vl2 };
                                                    break;
                                                }
                                            }
                                        }
                                        if (
Count >= 3)
                                        {
                                            for (
int x 01000x++)
                                            {
                                                
vl3 = (byte)Kernel.Random.Next(114);
                                                if (
vl3 != vl1 && vl3 != vl2)
                                                {
                                                    
Type = new byte[] { (byte)vl1, (byte)vl2, (byte)vl3 };
                                                    break;
                                                }
                                            }
                                        }
                                        if (
Count >= 4)
                                        {
                                            for (
int x 01000x++)
                                            {
                                                
vl4 = (byte)Kernel.Random.Next(114);
                                                if (
vl4 != vl1 && vl4 != vl2 && vl4 != vl3)
                                                {
                                                    
Type = new byte[] { (byte)vl1, (byte)vl2, (byte)vl3, (byte)vl4 };
                                                    break;
                                                }
                                            }
                                        }
                                        if (
Count >= 5)
                                        {
                                            for (
int x 01000x++)
                                            {
                                                
vl5 = (byte)Kernel.Random.Next(114);
                                                if (
vl5 != vl1 && vl5 != vl2 && vl5 != vl3 && vl5 != vl4)
                                                {
                                                    
Type = new byte[] { (byte)vl1, (byte)vl2, (byte)vl3, (byte)vl4, (byte)vl5 };
                                                    break;
                                                }
                                            }
                                        }
                                        
uint[] TypeVl1TypeVl2TypeVl3TypeVl4TypeVl5;
                                        
uint Random1Random2Random3Random4Random5;
                                        
uint Super1 0Super2 0Super3 0Super4 0Super5 0;
                                        
uint[] Runes = new uint[5] { 0000};
                                        if (
Type.Length >= 1)
                                        {
                                            
TypeVl1 RuneItems.xuanbao_rand_attr(IDType[0]);
                                            
Random1 = (uint)Kernel.Random.Next((int)(TypeVl1[0]), (int)(TypeVl1[1]));
                                            if (
Random1 >= TypeVl1[1] - (TypeVl1[1] * 10 100))
                                                
Super1 100;
                                            
Runes[0] = Random1 1000 Super1 Type[0];
                                        }
                                        if (
Type.Length >= 2)
                                        {
                                            
TypeVl2 RuneItems.xuanbao_rand_attr(IDType[1]);
                                            
Random2 = (uint)Kernel.Random.Next((int)(TypeVl2[0]), (int)(TypeVl2[1]));
                                            if (
Random2 >= TypeVl2[1] - (TypeVl2[1] * 10 100))
                                                
Super2 100;
                                            
Runes[1] = Random2 1000 Super2 Type[1];
                                        }
                                        if (
Type.Length >= 3)
                                        {
                                            
TypeVl3 RuneItems.xuanbao_rand_attr(IDType[2]);
                                            
Random3 = (uint)Kernel.Random.Next((int)(TypeVl3[0]), (int)(TypeVl3[1]));
                                            if (
Random3 >= TypeVl3[1] - (TypeVl3[1] * 10 100))
                                                
Super3 100;
                                            
Runes[2] = Random3 1000 Super3 Type[2];
                                        }
                                        if (
Type.Length >= 4)
                                        {
                                            
TypeVl4 RuneItems.xuanbao_rand_attr(IDType[3]);
                                            
Random4 = (uint)Kernel.Random.Next((int)(TypeVl4[0]), (int)(TypeVl4[1]));
                                            if (
Random4 >= TypeVl4[1] - (TypeVl4[1] * 10 100))
                                                
Super4 100;
                                            
Runes[3] = Random4 1000 Super4 Type[3];
                                        }
                                        if (
Type.Length >= 5)
                                        {
                                            
TypeVl5 RuneItems.xuanbao_rand_attr(IDType[4]);
                                            
Random5 = (uint)Kernel.Random.Next((int)(TypeVl5[0]), (int)(TypeVl5[1]));
                                            if (
Random5 >= TypeVl5[1] - (TypeVl5[1] * 10 100))
                                                
Super5 100;
                                            
Runes[4] = Random5 1000 Super5 Type[4];
                                        }
                                        
ConquerItem itemRunes = new ConquerItem(true);
                                        
itemRunes.ID ID;
                                        
ConquerItemInformation ItemInfo = new ConquerItemInformation(ID, (byte)0);
                                        
itemRunes.Bound false;
                                        
itemRunes.Runes Runes;
                                        
itemRunes.StackSize = (ushort)1;
                                        
itemRunes.Durability ItemInfo.BaseInformation.Durability;
                                        
itemRunes.MaximDurability ItemInfo.BaseInformation.Durability;
                                        
client.Inventory.Add(itemRunesEnums.ItemUse.CreateAndAdd);
                                        break;
                                    }

                                    else
                                    {
                                        
dialog.Text("I need 10k Cps.");
                                        
dialog.Option("Ok."255);
                                        
dialog.Avatar(116);
                                        
dialog.Send();
                                    }

                                    break;
                                }
                            case 
190://epic Weapon       
                                
{
                                    if (
client.Entity.ConquerPoints >= 1)
                                    {
                                        if (
client.Inventory.Count <= 32)
                                        {
                                            
client.Entity.ConquerPoints -= 1;
                                            
client.Inventory.AddSoul(670439800810612121truefalse);//Rapier       
                                            
client.Inventory.AddSoul(671439800811612121truefalse);//Pistol     
                                        
}
                                        else
                                            
dialog.Text("please make more space in your Inventory");
                                    }
                                    else
                                        
dialog.Text("you don't have 1 Cps");
                                    break;

                                }
                        }
                        break;
                    }
                
#endregion 





Hassan Emprator 2019-10-24 12:29 AM

رد: npc يجيب Runes
 
هه ايه دا مين عمل المووضع دا مش انا هاهاهها
وربنا ما انا

محمد ياسر 2019-10-24 12:29 AM

رد: npc يجيب Runes
 
ههههههههههههههههههههههههههههههههههه

Hassan Emprator 2019-10-24 12:31 AM

رد: npc يجيب Runes
 
هههههههههههههههه هوا حد عا حسابي وله حاجه
مين نزل صوره برضو ؟

محمد ياسر 2019-10-24 12:31 AM

رد: npc يجيب Runes
 
عاش ياحسون

Hassan Emprator 2019-10-24 12:31 AM

رد: npc يجيب Runes
 
عاش اييه انا معملتش حاجه ههههههههههههه دا مش انا دا عفريت نزله دا

محمد ياسر 2019-10-24 12:32 AM

رد: npc يجيب Runes
 
محدش شاف حاجه هههه اسكت بقا

Hassan Emprator 2019-10-24 12:32 AM

رد: npc يجيب Runes
 
ههههههههههههههههههههههههههه

Hassan Emprator 2019-10-24 12:33 AM

رد: npc يجيب Runes
 
اقفل يحبيب قلبي الموضع متكرر ورب العظيم

محمد ياسر 2019-10-24 12:35 AM

رد: npc يجيب Runes
 
قول لنفسك الكلام ده قبل ماتنزل موضوع هههههه


الساعة الآن 09:52 AM

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