الموضوع: Npc تغير التوكن
عرض مشاركة واحدة
احصائياتى

الردود
0

المشاهدات
882
 
محمد ياسر

محمد ياسر is on a distinguished road

    غير متواجد

المشاركات
1,940

+التقييم
0.86

تاريخ التسجيل
Apr 2019

الاقامة
https://www.facebook.com/daany

نظام التشغيل

رقم العضوية
1
2019-05-13, 02:54 AM
المشاركة 1 
#1  
افتراضي Npc تغير التوكن

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

كود:
#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