منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   مشكلات السيرفيرات كونكر الشخصيه (https://code.vpscairo.com/forumdisplay.php?f=12)
-   -   بخصوص NPC نجوم الاسلاحه + NPC format Point (https://code.vpscairo.com/showthread.php?t=1002)

uncelsam 2019-07-25 01:25 AM

بخصوص NPC نجوم الاسلاحه + NPC format Point
 
قبل اي حاجه يحازم انا عارف انك هتقول الموضوع مكرر بس اقرأ الموضوع ده للاخر للاهميه

بخصوص npcs دول موجودين بس المشكله انهم مش كاملين وناقصين حجات

ناقصين ازاي ياعني مثلا Format Point الي في المنتدي مفهوش شخصيه البروسلي والوند

تاني حاجه npc نجوم الاسلاحه مش كامل بردو لانه مفهوش اسلاحه البروسلي والوند

فعاوز npc Format Point يكون كامل شامل الشخصيات الجديده

كذالك npc نجوم الاسلاحه فيه شامل اسلاحه البروسلي والوند

و يحازم ياريت لو تسمح لو قبلك موضوع مكرر عن npc بالذات ياريت تراجعو ولو لقيت ان المكرر شامل اخر تحديث ياريت تبدلو بالقديم

لاني في npcs هنه كتير مسحوبه من سورسات قديمه قبل البروسلي وشخصيه والوند

وشكرا

Tefa 2019-07-25 02:35 AM

رد: بخصوص NPC نجوم الاسلاحه + NPC format Point
 
ان بي سي النجوم
كود PHP:

#region Proficiency Master by Messi
                
case 9411:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.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.");
                                    
dialog.Text("Now, tell me what proficiency you want to level up.");
                                    
dialog.Option("Upgrade One-handed Proficiency."1);
                                    
dialog.Option("Upgrade Two handed Proficiency."3);
                                    
dialog.Option("Upgrade Boxing/Shield Proficiency."5);
                                    
dialog.Option("Just passing by!"255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
dialog.Text("Which one handed proficiency?");
                                    
dialog.Option("Upgrade Blade Proficiency."41);
                                    
dialog.Option("Upgrade EpicWarrior Proficiency."60);
                                    
dialog.Option("Upgrade WindWalkerWeapon Proficiency."61);
                                    
dialog.Option("Upgrade NunchakuProsli Proficiency."62);
                                    
dialog.Option("Upgrade Sword Proficiency."42);
                                    
dialog.Option("Upgrade Hook Proficiency."43);
                                    
dialog.Option("Upgrade Whip Proficiency."44);
                                    
dialog.Option("Upgrade Axe Proficiency."45);
                                    
dialog.Option("Upgrade Dagger Proficiency."49);
                                    
dialog.Option("Next page."2);
                                    
dialog.Option("Nothing, sorry."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
62:
                                {
                                    if (
client.Proficiencies.ContainsKey(617))
                                    {
                                        var 
prof client.Proficiencies[617];
                                        if (
prof.Level >= 12)
                                        {
                                            
dialog.Text("This proficiency cannot be leveled up anymore.");
                                            
dialog.Option("Oh sorry."255);
                                            
dialog.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;
                                        }
                                        
dialog.Text("You don't have the requiered exp balls, I'm sorry I cannot help you.");
                                        
dialog.Option("It's alright."255);
                                        
dialog.Send();
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.Text("You don't know this proficiency.");
                                        
dialog.Option("Ahh, sorry."255);
                                        
dialog.Send();
                                        break;
                                    }
                                }
                            case 
61:
                                {
                                    if (
client.Proficiencies.ContainsKey(626))
                                    {
                                        var 
prof client.Proficiencies[626];
                                        if (
prof.Level >= 12)
                                        {
                                            
dialog.Text("This proficiency cannot be leveled up anymore.");
                                            
dialog.Option("Oh sorry."255);
                                            
dialog.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;
                                        }
                                        
dialog.Text("You don't have the requiered exp balls, I'm sorry I cannot help you.");
                                        
dialog.Option("It's alright."255);
                                        
dialog.Send();
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.Text("You don't know this proficiency.");
                                        
dialog.Option("Ahh, sorry."255);
                                        
dialog.Send();
                                        break;
                                    }
                                }
                            case 
60:
                                {
                                    if (
client.Proficiencies.ContainsKey(624))
                                    {
                                        var 
prof client.Proficiencies[624];
                                        if (
prof.Level >= 12)
                                        {
                                            
dialog.Text("This proficiency cannot be leveled up anymore.");
                                            
dialog.Option("Oh sorry."255);
                                            
dialog.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;
                                        }
                                        
dialog.Text("You don't have the requiered exp balls, I'm sorry I cannot help you.");
                                        
dialog.Option("It's alright."255);
                                        
dialog.Send();
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.Text("You don't know this proficiency.");
                                        
dialog.Option("Ahh, sorry."255);
                                        
dialog.Send();
                                        break;
                                    }
                                }
                            case 
2:
                                {
                                    
dialog.Text("Which one handed proficiency?");
                                    
dialog.Option("Upgrade PrayerBead Proficiency."61);
                                    
dialog.Option("Upgrade Hammer Proficiency."46);
                                    
dialog.Option("Upgrade Club Proficiency."48);
                                    
dialog.Option("Upgrade Scepter Proficiency."184);
                                    
dialog.Option("Upgrade Katana Proficiency."60);
                                    
dialog.Option("Upgrade Axe Proficiency."45);
                                    
dialog.Option("Back."1);
                                    
dialog.Option("Nothing, sorry."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
3:
                                {
                                    
dialog.Text("Which two handed proficiency?");
                                    
dialog.Option("Upgrade Glaive Proficiency."51);
                                    
dialog.Option("Upgrade Poleaxe Proficiency."53);
                                    
dialog.Option("Upgrade LongHammer Proficiency."54);
                                    
dialog.Option("Upgrade Spear Proficiency."56);
                                    
dialog.Option("Next page."4);
                                    
dialog.Option("Nothing, sorry."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
4:
                                {
                                    
dialog.Text("Which one handed proficiency?");
                                    
dialog.Option("Upgrade Backsword Proficiency."124);
                                    
dialog.Option("Upgrade Pickaxe Proficiency."142);
                                    
dialog.Option("Upgrade Halberd Proficiency."58);
                                    
dialog.Option("Upgrade Wand Proficiency."165);
                                    
dialog.Option("Upgrade Bow Proficiency."50);
                                    
dialog.Option("Back."3);
                                    
dialog.Option("Nothing, sorry."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
5:
                                {
                                    
dialog.Text("Which others handed proficiency?");
                                    
dialog.Option("Upgrade Boxing Proficiency."254);
                                    
dialog.Option("Upgrade Shield Proficiency."90);
                                    
dialog.Option("Nothing, sorry."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
100:
                                {
                                    if (
client.Proficiencies.ContainsKey(client.UplevelProficiency))
                                    {
                                        var 
prof client.Proficiencies[client.UplevelProficiency];
                                        if (
prof.Level >= 12)
                                        {
                                            
dialog.Text("This proficiency cannot be leveled up anymore.");
                                            
dialog.Option("Oh sorry."255);
                                            
dialog.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;
                                        }
                                        
dialog.Text("You don't have the requiered exp balls, I'm sorry I cannot help you.");
                                        
dialog.Option("It's alright."255);
                                        
dialog.Send();
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.Text("You don't know this proficiency.");
                                        
dialog.Option("Ahh, sorry."255);
                                        
dialog.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)
                                        {
                                            
dialog.Text("This proficiency cannot be leveled up anymore.");
                                            
dialog.Option("Oh."255);
                                            
dialog.Send();
                                            break;
                                        }
                                        
client.UplevelProficiency proficiency;
                                        
dialog.Text("I need " prof.Level " exp balls to be able to level up this proficiency.");
                                        
dialog.Option("Let's do it then."100);
                                        
dialog.Option("No, sorry."255);
                                        
dialog.Send();
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.Text("You don't know this proficiency.");
                                        
dialog.Option("Ahh, sorry."255);
                                        
dialog.Send();
                                        break;
                                    }
                                }
                        }
                        break;
                    }
                
#endregion 

ان بي سي رسترة البوينتات
كود PHP:

#region Npc add Points by Rider
                    
case 1370:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Hello " client.Player.Name " I will help you to add your points in the Strength , Vitality , Agility , Spirit");
                                        
dialog.Text("you have to be level 140 and 2nd Reborn and Please chose your own class and leave the rest for me");
                                        
dialog.Option("Monk"1);
                                        
dialog.Option("Ninja"2);
                                        
dialog.Option("Taoist (Water/Fire)"3);
                                        
dialog.Option("Archer"4);
                                        
dialog.Option("Wariorr"5);
                                        
dialog.Option("Trojan"6);
                                        
dialog.Option("Pirate"7);
                                        
dialog.Option("WindWallker"9);
                                        
dialog.Option("ProsLi"1);
                                        
dialog.Option("Full HP"8);
                                        
dialog.Option("Wait a minute."255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        if (
client.Player.Level == 140 && client.Player.Reborn == 2)
                                        {
                                            
client.Player.Strength 0;
                                            
client.Player.Vitality 502;
                                            
client.Player.Agility 36;
                                            
client.Player.Spirit 0;
                                            
client.Player.Atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.Text("you have to be level 140 and 2nd Reborn ");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(116);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
2:
                                    {
                                        if (
client.Player.Level == 140 && client.Player.Reborn == 2)
                                        {
                                            
client.Player.Strength 0;
                                            
client.Player.Vitality 262;
                                            
client.Player.Agility 276;
                                            
client.Player.Spirit 0;
                                            
client.Player.Atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.Text("you have to be level 140 and 2nd Reborn ");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(116);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
3:
                                    {
                                        if (
client.Player.Level == 140 && client.Player.Reborn == 2)
                                        {
                                            
client.Player.Strength 0;
                                            
client.Player.Vitality 438;
                                            
client.Player.Agility 0;
                                            
client.Player.Spirit 100;
                                            
client.Player.Atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.Text("you have to be level 140 and 2nd Reborn ");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(116);
                                            
dialog.Send();
                                        }
                                        break;
                                    }

                                case 
4:
                                    {
                                        if (
client.Player.Level == 140 && client.Player.Reborn == 2)
                                        {
                                            
client.Player.Strength 74;
                                            
client.Player.Vitality 208;
                                            
client.Player.Agility 256;
                                            
client.Player.Spirit 0;
                                            
client.Player.Atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.Text("you have to be level 140 and 2nd Reborn ");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(116);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
5:
                                    {
                                        if (
client.Player.Level == 140 && client.Player.Reborn == 2)
                                        {
                                            
client.Player.Strength 176;
                                            
client.Player.Vitality 362;
                                            
client.Player.Agility 0;
                                            
client.Player.Spirit 0;
                                            
client.Player.Atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.Text("you have to be level 140 and 2nd Reborn ");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(116);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
6:
                                    {
                                        if (
client.Player.Level == 140 && client.Player.Reborn == 2)
                                        {
                                            
client.Player.Strength 176;
                                            
client.Player.Vitality 362;
                                            
client.Player.Agility 0;
                                            
client.Player.Spirit 0;
                                            
client.Player.Atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.Text("you have to be level 140 and 2nd Reborn ");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(116);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
7:
                                    {
                                        if (
client.Player.Level == 140 && client.Player.Reborn == 2)
                                        {
                                            
client.Player.Strength 0;
                                            
client.Player.Vitality 502;
                                            
client.Player.Agility 36;
                                            
client.Player.Spirit 0;
                                            
client.Player.Atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.Text("you have to be level 140 and 2nd Reborn ");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(116);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
8:
                                    {
                                        if (
client.Player.Level == 140 && client.Player.Reborn == 2)
                                        {
                                            
client.Player.Strength 0;
                                            
client.Player.Vitality 538;
                                            
client.Player.Agility 0;
                                            
client.Player.Spirit 0;
                                            
client.Player.Atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.Text("you have to be level 140 and 2nd Reborn ");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(116);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
9:
                                    {
                                        if (
client.Player.Level == 140 && client.Player.Reborn == 2)
                                        {
                                            
client.Player.Strength 0;
                                            
client.Player.Vitality 502;
                                            
client.Player.Agility 36;
                                            
client.Player.Spirit 0;
                                            
client.Player.Atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.Text("you have to be level 140 and 2nd Reborn ");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(116);
                                            
dialog.Send();
                                        }
                                        break;

                                    }
                            }
                            break;
                        }
                    
#endregion Npc Format Points 


uncelsam 2019-07-25 04:45 AM

رد: بخصوص NPC نجوم الاسلاحه + NPC format Point
 
اقتباس:

المشاركة الأصلية كتبت بواسطة rider (المشاركة 6903)
ان بي سي النجوم
كود PHP:

#region proficiency master by messi
                
case 9411:
                    {
                        switch (
npcrequest.optionid)
                        {
                            case 
0:
                                {
                                    
dialog.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.");
                                    
dialog.text("now, tell me what proficiency you want to level up.");
                                    
dialog.option("upgrade one-handed proficiency."1);
                                    
dialog.option("upgrade two handed proficiency."3);
                                    
dialog.option("upgrade boxing/shield proficiency."5);
                                    
dialog.option("just passing by!"255);
                                    
dialog.send();
                                    break;
                                }
                            case 
1:
                                {
                                    
dialog.text("which one handed proficiency?");
                                    
dialog.option("upgrade blade proficiency."41);
                                    
dialog.option("upgrade epicwarrior proficiency."60);
                                    
dialog.option("upgrade windwalkerweapon proficiency."61);
                                    
dialog.option("upgrade nunchakuprosli proficiency."62);
                                    
dialog.option("upgrade sword proficiency."42);
                                    
dialog.option("upgrade hook proficiency."43);
                                    
dialog.option("upgrade whip proficiency."44);
                                    
dialog.option("upgrade axe proficiency."45);
                                    
dialog.option("upgrade dagger proficiency."49);
                                    
dialog.option("next page."2);
                                    
dialog.option("nothing, sorry."255);
                                    
dialog.send();
                                    break;
                                }
                            case 
62:
                                {
                                    if (
client.proficiencies.containskey(617))
                                    {
                                        var 
prof client.proficiencies[617];
                                        if (
prof.level >= 12)
                                        {
                                            
dialog.text("this proficiency cannot be leveled up anymore.");
                                            
dialog.option("oh sorry."255);
                                            
dialog.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;
                                        }
                                        
dialog.text("you don't have the requiered exp balls, i'm sorry i cannot help you.");
                                        
dialog.option("it's alright."255);
                                        
dialog.send();
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.text("you don't know this proficiency.");
                                        
dialog.option("ahh, sorry."255);
                                        
dialog.send();
                                        break;
                                    }
                                }
                            case 
61:
                                {
                                    if (
client.proficiencies.containskey(626))
                                    {
                                        var 
prof client.proficiencies[626];
                                        if (
prof.level >= 12)
                                        {
                                            
dialog.text("this proficiency cannot be leveled up anymore.");
                                            
dialog.option("oh sorry."255);
                                            
dialog.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;
                                        }
                                        
dialog.text("you don't have the requiered exp balls, i'm sorry i cannot help you.");
                                        
dialog.option("it's alright."255);
                                        
dialog.send();
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.text("you don't know this proficiency.");
                                        
dialog.option("ahh, sorry."255);
                                        
dialog.send();
                                        break;
                                    }
                                }
                            case 
60:
                                {
                                    if (
client.proficiencies.containskey(624))
                                    {
                                        var 
prof client.proficiencies[624];
                                        if (
prof.level >= 12)
                                        {
                                            
dialog.text("this proficiency cannot be leveled up anymore.");
                                            
dialog.option("oh sorry."255);
                                            
dialog.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;
                                        }
                                        
dialog.text("you don't have the requiered exp balls, i'm sorry i cannot help you.");
                                        
dialog.option("it's alright."255);
                                        
dialog.send();
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.text("you don't know this proficiency.");
                                        
dialog.option("ahh, sorry."255);
                                        
dialog.send();
                                        break;
                                    }
                                }
                            case 
2:
                                {
                                    
dialog.text("which one handed proficiency?");
                                    
dialog.option("upgrade prayerbead proficiency."61);
                                    
dialog.option("upgrade hammer proficiency."46);
                                    
dialog.option("upgrade club proficiency."48);
                                    
dialog.option("upgrade scepter proficiency."184);
                                    
dialog.option("upgrade katana proficiency."60);
                                    
dialog.option("upgrade axe proficiency."45);
                                    
dialog.option("back."1);
                                    
dialog.option("nothing, sorry."255);
                                    
dialog.send();
                                    break;
                                }
                            case 
3:
                                {
                                    
dialog.text("which two handed proficiency?");
                                    
dialog.option("upgrade glaive proficiency."51);
                                    
dialog.option("upgrade poleaxe proficiency."53);
                                    
dialog.option("upgrade longhammer proficiency."54);
                                    
dialog.option("upgrade spear proficiency."56);
                                    
dialog.option("next page."4);
                                    
dialog.option("nothing, sorry."255);
                                    
dialog.send();
                                    break;
                                }
                            case 
4:
                                {
                                    
dialog.text("which one handed proficiency?");
                                    
dialog.option("upgrade backsword proficiency."124);
                                    
dialog.option("upgrade pickaxe proficiency."142);
                                    
dialog.option("upgrade halberd proficiency."58);
                                    
dialog.option("upgrade wand proficiency."165);
                                    
dialog.option("upgrade bow proficiency."50);
                                    
dialog.option("back."3);
                                    
dialog.option("nothing, sorry."255);
                                    
dialog.send();
                                    break;
                                }
                            case 
5:
                                {
                                    
dialog.text("which others handed proficiency?");
                                    
dialog.option("upgrade boxing proficiency."254);
                                    
dialog.option("upgrade shield proficiency."90);
                                    
dialog.option("nothing, sorry."255);
                                    
dialog.send();
                                    break;
                                }
                            case 
100:
                                {
                                    if (
client.proficiencies.containskey(client.uplevelproficiency))
                                    {
                                        var 
prof client.proficiencies[client.uplevelproficiency];
                                        if (
prof.level >= 12)
                                        {
                                            
dialog.text("this proficiency cannot be leveled up anymore.");
                                            
dialog.option("oh sorry."255);
                                            
dialog.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;
                                        }
                                        
dialog.text("you don't have the requiered exp balls, i'm sorry i cannot help you.");
                                        
dialog.option("it's alright."255);
                                        
dialog.send();
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.text("you don't know this proficiency.");
                                        
dialog.option("ahh, sorry."255);
                                        
dialog.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)
                                        {
                                            
dialog.text("this proficiency cannot be leveled up anymore.");
                                            
dialog.option("oh."255);
                                            
dialog.send();
                                            break;
                                        }
                                        
client.uplevelproficiency proficiency;
                                        
dialog.text("i need " prof.level " exp balls to be able to level up this proficiency.");
                                        
dialog.option("let's do it then."100);
                                        
dialog.option("no, sorry."255);
                                        
dialog.send();
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.text("you don't know this proficiency.");
                                        
dialog.option("ahh, sorry."255);
                                        
dialog.send();
                                        break;
                                    }
                                }
                        }
                        break;
                    }
                
#endregion 

ان بي سي رسترة البوينتات
كود PHP:

#region npc add points by rider
                    
case 1370:
                        {
                            switch (
npcrequest.optionid)
                            {
                                case 
0:
                                    {
                                        
dialog.text("hello " client.player.name " i will help you to add your points in the strength , vitality , agility , spirit");
                                        
dialog.text("you have to be level 140 and 2nd reborn and please chose your own class and leave the rest for me");
                                        
dialog.option("monk"1);
                                        
dialog.option("ninja"2);
                                        
dialog.option("taoist (water/fire)"3);
                                        
dialog.option("archer"4);
                                        
dialog.option("wariorr"5);
                                        
dialog.option("trojan"6);
                                        
dialog.option("pirate"7);
                                        
dialog.option("windwallker"9);
                                        
dialog.option("prosli"1);
                                        
dialog.option("full hp"8);
                                        
dialog.option("wait a minute."255);
                                        
dialog.send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        if (
client.player.level == 140 && client.player.reborn == 2)
                                        {
                                            
client.player.strength 0;
                                            
client.player.vitality 502;
                                            
client.player.agility 36;
                                            
client.player.spirit 0;
                                            
client.player.atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.text("you have to be level 140 and 2nd reborn ");
                                            
dialog.option("i see."255);
                                            
dialog.avatar(116);
                                            
dialog.send();
                                        }
                                        break;
                                    }
                                case 
2:
                                    {
                                        if (
client.player.level == 140 && client.player.reborn == 2)
                                        {
                                            
client.player.strength 0;
                                            
client.player.vitality 262;
                                            
client.player.agility 276;
                                            
client.player.spirit 0;
                                            
client.player.atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.text("you have to be level 140 and 2nd reborn ");
                                            
dialog.option("i see."255);
                                            
dialog.avatar(116);
                                            
dialog.send();
                                        }
                                        break;
                                    }
                                case 
3:
                                    {
                                        if (
client.player.level == 140 && client.player.reborn == 2)
                                        {
                                            
client.player.strength 0;
                                            
client.player.vitality 438;
                                            
client.player.agility 0;
                                            
client.player.spirit 100;
                                            
client.player.atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.text("you have to be level 140 and 2nd reborn ");
                                            
dialog.option("i see."255);
                                            
dialog.avatar(116);
                                            
dialog.send();
                                        }
                                        break;
                                    }

                                case 
4:
                                    {
                                        if (
client.player.level == 140 && client.player.reborn == 2)
                                        {
                                            
client.player.strength 74;
                                            
client.player.vitality 208;
                                            
client.player.agility 256;
                                            
client.player.spirit 0;
                                            
client.player.atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.text("you have to be level 140 and 2nd reborn ");
                                            
dialog.option("i see."255);
                                            
dialog.avatar(116);
                                            
dialog.send();
                                        }
                                        break;
                                    }
                                case 
5:
                                    {
                                        if (
client.player.level == 140 && client.player.reborn == 2)
                                        {
                                            
client.player.strength 176;
                                            
client.player.vitality 362;
                                            
client.player.agility 0;
                                            
client.player.spirit 0;
                                            
client.player.atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.text("you have to be level 140 and 2nd reborn ");
                                            
dialog.option("i see."255);
                                            
dialog.avatar(116);
                                            
dialog.send();
                                        }
                                        break;
                                    }
                                case 
6:
                                    {
                                        if (
client.player.level == 140 && client.player.reborn == 2)
                                        {
                                            
client.player.strength 176;
                                            
client.player.vitality 362;
                                            
client.player.agility 0;
                                            
client.player.spirit 0;
                                            
client.player.atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.text("you have to be level 140 and 2nd reborn ");
                                            
dialog.option("i see."255);
                                            
dialog.avatar(116);
                                            
dialog.send();
                                        }
                                        break;
                                    }
                                case 
7:
                                    {
                                        if (
client.player.level == 140 && client.player.reborn == 2)
                                        {
                                            
client.player.strength 0;
                                            
client.player.vitality 502;
                                            
client.player.agility 36;
                                            
client.player.spirit 0;
                                            
client.player.atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.text("you have to be level 140 and 2nd reborn ");
                                            
dialog.option("i see."255);
                                            
dialog.avatar(116);
                                            
dialog.send();
                                        }
                                        break;
                                    }
                                case 
8:
                                    {
                                        if (
client.player.level == 140 && client.player.reborn == 2)
                                        {
                                            
client.player.strength 0;
                                            
client.player.vitality 538;
                                            
client.player.agility 0;
                                            
client.player.spirit 0;
                                            
client.player.atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.text("you have to be level 140 and 2nd reborn ");
                                            
dialog.option("i see."255);
                                            
dialog.avatar(116);
                                            
dialog.send();
                                        }
                                        break;
                                    }
                                case 
9:
                                    {
                                        if (
client.player.level == 140 && client.player.reborn == 2)
                                        {
                                            
client.player.strength 0;
                                            
client.player.vitality 502;
                                            
client.player.agility 36;
                                            
client.player.spirit 0;
                                            
client.player.atributes 0;
                                        }
                                        else
                                        {

                                            
dialog.text("you have to be level 140 and 2nd reborn ");
                                            
dialog.option("i see."255);
                                            
dialog.avatar(116);
                                            
dialog.send();
                                        }
                                        break;

                                    }
                            }
                            break;
                        }
                    
#endregion npc format points 


الف شكرا يا اخوياااااا

Tefa 2019-07-25 04:48 AM

رد: بخصوص NPC نجوم الاسلاحه + NPC format Point
 
حبيبي <3


الساعة الآن 11:26 AM

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