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

الردود
2

المشاهدات
1366
 
Hassan Emprator

Hassan Emprator is on a distinguished road

    غير متواجد

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

+التقييم
0.61

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

الاقامة

نظام التشغيل

رقم العضوية
30
2019-07-08, 08:24 AM
المشاركة 1 
#1  
افتراضي انبي سي تبديل السفاجا
معانا موضوع اسمه تبديل السفاجا لما مثلا تكون انت عامل السفاجا تقع من الوحوش دا الانبي سي بقا الي يبدلك السفاجا يديك بدالها صولات بي الحظ نبدا

هتفتح كلاس Npcوي تضيف فيه دا


كود:
#region P7Sacred
                
case 9438:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("There`s a mysterious treasure sealed since the ancient times. With a Savage Bone, you can explore and have a chance to get Sacred refinery materials, rare");
                                    
dialog.Text("~weapon accessories, and even the legendary P7 Dragon Soul.");
                                    
dialog.Option("I~wanna~explore."1);
                                    
dialog.Option("Special~exploration."2);
                                    
dialog.Option("I~see."255);
                                    
dialog.Avatar(0);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
dialog.Text("The Nemesis Tyrant in the DragonIsland Sea has the Savage Bones. You can use one to explore each time.");
                                    
dialog.Option("Use~a~Savage~Bone."3);
                                    if (
client.Entity.Level >= 110)
                                    {
                                        
dialog.Option("Send~me~there."4);
                                    }
                                    
dialog.Option("I~see."255);
                                    
dialog.Avatar(0);
                                    
dialog.Send();
                                    break;
                                }
                            case 
2:
                                {
                                    
dialog.Text("If you don`t have a Savage Bone, you can also pay 10000 CPs to explore. Of course, the more you pay, the better you get.~How much would you like to pay?");
                                    
dialog.Option("10000~CPS."5);
                                    
dialog.Option("10000~CPS."6);
                                    
dialog.Option("I~see."255);
                                    
dialog.Avatar(0);
                                    
dialog.Send();
                                    break;
                                }
                            case 
3:
                                {
                                    if (
client.Inventory.Contains(30041811))
                                    {
                                        
client.Inventory.Remove(30041811);
                                        
Random randoms = new Random();
                                        
int r randoms.Next(110);
                                        if (
== 1)
                                        {
                                            
client.Inventory.Add(300425101);
                                            
client.MessageBox("You received a CarpFishPoleScrap."nullnull0);
                                        }
                                        else if (
== 2)
                                        {
                                            
client.Inventory.Add(300425201);
                                            
client.MessageBox("You received a SpecialOarScrap."nullnull0);
                                        }
                                        else if (
== 3)
                                        {
                                            
client.Inventory.Add(300425301);
                                            
client.MessageBox("You received a CucumberHammerScrap."nullnull0);
                                        }
                                        else if (
== 4)
                                        {
                                            
client.Inventory.Add(300425401);
                                            
client.MessageBox("You received a CatHammerScrap."nullnull0);
                                        }
                                        else if (
== 5)
                                        {
                                            
client.Inventory.Add(300425501);
                                            
client.MessageBox("You received a RacoonRacketScrap."nullnull0);
                                        }
                                        else if (
== 6)
                                        {
                                            
client.Inventory.Add(300425601);
                                            
client.MessageBox("You received a UltraRacketScrap."nullnull0);
                                        }
                                        else if (
== 7)
                                        {
                                            
client.Inventory.Add(300425701);
                                            
client.MessageBox("You received a AccessoryScrapPack."nullnull0);
                                        }
                                        else if (
== 8)
                                        {
                                            
client.Inventory.Add(300424801);
                                            
client.MessageBox("You received a P7 Equipment Soul Pack."nullnull0);
                                        }

                                        else if (
== 9)
                                        {
                                            
client.Inventory.Add(300424701);
                                            
client.MessageBox("You received a P7 Weapon Pack."nullnull0);
                                        }
                                        else if (
== 10)
                                        {
                                            
client.Inventory.Add(300424901);
                                            
client.MessageBox("You received a P6 SacredRefinery Pack."nullnull0);
                                        }
                                        
//client.Inventory.Add(723718, 0, 1);
                                        //client.Player.BoundCps += 250;
                                        
break;
                                    }
                                    else
                                        
dialog.Text("Sorry, You don`t have 1 Savage Bone.");
                                    
dialog.Option("My~bad."255);
                                    
dialog.Avatar(0);
                                    break;
                                }
                            case 
4:
                                {
                                    
client.Entity.Teleport(1013792410);
                                    break;
                                }
                            case 
5:
                                {
                                    
dialog.Option("Yes."7);
                                    
dialog.Option("No."255);
                                    
dialog.Avatar(0);
                                    
dialog.Send();
                                    break;
                                }
                            case 
6:
                                {
                                    
dialog.Text("Are you sure you want to use 10000 CPs to explored the P7 Sacred Treasures?");
                                    
dialog.Option("Yes."8);
                                    
dialog.Option("No."255);
                                    
dialog.Avatar(0);
                                    
dialog.Send();
                                    break;
                                }
                            case 
7:
                                {
                                    if (
client.Entity.ConquerPoints 10000)
                                    {
                                        
client.Entity.ConquerPoints -= 10000;
                                        
client.Inventory.Add(300424901);
                                        
client.MessageBox("You received a SacredRefineryPack."nullnull0);
                                        break;
                                    }
                                    else
                                        
dialog.Text("Sorry, you don`t have enough CPs.");
                                    
dialog.Option("I see."255);
                                    break;
                                }
                            case 
8:
                                {
                                    if (
client.Entity.ConquerPoints 10000)
                                    {
                                        
client.Entity.ConquerPoints -= 10000;
                                        
Random randoms = new Random();
                                        
int r randoms.Next(14);
                                        if (
== 1)
                                        {
                                            
client.Inventory.Add(300424701);
                                            
client.MessageBox("You received a P7 Weapon Soul Pack."nullnull0);
                                        }
                                        else if (
== 2)
                                        {
                                            
client.Inventory.Add(300424801);
                                            
client.MessageBox("You received a P7 Equipment Soul Pack."nullnull0);
                                        }
                                        else if (
== 3)
                                        {
                                            
client.Inventory.Add(300424801);
                                            
client.MessageBox("You received a P7 Equipment Soul Pack."nullnull0);
                                        }
                                        else if (
== 4)
                                        {
                                            
client.Inventory.Add(300424801);
                                            
client.MessageBox("You received a P7 Equipment Soul Pack."nullnull0);
                                        }
                                        break;
                                    }
                                    else
                                        
dialog.Text("Sorry, you don`t have enough CPs.");
                                    
dialog.Option("I see."255);
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion