#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(723700, prof.level)) { client.inventory.remove(723700, prof.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(723700, prof.level)) { client.inventory.remove(723700, prof.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(723700, prof.level)) { client.inventory.remove(723700, prof.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(723700, prof.level)) { client.inventory.remove(723700, prof.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 == 600) proficiency++; 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
#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