عرض مشاركة واحدة
احصائياتى

الردود
3

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

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

    غير متواجد

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

+التقييم
0.85

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

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

نظام التشغيل

رقم العضوية
1
2019-07-23, 06:10 PM
المشاركة 1 
#1  
افتراضي Npc عمل ابجريد لتور والفانه والجرمينت


حط الانبي سي ده في السورس

كود:
#region New Garments by karim.slasher
                
case 802:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
                                    
dialog.Text("Hey there im the new master upgrading your Garment for " Database.rates.DamageGarment " CPS and Talismans for " Database.rates.DamageTails " Cps each Talisman, What would you want?");
                                    
dialog.Text("They will be Enchanted with 255, and blessed -7.");
                                    
dialog.Option("Garment."1);
                                    
dialog.Option("HeavenFan."2);
                                    
dialog.Option("StarTower."3);
                                    
dialog.Option("Nothing, Have a good day."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    if (
client.Entity.ConquerPoints >= Database.rates.DamageGarment)
                                    {
                                        
IConquerItem i client.Equipment.TryGetItem(ConquerItem.Garment);
                                        if (
!= null)
                                        {
                                            if (
i.Bless != 7)
                                            {
                                                
client.Entity.ConquerPoints -= Database.rates.DamageGarment;

                                                
i.Bless 7;
                                                
i.Enchant 255;
                                                
ConquerItemTable.UpdateBless(i);
                                                
ConquerItemTable.UpdateEnchant(i);

                                                
i.Send(client);
                                                
dialog.Text("Sucess your item is now -7 255 HP Check for your self.");
                                                
dialog.Option("Thanks."255);
                                            }
                                            else
                                            {
                                                
dialog.Text("your item already -7 Hp 255");
                                                
dialog.Option("Ahh sorry."255);
                                            }
                                        }
                                        else
                                        {
                                            
dialog.Text("Please Equip Your Garment First");
                                            
dialog.Option("Ahh sorry."255);
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("Please come back to me with " Database.rates.DamageGarment " Conquer Points.");
                                        
dialog.Option("Ahh sorry."255);
                                    }
                                    break;
                                }
                            case 
2:
                            case 
3:
                                {
                                    if (
client.Entity.ConquerPoints >= Database.rates.DamageTails)
                                    {
                                        
IConquerItem i client.Equipment.TryGetItem(npcRequest.OptionID == ConquerItem.Fan ConquerItem.Tower);
                                        if (
!= null)
                                        {
                                            if (
i.Bless != 7)
                                            {
                                                
client.Entity.ConquerPoints -= Database.rates.DamageTails;

                                                
i.Bless 7;
                                                
i.Enchant 255;
                                                
ConquerItemTable.UpdateBless(i);
                                                
ConquerItemTable.UpdateEnchant(i);

                                                
i.Send(client);
                                                
dialog.Text("Sucess your item is now -7 255 HP Check for your self.");
                                                
dialog.Option("Thanks."255);
                                            }
                                            else
                                            {
                                                
dialog.Text("your item already -7 Hp 255");
                                                
dialog.Option("Ahh sorry."255);
                                            }
                                        }
                                        else
                                        {
                                            
dialog.Text(npcRequest.OptionID == "Please Equip Your HeavenFan First." "Please Equip your StarTower First.");
                                            
dialog.Option("Ahh sorry."255);
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("Please come back to me with " Database.rates.DamageTails " Conquer Points.");
                                        
dialog.Option("Ahh sorry."255);
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 

وده في النفي كات

كود:
802    0    0    TalismanGarment    2    50120    -1    1002    412    400    0    0    0    0    0    0    0    0    0    0    0    0        0    0    0    0    0