منتدي اكواد

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

محمد ياسر 2019-08-06 08:35 AM

Npc للموتوسكل والعربيه
 

السلام عليكم ورحمة الله وبركاته
بالنسبة لناس الي عنده مونت الموتوسكل ومونت العربية والثعبان وهكذا ..
ده انبي سي ليهم بدل ماتحير نفسك في الشوب
كود PHP:

#region Npc Moto And Car
                
case 2020800:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there Would you like to Buy New Mount MoTOSikl And Car ?");
                                    
//dialog.Option("Dragon Killer(mounte) saint 5k cps ", 1);
                                  //  dialog.Option("The Daarknees(Gerament)Saint 5k cps", 2);
                                   // dialog.Option("Dragon Killer(mounte) Normal 3 kcps", 3);
                                   // dialog.Option("The Daarknees(Gerament)Normal 3 kcps", 4);
                                    
dialog.Option("MotoSikL 60k Cps"5);
                                    
dialog.Option("Race Car 60k Cps"6);
                                    
dialog.Option("No.Thanks"250);
                                    
dialog.Avatar(80);
                                    
dialog.Send();
                                    break;

                                }

                            case 
1:
                                {
                                    if (
client.Inventory.Count 39)
                                    {
                                        if (
client.Entity.ConquerPoints >= 5000)
                                        {
                                            
client.Send(new Message("Congraulations You Have Got The New Garment"System.Drawing.Color.WhiteMessage.Center));
                                            
client.Entity.ConquerPoints -= 5000;
                                            
client.Inventory.Add(20053101);

                                        }
                                        else
                                        {
                                            
dialog.Text("Hey Man You Dont Have 5000 CPs ");
                                            
dialog.Option("Oh,Sorry"255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.Text("You Have To Make Free Rooms In You Item");
                                        
dialog.Option("Oh,Ok"255);
                                        
dialog.Send();
                                        break;
                                    }
                                }
                            case 
2:
                                {
                                    if (
client.Inventory.Count 39)
                                    {
                                        if (
client.Entity.ConquerPoints >= 5000)
                                        {
                                            
client.Send(new Message("Congraulations You Have Got The New Garment"System.Drawing.Color.WhiteMessage.Center));
                                            
client.Entity.ConquerPoints -= 5000;
                                            
client.Inventory.Add(18906501);

                                        }
                                        else
                                        {
                                            
dialog.Text("Hey Man You Dont Have 5000 CPs ");
                                            
dialog.Option("Oh,Sorry"255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.Text("You Have To Make Free Rooms In You Item");
                                        
dialog.Option("Oh,Ok"255);
                                        
dialog.Send();
                                        break;
                                    }
                                }
                            case 
3:
                                {
                                    if (
client.Inventory.Count 39)
                                    {
                                        if (
client.Entity.ConquerPoints >= 3000)
                                        {
                                            
client.Send(new Message("Congraulations You Have Got The New Garment"System.Drawing.Color.WhiteMessage.Center));
                                            
client.Entity.ConquerPoints -= 3000;
                                            
client.Inventory.Add(20052801);

                                        }
                                        else
                                        {
                                            
dialog.Text("Hey Man You Dont Have 3000 CPs ");
                                            
dialog.Option("Oh,Sorry"255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.Text("You Have To Make Free Rooms In You Item");
                                        
dialog.Option("Oh,Ok"255);
                                        
dialog.Send();
                                        break;
                                    }
                                }
                            case 
4:
                                {
                                    if (
client.Inventory.Count 39)
                                    {
                                        if (
client.Entity.ConquerPoints >= 3000)
                                        {
                                            
client.Send(new Message("Congraulations You Have Got The New Garment"System.Drawing.Color.WhiteMessage.Center));
                                            
client.Entity.ConquerPoints -= 3000;
                                            
client.Inventory.Add(18904501);

                                        }
                                        else
                                        {
                                            
dialog.Text("Hey Man You Dont Have 3000 CPs ");
                                            
dialog.Option("Oh,Sorry"255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.Text("You Have To Make Free Rooms In You Item");
                                        
dialog.Option("Oh,Ok"255);
                                        
dialog.Send();
                                        break;
                                    }
                                }
                            case 
5:
                                {
                                    if (
client.Inventory.Count 39)
                                    {
                                        if (
client.Entity.ConquerPoints >= 60000)
                                        {
                                            
client.Send(new Message("Congraulations You Have Got The New Garment"System.Drawing.Color.WhiteMessage.Center));
                                            
client.Entity.ConquerPoints -= 60000;
                                            
client.Inventory.Add(20053301);

                                        }
                                        else
                                        {
                                            
dialog.Text("Hey Man You Dont Have 6000 CPs ");
                                            
dialog.Option("Oh,Sorry"255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.Text("You Have To Make Free Rooms In You Item");
                                        
dialog.Option("Oh,Ok"255);
                                        
dialog.Send();
                                        break;
                                    }
                                }
                            case 
6:
                                {
                                    if (
client.Inventory.Count 39)
                                    {
                                        if (
client.Entity.ConquerPoints >= 60000)
                                        {
                                            
client.Send(new Message("Congraulations You Have Got The New Garment"System.Drawing.Color.WhiteMessage.Center));
                                            
client.Entity.ConquerPoints -= 60000;
                                            
client.Inventory.Add(20053201);

                                        }
                                        else
                                        {
                                            
dialog.Text("Hey Man You Dont Have 6000 CPs ");
                                            
dialog.Option("Oh,Sorry"255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.Text("You Have To Make Free Rooms In You Item");
                                        
dialog.Option("Oh,Ok"255);
                                        
dialog.Send();
                                        break;
                                    }
                                }


                        }
                        break;
                    }
                
#endregion 


bebo100 2019-08-06 08:44 AM

رد: Npc للموتوسكل والعربيه
 
طب والى عايز يضيفوا

محمد ياسر 2019-08-06 08:57 AM

رد: Npc للموتوسكل والعربيه
 
اقتباس:

المشاركة الأصلية كتبت بواسطة bebo100 (المشاركة 10090)
طب والى عايز يضيفوا

اتفضل
عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع

bebo100 2019-08-06 11:09 AM

رد: Npc للموتوسكل والعربيه
 
تسلم

Users 2019-08-06 11:18 AM

رد: Npc للموتوسكل والعربيه
 
عااش

LyokaWarior 2019-08-06 01:17 PM

رد: Npc للموتوسكل والعربيه
 
مـمــتــاااز.

islampepo33 2019-08-09 10:38 AM

رد: Npc للموتوسكل والعربيه
 
الف شكر

islampepo33 2019-08-09 10:39 AM

رد: Npc للموتوسكل والعربيه
 
مشكوووووووووووووور

ElSaher 2019-08-09 01:36 PM

رد: Npc للموتوسكل والعربيه
 
عاش يا حازم ربنا يخليك لينا كلنا

ViORX 2019-09-16 12:21 PM

رد: Npc للموتوسكل والعربيه
 
تسلم ايدك


الساعة الآن 12:02 PM

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