#region quickReincinarate case 85858: { switch (npcRequest.OptionID) { case 0: { dialog.Avatar((ushort)Kernel.Random.Next(1, 54000)); dialog.Text("Hello [ <tip color=0xffc501e7> Player </tip> ] ,This is Fast Reincarnation , plaease select your first reborn \n"); dialog.Text("Please select your first character"); dialog.Option("Trojan.", 15); dialog.Option("Warrior.", 25); dialog.Option("Archer.", 45); dialog.Option("WaterTaoist.", 135); dialog.Option("FireTaoist.", 145); dialog.Option("Ninja.", 55); dialog.Option("Monk.", 65); dialog.Option("Pirate.", 75); dialog.Option("Dragon-Warrior.", 85); dialog.Option("WindWalker", 165); dialog.Option("Not now ", 255); dialog.Send(); // } break; } case 15: case 25: case 45: case 135: case 145: case 55: case 65: case 75: case 85: case 165: { if (client.Inventory.Count > 40 - 15) { client.MessageBox("You need atleast 15 open spots in your items bag!"); return; } client.Player.firstchar = npcRequest.OptionID; dialog.Avatar((ushort)Kernel.Random.Next(1, 54000)); dialog.Text("<tip color=0xff00fa00 desc=char#which#you#selected#when#you#created#your#account>FirstCharacter</tip>: " + Class(client.Player.firstchar) + "\n"); dialog.Text("<tip color=0xff00fa00 desc=your#first#rebirth#character>SecondCharacter</tip>: " + Class(0) + "\n"); dialog.Text("<tip color=0xff00fa00 desc=your#second#rebirth#character#&#the#char#that#you#will#play#with>FinalCharacter</tip>: " + Class(0) + "\n"); dialog.Text("Please select your second character"); dialog.Option("Trojan.", 15 + 1); dialog.Option("Warrior.", 25 + 1); dialog.Option("Archer.", 45 + 1); dialog.Option("WaterTaoist.", 135 + 1); dialog.Option("FireTaoist.", 145 + 1); dialog.Option("Ninja.", 55 + 1); dialog.Option("Monk.", 65 + 1); dialog.Option("Pirate.", 75 + 1); dialog.Option("Dragon-Warrior.", 85 + 1); dialog.Option("WindWalker", 165 + 1); dialog.Option("Not now ", 255); dialog.Send(); break; } case 16: case 26: case 46: case 136: case 146: case 56: case 66: case 76: case 86: case 166: { if (client.Inventory.Count > 40 - 15) { client.MessageBox("You need atleast 15 open spots in your items bag!"); return; } client.Player.secondchar = npcRequest.OptionID - 1; dialog.Avatar((ushort)Kernel.Random.Next(1, 54000)); dialog.Text("<tip color=0xff00fa00 desc=char#which#you#selected#when#you#created#your#account>FirstCharacter</tip>: " + Class(client.Player.firstchar) + "\n"); dialog.Text("<tip color=0xff00fa00 desc=your#first#rebirth#character>SecondCharacter</tip>: " + Class(client.Player.secondchar) + "\n"); dialog.Text("<tip color=0xff00fa00 desc=your#second#rebirth#character#&#the#char#that#you#will#play#with>FinalCharacter</tip>: " + Class(0) + "\n"); dialog.Text("Please select your Final character"); dialog.Option("Trojan.", 15 + 2); dialog.Option("Warrior.", 25 + 2); dialog.Option("Archer.", 45 + 2); dialog.Option("WaterTaoist.", 135 + 2); dialog.Option("FireTaoist.", 145 + 2); dialog.Option("Ninja.", 55 + 2); dialog.Option("Monk.", 65 + 2); dialog.Option("Pirate.", 75 + 2); dialog.Option("Dragon-Warrior.", 85 + 2); dialog.Option("WindWalker", 165 + 2); dialog.Option("Not now ", 255); dialog.Send(); break; } case 17: case 27: case 47: case 137: case 147: case 57: case 67: case 77: case 87: case 167: { client.Player.finalchar = npcRequest.OptionID - 2; dialog.Text("<tip color=0xff00fa00 desc=char#which#you#selected#when#you#created#your#account>Your FirstCharacter is</tip>: " + Class(client.Player.firstchar) + "\n"); dialog.Text("<tip color=0xff00fa00 desc=your#first#rebirth#character>Your SecondCharacter is</tip>: " + Class(client.Player.secondchar) + "\n"); dialog.Text("<tip color=0xff00fa00 desc=your#second#rebirth#character#&#the#char#that#you#will#play#with>Your FinalCharacter is</tip>: " + Class(client.Player.finalchar) + "\n"); dialog.Text("Do you want to Reincarnate ?"); dialog.Option("Yes", 200); dialog.Option("Not yet", 255); dialog.Send(); break; } case 200: { if (client.Inventory.Count > 40 - 15) { client.MessageBox("You need atleast 15 open spots in your items bag!"); return; } client.Player.Reborn = 2; client.Player.Class = (byte)client.Player.finalchar; client.Player.FirstRebornClass = (byte)client.Player.firstchar; client.Player.SecondRebornClass = (byte)client.Player.secondchar; client.Player.Level = 140; client.Player.Agility = 36; client.Player.Vitality = 864; client.Player.Strength = 0; client.Player.Spirit = 0; client.Player.Atributes = 0; Clearspells(client); addclassSkills(client); XMeGo.RestartSpell.RestartSpellClient(client); GetProf(client); // Reincarnate(client); RunesSystem.RemoveAllRune(client); if (client.Equipment.TryGetItem(5) != null) { client.Equipment.Remove(5); } if (client.Equipment.TryGetItem(4) != null) { client.Equipment.Remove(4); } if (client.Equipment.TryGetItem(3) != null) { client.Equipment.Remove(3); } if (client.Equipment.TryGetItem(1) != null) { client.Equipment.Remove(1); } client.Disconnect(); // Database.MagicTypeOP.Reborn(client, (byte)client.Player.finalchar); // // break; } } break; } #endregion