منتدي اكواد

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

محمد ياسر 2019-05-13 02:54 AM

Npc تغير التوكن
 

السلام عليكم ورحمة الله وبركاته
انبي سي تغير التوكن الي بتاخده في حرب الجيلد وير
كود PHP:

#region Change LordTokens
                    
case 890:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Greetings! I'm a great seller, I have the most precious items in the entire ");
                                        
dialog.Text("world. What do you want to get?");
                                        
dialog.Option("GoldPrize [5 LordTokens]"1);
                                        
dialog.Option("GoldCup [4 LordTokens]"2);
                                        
dialog.Option("GoldTrophy [3 LordTokens]"3);
                                        
dialog.Option("SilverPrize [2 LordTokens]"4);
                                        
dialog.Option("BronzePrize  [1 LordTokens]"5);
                                        
dialog.Option("Just passing by."255);
                                        
dialog.Avatar(85);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        if (
client.Inventory.Contains(7234675))
                                        {

                                            
client.Inventory.Remove(7234675);
                                            
client.Inventory.Add(210007501);
                                        }
                                        else
                                        {
                                            
dialog.Text("You don't have enough 5 LordTokens !");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(85);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
2:
                                    {
                                        if (
client.Inventory.Contains(7234674))
                                        {

                                            
client.Inventory.Remove(7234674);
                                            
client.Inventory.Add(210009501);




                                        }
                                        else
                                        {
                                            
dialog.Text("You don't have enough 4 LordTokens !");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(85);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
3:
                                    {
                                        if (
client.Inventory.Contains(7234673))
                                        {

                                            
client.Inventory.Remove(7234673);
                                            
client.Inventory.Add(210008501);




                                        }
                                        else
                                        {
                                            
dialog.Text("You don't have enough 3 LordTokens !");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(85);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
4:
                                    {
                                        if (
client.Inventory.Contains(7234672))
                                        {

                                            
client.Inventory.Remove(7234672);
                                            
client.Inventory.Add(210006501);

                                        }
                                        else
                                        {
                                            
dialog.Text("You don't have enough 2 LordTokens !");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(85);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
5:
                                    {
                                        if (
client.Inventory.Contains(7234671))
                                        {

                                            
client.Inventory.Remove(7234671);
                                            
client.Inventory.Add(210005501);

                                        }
                                        else
                                        {
                                            
dialog.Text("You don't have enough 1 LordTokens !");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(85);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion 



الساعة الآن 05:28 AM

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