منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   npc ترقيات الشخصية الجديده كامل (https://code.vpscairo.com/showthread.php?t=1394)

محمد ياسر 2019-08-06 08:51 AM

npc ترقيات الشخصية الجديده كامل
 

السلام عليكم ورحمة الله وبركاته
بالنسبة للمشكله الي واحد ذكره في سورس البروتوا الي نزلوا رايدر اني الترقيات مش شغاله بسبب npc
ده انبي سي فيه الترقيات واسطفات الشخصيه الجديده باستخدام Demoin
كان فعلا فيه مشكله في الانبي سي كان شغال لترقيات القرصان دلوقتي ظبطتهولكم وشغال تمام

npcs.cs
كود PHP:

#region ThunderGeneral
                            //Mohamed yasser
                            //code.vpscairo.com منتدي اكواد
                            
case 55588:
                                {
                                    
byte mClass 90;
                                    
byte MClass 95;
                                    
string Class = "Thunderstriker";
                                    
dialog.Avatar(9);
                                    switch (
npcRequest.OptionID)
                                    {
                                        case 
0:
                                            {

                                                if (
client.Entity.Class >= mClass && client.Entity.Class <= MClass)
                                                {
                                                    
dialog.Text("Our Thunderstriker school was founded by Saint Wan on the principle of KINDNESS and JUSTICE. Once you decide to");
                                                    
dialog.Option("Promote me."1);
                                                     
dialog.Option("Learn skills."2);
                                                    
dialog.Option("Learn Epic skills."150);
                                                    
dialog.Option("Learn Pure Skill"80);
                                                    
dialog.Option("Thunder Stuff +12"49);
                                                    
dialog.Option("Just passing by."255);
                                                    
dialog.Send();
                                                }
                                                else
                                                {
                                                    
dialog.Text("Sorry, you`re not Thunderstriker. Go find your origin.");
                                                    
dialog.Option("Okay."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
49://Thunderstriker       
                                            
{
                                                if (
client.Entity.Domino 1500000)
                                                {
                                                    
dialog.Text("Sorry But You Don't Have 1500000 Domino ");
                                                    
dialog.Option("I'll think about it!"255);
                                                    
dialog.Send();
                                                    return;
                                                }
                                                
client.Entity.Domino -= 1500000;



                                                
client.Inventory.AddSoul(681439800111612121truefalse);//EpicRapier       
                                                
client.Inventory.AddSoul(680439800111612121truefalse);//EpicPistol                                                      
                                                
client.Inventory.AddSoul(102200822071612121truefalse);//ArmorPirate       
                                                
client.Inventory.AddSoul(146309820073612121truefalse);//CapPirate       
                                                
client.Inventory.AddSoul(120269821033612121truefalse);//Necklace       
                                                
client.Inventory.AddSoul(150269823058612121truefalse);//Ring       
                                                
client.Inventory.AddSoul(160249824018612121truefalse);//Boot       
                                                
client.Entity.Teleport(1002410354);
                                                
dialog.Text("thanks for this gift you have got item soul stablized forever By Falcons ");
                                                
dialog.Option("I don't care."255);
                                                
dialog.Send();
                                                break;

                                            }
                                        case 
100:
                                            {
                                                if (
client.Entity.Class >= 90 && client.Entity.Class <= 91)
                                                {
                                                    if (
client.Entity.Class == 91)
                                                    {
                                                        
dialog.Text("Do you want to become a ThunderStrike?");
                                                        
dialog.Option("Yes sir."254);
                                                        
dialog.Option("No thank you master."255);
                                                        
dialog.Send();
                                                    }
                                                    else
                                                    {

                                                        
dialog.Text("To promote now you need" client.PromoteItemNameNeed " level " client.PromoteLevelNeed ".");
                                                        
dialog.Option("Promote me sir."254);
                                                        
dialog.Send();
                                                    }
                                                }
                                                else
                                                {
                                                    
dialog.Text("I will not tell any of the " + Class + " secrets to another class, so, good bye.");
                                                    
dialog.Option("Alright."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
254:
                                            {
                                                if (
client.Entity.Class == 90)
                                                {
                                                    
client.Entity.Class++;
                                                    
client.Entity.Update(10"end_task"true);
                                                    
dialog.Text(" Congratulations ! You have been promoted.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                else if (
client.Entity.Class == 91)
                                                {
                                                    
client.Entity.Class = 92;
                                                    
client.Entity.Update(10"end_task"true);
                                                    
dialog.Text(" Congratulations ! You have been promoted.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                else
                                                {
                                                    
dialog.Text("I will not tell any of the " + Class + " secrets to another class, so, good bye.");
                                                    
dialog.Option("Alright."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
80:
                                            {
                                                if (
client.Entity.Class >= mClass && client.Entity.FirstRebornClass >= 92 && client.Entity.FirstRebornClass <= 95 && client.Entity.SecondRebornClass >= 92 && client.Entity.SecondRebornClass <= 95)
                                                {
                                                    if (!
client.AddSpell(LearnableSpell(12520)))
                                                    {
                                                        
dialog.Text("You already know this skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                    
dialog.Text("You have learned ScurvyBomb.");
                                                    
dialog.Option("Thank you."255);
                                                    
dialog.Send();
                                                    
client.AddSpell(LearnableSpell(12520));
                                                }
                                                else
                                                {
                                                    
dialog.Text("You are not allowed, I think your not promoted yet or your not pure Walter.");
                                                    
dialog.Option("Thank you."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
1:
                                            {
                                                if (
client.Entity.Class >= mClass && client.Entity.Class <= MClass)
                                                {
                                                    if (
client.Entity.Class == MClass)
                                                    {
                                                        
dialog.Text("You cannot be promoted anymore. You have mastered your class.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Send();
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("To promote now you need" client.PromoteItemNameNeed " level " client.PromoteLevelNeed ".");
                                                        
dialog.Option("Promote me sir."3);
                                                        
dialog.Send();
                                                    }
                                                }
                                                else
                                                {
                                                    
dialog.Text("I will not tell any of the " + Class + " secrets to another class, so, good bye.");
                                                    
dialog.Option("Alright."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
3:
                                            {
                                                if (
client.Entity.Class >= mClass && client.Entity.Class <= MClass)
                                                {
                                                    if (
client.Entity.Class == MClass)
                                                    {
                                                        
dialog.Text("You cannot be promoted anymore. You have mastered your class.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Send();
                                                    }
                                                    else
                                                    {
                                                        if (
client.PromoteItemNeed == 721020)
                                                        {
                                                            if (
client.Inventory.Remove("moonbox"))
                                                            {
                                                                
client.Inventory.Add(client.PromoteItemGain01);
                                                                
client.Entity.Class++;
                                                                
client.Entity.Update(10"end_task"true);
                                                                
dialog.Text(" Congratulations ! You have been promoted.");
                                                                
dialog.Option("Thank you master."255);
                                                                
dialog.Send();
                                                            }

                                                            else
                                                            {
                                                                
dialog.Text("You don't meet the requierments.");
                                                                
dialog.Option("Ahh."255);
                                                                
dialog.Send();
                                                            }
                                                            return;
                                                        }
                                                        if (
client.Inventory.Contains(client.PromoteItemNeedclient.PromoteItemCountNeed) && client.Entity.Level >= client.PromoteLevelNeed)
                                                        {
                                                            
client.Inventory.Remove(client.PromoteItemNeedclient.PromoteItemCountNeed);
                                                            
client.Inventory.Add(client.PromoteItemGain01);
                                                            
client.Entity.Class++;
                                                            
client.Entity.Update(10"end_task"true);
                                                            
dialog.Text(" Congratulations ! You have been promoted.");
                                                            
dialog.Option("Thank you master."255);
                                                            
dialog.Send();
                                                        }
                                                        else
                                                        {
                                                            
dialog.Text("You don't meet the requierments.");
                                                            
dialog.Option("Ahh."255);
                                                            
dialog.Send();
                                                        }
                                                    }
                                                }
                                                else
                                                {
                                                    
dialog.Text("I will not tell any of the " + Class + " secrets to another class, so, good bye.");
                                                    
dialog.Option("Alright."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
150:
                                            {
                                                if (
client.Entity.Class >= mClass && client.Entity.Class <= MClass)
                                                {
                                                    
dialog.Text("Let me know what you want to learn.");
                                                    
dialog.Option("Bloomofvps"190);
                                                    
dialog.Option("BloomofDeath (Lvl 40)."200);
                                                    
dialog.Option("BloomofDeath (Lvl 40)."160);
                                                    
dialog.Option("BloomofDeath (Lvl 40)."170);
                                                    
dialog.Option("BloomofDeath (Lvl 40)."180);
                                                    
dialog.Option("BloomofDeath (Lvl 7)."210);
                                                    
dialog.Option("BloomofDeath (Lvl 6)."220);
                                                    
dialog.Option("BloomofDeath (Lvl 4)."250);



                                                    
dialog.Send();
                                                }
                                                else
                                                {
                                                    
dialog.Text("I will not tell any of the " + Class + " secrets to another class, so, good bye.");
                                                    
dialog.Option("Alright."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
160:
                                            {

                                                if (!
client.AddSpell(LearnableSpell(15700)))
                                                {
                                                    
dialog.Text("You already know this skill.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                
dialog.Text("You have learned BladeTempest skill.");
                                                
dialog.Option("Thank you master."255);
                                                
dialog.Send();
                                                
client.AddSpell(LearnableSpell(15700));
                                                break;
                                            }
                                        case 
170:
                                            {
                                                if (
client.Entity.Level >= 40)
                                                {
                                                    if (!
client.AddSpell(LearnableSpell(15710)))
                                                    {
                                                        
dialog.Text("You already know this skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Avatar(87);
                                                        
dialog.Send();
                                                    }
                                                    
dialog.Text("You have learned BladeTempest skill.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                    
client.AddSpell(LearnableSpell(15710));
                                                }
                                                else
                                                {
                                                    
dialog.Text("You aren't level 40.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
180:
                                            {
                                                if (
client.Entity.Level >= 40)
                                                {
                                                    if (!
client.AddSpell(LearnableSpell(15720)))
                                                    {
                                                        
dialog.Text("You already know this skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Avatar(87);
                                                        
dialog.Send();
                                                    }
                                                    
dialog.Text("You have learned BladeTempest skill.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                    
client.AddSpell(LearnableSpell(15720));
                                                }
                                                else
                                                {
                                                    
dialog.Text("You aren't level 40.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }




                                        case 
190:
                                            {
                                                if (
client.Entity.Level >= 50)
                                                {
                                                    if (!
client.AddSpell(LearnableSpell(15750)))
                                                    {
                                                        
dialog.Text("You already know this skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Avatar(87);
                                                        
dialog.Send();
                                                    }
                                                    
dialog.Text("You have learned BladeTempest skill.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                    
client.AddSpell(LearnableSpell(15750));
                                                }
                                                else
                                                {
                                                    
dialog.Text("You aren't level 40.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }


                                        case 
200:
                                            {
                                                if (
client.Entity.Level >= 40)
                                                {
                                                    if (!
client.AddSpell(LearnableSpell(15770)))
                                                    {
                                                        
dialog.Text("You already know this skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Avatar(87);
                                                        
dialog.Send();
                                                    }
                                                    
dialog.Text("You have learned BladeTempest skill.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                    
client.AddSpell(LearnableSpell(15770));
                                                }
                                                else
                                                {
                                                    
dialog.Text("You aren't level 40.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }

                                        case 
210:
                                            {
                                                if (
client.Entity.Level >= 40)
                                                {
                                                    if (!
client.AddSpell(LearnableSpell(15800)))
                                                    {
                                                        
dialog.Text("You already know this skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Avatar(87);
                                                        
dialog.Send();
                                                    }
                                                    
dialog.Text("You have learned BladeTempest skill.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                    
client.AddSpell(LearnableSpell(15800));
                                                }
                                                else
                                                {
                                                    
dialog.Text("You aren't level 40.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }

                                        case 
220:
                                            {
                                                if (
client.Entity.Level >= 40)
                                                {
                                                    if (!
client.AddSpell(LearnableSpell(15810)))
                                                    {
                                                        
dialog.Text("You already know this skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Avatar(87);
                                                        
dialog.Send();
                                                    }
                                                    
dialog.Text("You have learned BladeTempest skill.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                    
client.AddSpell(LearnableSpell(15810));
                                                }
                                                else
                                                {
                                                    
dialog.Text("You aren't level 40.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }

                                        case 
230:
                                            {
                                                if (
client.Entity.Level >= 40)
                                                {
                                                    if (!
client.AddSpell(LearnableSpell(15820)))
                                                    {
                                                        
dialog.Text("You already know this skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Avatar(87);
                                                        
dialog.Send();
                                                    }
                                                    
dialog.Text("You have learned BladeTempest skill.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                    
client.AddSpell(LearnableSpell(15820));
                                                }
                                                else
                                                {
                                                    
dialog.Text("You aren't level 40.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }

                                        case 
240:
                                            {
                                                if (
client.Entity.Level >= 40)
                                                {
                                                    if (!
client.AddSpell(LearnableSpell(40114)))
                                                    {
                                                        
dialog.Text("You already know this skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Avatar(87);
                                                        
dialog.Send();
                                                    }
                                                    
dialog.Text("You have learned BladeTempest skill.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                    
client.AddSpell(LearnableSpell(40114));
                                                }
                                                else
                                                {
                                                    
dialog.Text("You aren't level 40.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }

                                        case 
250:
                                            {
                                                if (
client.Entity.Level >= 40)
                                                {
                                                    if (!
client.AddSpell(LearnableSpell(40115)))
                                                    {
                                                        
dialog.Text("You already know this skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Avatar(87);
                                                        
dialog.Send();
                                                    }
                                                    
dialog.Text("You have learned BladeTempest skill.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                    
client.AddSpell(LearnableSpell(40115));
                                                }
                                                else
                                                {
                                                    
dialog.Text("You aren't level 40.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }

                                        case 
241:
                                            {
                                                if (
client.Entity.Level >= 40)
                                                {
                                                    if (!
client.AddSpell(LearnableSpell(40221)))
                                                    {
                                                        
dialog.Text("You already know this skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Avatar(87);
                                                        
dialog.Send();
                                                    }
                                                    
dialog.Text("You have learned BladeTempest skill.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                    
client.AddSpell(LearnableSpell(40221));
                                                }
                                                else
                                                {
                                                    
dialog.Text("You aren't level 40.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }

                                        case 
242:
                                            {
                                                if (
client.Entity.Level >= 40)
                                                {
                                                    if (!
client.AddSpell(LearnableSpell(40222)))
                                                    {
                                                        
dialog.Text("You already know this skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Avatar(87);
                                                        
dialog.Send();
                                                    }
                                                    
dialog.Text("You have learned BladeTempest skill.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                    
client.AddSpell(LearnableSpell(40222));
                                                }
                                                else
                                                {
                                                    
dialog.Text("You aren't level 40.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }

                                        case 
243:
                                            {
                                                if (
client.Entity.Level >= 40)
                                                {
                                                    if (!
client.AddSpell(LearnableSpell(15780)))
                                                    {
                                                        
dialog.Text("You already know this skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Avatar(87);
                                                        
dialog.Send();
                                                    }
                                                    
dialog.Text("You have learned BladeTempest skill.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                    
client.AddSpell(LearnableSpell(15780));
                                                }
                                                else
                                                {
                                                    
dialog.Text("You aren't level 40.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }


























                                        case 
2:
                                            {
                                                if (
client.Entity.Class >= mClass && client.Entity.Class <= MClass)
                                                {
                                                    
dialog.Text("Let me know what you want to learn.");
                                                    
dialog.Option("Windstorm. (Lvl 15)."15);
                                                    
dialog.Option("CannonBarrage (Lvl 15)."7);
                                                    
dialog.Option("Eagle Eye (Lvl 15)."5);
                                                    
dialog.Option("GaleBomb. (Lvl 25)."9);
                                                    
dialog.Option("Adrenaline Rush. (Lvl 40)."8);
                                                    
dialog.Option("Blackbeard`sRage. (Lvl 40)."19);
                                                    
dialog.Option("Next."20);
                                                    
dialog.Send();
                                                }
                                                else
                                                {
                                                    
dialog.Text("I will not tell any of the " + Class + " secrets to another class, so, good bye.");
                                                    
dialog.Option("Alright."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
19:
                                            {

                                                if (!
client.AddSpell(LearnableSpell(11060)))
                                                {
                                                    
dialog.Text("You already know this skill.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                
dialog.Text("You have learned BladeTempest skill.");
                                                
dialog.Option("Thank you master."255);
                                                
dialog.Send();
                                                
client.AddSpell(LearnableSpell(11060));
                                                break;
                                            }
                                        case 
21:
                                            {
                                                if (
client.Entity.Level >= 40)
                                                {
                                                    if (!
client.AddSpell(LearnableSpell(11110)))
                                                    {
                                                        
dialog.Text("You already know this skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Avatar(87);
                                                        
dialog.Send();
                                                    }
                                                    
dialog.Text("You have learned BladeTempest skill.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                    
client.AddSpell(LearnableSpell(11110));
                                                }
                                                else
                                                {
                                                    
dialog.Text("You aren't level 40.");
                                                    
dialog.Option("Thank you master."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
20:
                                            {
                                                if (
client.Entity.Class >= mClass && client.Entity.Class <= MClass)
                                                {
                                                    
dialog.Text("Let me know what you want to learn.");
                                                    
dialog.Option("BlackSpot. (Lvl 40)."11);
                                                    
dialog.Option("BladeTempest. (Lvl 40)."21);
                                                    
dialog.Option("Kraken`sRevenge. (Lvl 70)."10);
                                                    
dialog.Option("Back."2);
                                                    
dialog.Send();
                                                }
                                                else
                                                {
                                                    
dialog.Text("I will not tell any of the " + Class + " secrets to another class, so, good bye.");
                                                    
dialog.Option("Alright."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
5:
                                            {
                                                if (
client.Entity.Class >= mClass && client.Entity.Class <= MClass)
                                                {
                                                    if (
client.Entity.Level >= 1)
                                                    {
                                                        if (!
client.AddSpell(LearnableSpell(11030)))
                                                        {
                                                            
dialog.Text("You already know this skill.");
                                                            
dialog.Option("Thank you master."255);
                                                            
dialog.Send();
                                                            break;
                                                        }
                                                        
dialog.Text("You have learned Eagle Eye skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Send();
                                                        
client.AddSpell(LearnableSpell(11030));
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("You need to be level 1 or more.");
                                                        
dialog.Option("Alright."255);
                                                        
dialog.Send();
                                                    }
                                                }
                                                else
                                                {
                                                    
dialog.Text("I will not tell any of the " + Class + " secrets to another class, so, good bye.");
                                                    
dialog.Option("Alright."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
7:
                                            {
                                                if (
client.Entity.Class >= mClass && client.Entity.Class <= MClass)
                                                {
                                                    if (
client.Entity.Level >= 1)
                                                    {
                                                        if (!
client.AddSpell(LearnableSpell(11050)))
                                                        {
                                                            
dialog.Text("You already know this skill.");
                                                            
dialog.Option("Thank you master."255);
                                                            
dialog.Send();
                                                            break;
                                                        }
                                                        
dialog.Text("You have learned the lightning xp skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Send();
                                                        
client.AddSpell(LearnableSpell(11050));
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("You need to be level 1 or more.");
                                                        
dialog.Option("Alright."255);
                                                        
dialog.Send();
                                                    }
                                                }
                                                else
                                                {
                                                    
dialog.Text("I will not tell any of the " + Class + " secrets to another class, so, good bye.");
                                                    
dialog.Option("Alright."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
8:
                                            {
                                                if (
client.Entity.Class >= mClass && client.Entity.Class <= MClass)
                                                {
                                                    if (
client.Entity.Level >= 40)
                                                    {
                                                        if (!
client.AddSpell(LearnableSpell(11130)))
                                                        {
                                                            
dialog.Text("You already know this skill.");
                                                            
dialog.Option("Thank you master."255);
                                                            
dialog.Send();
                                                            break;
                                                        }
                                                        
dialog.Text("You have learned the AdrenalineRush skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Send();
                                                        
client.AddSpell(LearnableSpell(11130));
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("You need to be level 40 or more.");
                                                        
dialog.Option("Alright."255);
                                                        
dialog.Send();
                                                    }
                                                }
                                                else
                                                {
                                                    
dialog.Text("I will not tell any of the " + Class + " secrets to another class, so, good bye.");
                                                    
dialog.Option("Alright."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
9:
                                            {
                                                if (
client.Entity.Class >= mClass && client.Entity.Class <= MClass)
                                                {
                                                    if (
client.Entity.Level >= 40)
                                                    {
                                                        if (!
client.AddSpell(LearnableSpell(11070)))
                                                        {
                                                            
dialog.Text("You already know this skill.");
                                                            
dialog.Option("Thank you master."255);
                                                            
dialog.Send();
                                                            break;
                                                        }
                                                        
dialog.Text("You have learned the Gale Bomb skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Send();
                                                        
client.AddSpell(LearnableSpell(11070));
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("You need to be level 40 or more.");
                                                        
dialog.Option("Alright."255);
                                                        
dialog.Send();
                                                    }
                                                }
                                                else
                                                {
                                                    
dialog.Text("I will not tell any of the " + Class + " secrets to another class, so, good bye.");
                                                    
dialog.Option("Alright."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
10:
                                            {
                                                if (
client.Entity.Class >= mClass && client.Entity.Class <= MClass)
                                                {
                                                    if (
client.Entity.Level >= 90)
                                                    {
                                                        if (!
client.AddSpell(LearnableSpell(11100)))
                                                        {
                                                            if (
client.Entity.Reborn >= && client.Entity.FirstRebornClass == 95)
                                                            {
                                                                
dialog.Text("You already know this skill.");
                                                                
dialog.Option("Thank you master."255);
                                                                
dialog.Send();
                                                                break;
                                                            }
                                                            
dialog.Text("You are not reborn or first reborn not Pirate.");
                                                            
dialog.Option("Thank you master."255);
                                                            
dialog.Send();
                                                            
client.AddSpell(LearnableSpell(11100));
                                                        }
                                                        
//else
                                                        //{
                                                        //    dialog.Text("You have learned the Kraken`sRevenge skill.");
                                                        //    dialog.Option("Thank you master.", 255);
                                                        //    dialog.Send();
                                                        //}
                                                    
}
                                                    else
                                                    {
                                                        
dialog.Text("You need to be level 70 or more.");
                                                        
dialog.Option("Alright."255);
                                                        
dialog.Send();
                                                    }
                                                }
                                                else
                                                {
                                                    
dialog.Text("I will not tell any of the " + Class + " secrets to another class, so, good bye.");
                                                    
dialog.Option("Alright."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
11:
                                            {
                                                if (
client.Entity.Class >= mClass && client.Entity.Class <= MClass)
                                                {
                                                    if (
client.Entity.Level >= 40)
                                                    {
                                                        if (!
client.AddSpell(LearnableSpell(11120)))
                                                        {
                                                            
dialog.Text("You already know this skill.");
                                                            
dialog.Option("Thank you master."255);
                                                            
dialog.Send();
                                                            break;
                                                        }
                                                        
dialog.Text("You have learned the BlackSpot skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Send();
                                                        
client.AddSpell(LearnableSpell(11120));
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("You need to be level 40 or more.");
                                                        
dialog.Option("Alright."255);
                                                        
dialog.Send();
                                                    }
                                                }
                                                else
                                                {
                                                    
dialog.Text("I will not tell any of the " + Class + " secrets to another class, so, good bye.");
                                                    
dialog.Option("Alright."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
15:
                                            {
                                                if (
client.Entity.Class >= mClass && client.Entity.Class <= MClass)
                                                {
                                                    if (
client.Entity.Level >= 15)
                                                    {
                                                        if (!
client.AddSpell(LearnableSpell(11140)))
                                                        {
                                                            
dialog.Text("You already know this skill.");
                                                            
dialog.Option("Thank you master."255);
                                                            
dialog.Send();
                                                            break;
                                                        }
                                                        
dialog.Text("You have learned the WindStorm skill.");
                                                        
dialog.Option("Thank you master."255);
                                                        
dialog.Send();
                                                        
client.AddSpell(LearnableSpell(11140));
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("You need to be level 70 or more.");
                                                        
dialog.Option("Alright."255);
                                                        
dialog.Send();
                                                    }
                                                }
                                                else
                                                {
                                                    
dialog.Text("I will not tell any of the " + Class + " secrets to another class, so, good bye.");
                                                    
dialog.Option("Alright."255);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                    }
                                    break;
                                }
                            
#endregion 


AhmedGoda 2019-08-18 07:07 PM

رد: npc ترقيات الشخصية الجديده كامل
 
طب في الاستنساخ مش موجود الشخصيه الجديده اخر حاجه موجوده الويند واكر اي الحل

محمد ياسر 2019-08-18 07:42 PM

رد: npc ترقيات الشخصية الجديده كامل
 
اقتباس:

المشاركة الأصلية كتبت بواسطة ahmedgoda (المشاركة 12053)
طب في الاستنساخ مش موجود الشخصيه الجديده اخر حاجه موجوده الويند واكر اي الحل

اشتغل بسورس رايزو التجريبي 2 الي نزلوا رايدر

LyokaWarior 2019-08-18 08:20 PM

رد: npc ترقيات الشخصية الجديده كامل
 
عــااش ..


الساعة الآن 04:11 PM

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