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

الردود
1

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

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

    غير متواجد

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

+التقييم
0.89

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

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

نظام التشغيل

رقم العضوية
1
2019-05-31, 09:36 PM
المشاركة 1 
#1  
افتراضي ان بي سي الراجل بتاع نجوم الاسلحة

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

في كلاس NPCS.CS

كود:
#region Proficiency Master by Messi 
                
case 9411
                    { 
                        switch (
npcRequest.OptionID
                        { 
                            case 
0
                                { 
                                    
dialogs.Text("Hello my friend. If you believe that, leveling your proficiency is too hard and takes too much time, I can help you. In exchange of a fixed amount of exp balls, I will agree to level up your proficiency."); 
                                    
dialogs.Text("Now, tell me what proficiency you want to level up."); 
                                    
dialogs.Option("Upgrade One-handed Proficiency."1); 
                                    
dialogs.Option("Upgrade Two handed Proficiency."3); 
                                    
dialogs.Option("Upgrade Boxing/Shield Proficiency."5); 
                                    
dialogs.Option("Just passing by!"255); 
                                    
dialogs.Send(); 
                                    break; 
                                } 
                            case 
1
                                { 
                                    
dialogs.Text("Which one handed proficiency?"); 
                                    
dialogs.Option("Upgrade Blade Proficiency."41); 
                                    
dialogs.Option("Upgrade Sword Proficiency."42); 
                                    
dialogs.Option("Upgrade Hook Proficiency."43); 
                                    
dialogs.Option("Upgrade Whip Proficiency."44); 
                                    
dialogs.Option("Upgrade Axe Proficiency."45); 
                                    
dialogs.Option("Upgrade Dagger Proficiency."49); 
                                    
dialogs.Option("Next page."2); 
                                    
dialogs.Option("Nothing, sorry."255); 
                                    
dialogs.Send(); 
                                    break; 
                                } 
                            case 
2
                                { 
                                    
dialogs.Text("Which one handed proficiency?"); 
                                    
dialogs.Option("Upgrade PrayerBead Proficiency."61); 
                                    
dialogs.Option("Upgrade Hammer Proficiency."46); 
                                    
dialogs.Option("Upgrade Club Proficiency."48); 
                                    
dialogs.Option("Upgrade Scepter Proficiency."184); 
                                    
dialogs.Option("Upgrade Katana Proficiency."60); 
                                    
dialogs.Option("Upgrade Axe Proficiency."45); 
                                    
dialogs.Option("Back."1); 
                                    
dialogs.Option("Nothing, sorry."255); 
                                    
dialogs.Send(); 
                                    break; 
                                } 
                            case 
3
                                { 
                                    
dialogs.Text("Which two handed proficiency?"); 
                                    
dialogs.Option("Upgrade Glaive Proficiency."51); 
                                    
dialogs.Option("Upgrade Poleaxe Proficiency."53); 
                                    
dialogs.Option("Upgrade LongHammer Proficiency."54); 
                                    
dialogs.Option("Upgrade Spear Proficiency."56); 
                                    
dialogs.Option("Next page."4); 
                                    
dialogs.Option("Nothing, sorry."255); 
                                    
dialogs.Send(); 
                                    break; 
                                } 
                            case 
4
                                { 
                                    
dialogs.Text("Which one handed proficiency?"); 
                                    
dialogs.Option("Upgrade Backsword Proficiency."124); 
                                    
dialogs.Option("Upgrade Pickaxe Proficiency."142); 
                                    
dialogs.Option("Upgrade Halberd Proficiency."58); 
                                    
dialogs.Option("Upgrade Wand Proficiency."165); 
                                    
dialogs.Option("Upgrade Bow Proficiency."50); 
                                    
dialogs.Option("Back."3); 
                                    
dialogs.Option("Nothing, sorry."255); 
                                    
dialogs.Send(); 
                                    break; 
                                } 
                            case 
5
                                { 
                                    
dialogs.Text("Which others handed proficiency?"); 
                                    
dialogs.Option("Upgrade Boxing Proficiency."254); 
                                    
dialogs.Option("Upgrade Shield Proficiency."90); 
                                    
dialogs.Option("Nothing, sorry."255); 
                                    
dialogs.Send(); 
                                    break; 
                                } 
                            case 
100
                                { 
                                    if (
client.Proficiencies.ContainsKey(client.UplevelProficiency)) 
                                    { 
                                        var 
prof client.Proficiencies[client.UplevelProficiency]; 
                                        if (
prof.Level >= 12
                                        { 
                                            
dialogs.Text("This proficiency cannot be leveled up anymore."); 
                                            
dialogs.Option("Oh sorry."255); 
                                            
dialogs.Send(); 
                                            break; 
                                        } 
                                        
client.UplevelProficiency 0
                                        if (
client.Inventory.Contains(723700prof.Level)) 
                                        { 
                                            
client.Inventory.Remove(723700prof.Level); 
                                            
prof.Level++; 
                                            
prof.Experience 0
                                            
prof.Send(client); 
                                            break; 
                                        } 
                                        
dialogs.Text("You don't have the requiered exp balls, I'm sorry I cannot help you."); 
                                        
dialogs.Option("It's alright."255); 
                                        
dialogs.Send(); 
                                        break; 
                                    } 
                                    else 
                                    { 
                                        
dialogs.Text("You don't know this proficiency."); 
                                        
dialogs.Option("Ahh, sorry."255); 
                                        
dialogs.Send(); 
                                        break; 
                                    } 
                                } 
                            default: 
                                { 
                                    if (
npcRequest.OptionID == 255
                                        return; 
                                    
ushort proficiency 0
                                    if (
npcRequest.OptionID 100
                                        
proficiency = (ushort)(npcRequest.OptionID 10); 
                                    else 
                                    { 
                                        if (
npcRequest.OptionID != 254
                                        { 
                                            
string off npcRequest.OptionID.ToString(); 
                                            
string reverse off[2].ToString() + off[1].ToString() + off[0].ToString(); 
                                            
proficiency ushort.Parse(reverse); 
                                        } 
                                    } 
                                    if (
proficiency == 600proficiency++; 
                                    if (
client.Proficiencies.ContainsKey(proficiency)) 
                                    { 
                                        var 
prof client.Proficiencies[proficiency]; 
                                        if (
prof.Level >= 12
                                        { 
                                            
dialogs.Text("This proficiency cannot be leveled up anymore."); 
                                            
dialogs.Option("Oh."255); 
                                            
dialogs.Send(); 
                                            break; 
                                        } 
                                        
client.UplevelProficiency proficiency
                                        
dialogs.Text("I need " prof.Level " exp balls to be able to level up this proficiency."); 
                                        
dialogs.Option("Let's do it then."100); 
                                        
dialogs.Option("No, sorry."255); 
                                        
dialogs.Send(); 
                                        break; 
                                    } 
                                    else 
                                    { 
                                        
dialogs.Text("You don't know this proficiency."); 
                                        
dialogs.Option("Ahh, sorry."255); 
                                        
dialogs.Send(); 
                                        break; 
                                    } 
                                } 
                        } 
                        break; 
                    } 
                
#endregion