public List <netty.commands.old_client.KillScreenOptionModule> GetOldOptions() { var price = CalculatePrice(1); var options = new List <netty.commands.old_client.KillScreenOptionModule>(); var optionModule = new netty.commands.old_client.KillScreenOptionModule( new netty.commands.old_client.KillScreenOptionTypeModule(netty.commands.old_client.KillScreenOptionTypeModule.BASIC_REPAIR), new netty.commands.old_client.PriceModule(price.Item1, price.Item2), true, 0, // new netty.commands.old_client.MessageLocalizedWildcardCommand("desc_killscreen_repair_for_money", new List<netty.commands.old_client.MessageWildcardReplacementModule> { // new netty.commands.old_client.MessageWildcardReplacementModule("%COUNT%", price.Item2.ToString()), // new netty.commands.old_client.MessageWildcardReplacementModule("%CURRENCY%", price.Item1 == PriceModule.URIDIUM ? "U." : "C.") // }), new netty.commands.old_client.MessageLocalizedWildcardCommand("ttip_killscreen_basic_repair", new List <netty.commands.old_client.MessageWildcardReplacementModule>()), new netty.commands.old_client.MessageLocalizedWildcardCommand("", new List <netty.commands.old_client.MessageWildcardReplacementModule>()), new netty.commands.old_client.MessageLocalizedWildcardCommand("ttip_killscreen_basic_repair", new List <netty.commands.old_client.MessageWildcardReplacementModule>()), new netty.commands.old_client.MessageLocalizedWildcardCommand("btn_killscreen_repair_for_money", new List <netty.commands.old_client.MessageWildcardReplacementModule> { new netty.commands.old_client.MessageWildcardReplacementModule("%COUNT%", price.Item2.ToString()), new netty.commands.old_client.MessageWildcardReplacementModule("%CURRENCY%", price.Item1 == PriceModule.URIDIUM ? "U." : "C.") })); options.Add(optionModule); return(options); }
public void SendRepairImpossible(GameSession gameSession, short currency) { if (gameSession.Player.UsingNewClient) { new NotImplementedException(); } else { var player = gameSession.Player; var killscreen = Killscreen.Load(player); var price = killscreen.Price; var options = new List <netty.commands.old_client.KillScreenOptionModule>(); var optionModule = new netty.commands.old_client.KillScreenOptionModule( new netty.commands.old_client.KillScreenOptionTypeModule(netty.commands.old_client.KillScreenOptionTypeModule.BASIC_REPAIR), new netty.commands.old_client.PriceModule(price.Item1, price.Item2), true, 0, new netty.commands.old_client.MessageLocalizedWildcardCommand(currency == PriceModule.URIDIUM ? "desc_killscreen_repair_impossible" : "desc_killscreen_repair_credits_impossible", new List <netty.commands.old_client.MessageWildcardReplacementModule>()), new netty.commands.old_client.MessageLocalizedWildcardCommand("", new List <netty.commands.old_client.MessageWildcardReplacementModule>()), new netty.commands.old_client.MessageLocalizedWildcardCommand("ttip_killscreen_free_phoenix", new List <netty.commands.old_client.MessageWildcardReplacementModule>()), new netty.commands.old_client.MessageLocalizedWildcardCommand(currency == PriceModule.URIDIUM ? "btn_killscreen_payment" : "btn_killscreen_get_phoenix", new List <netty.commands.old_client.MessageWildcardReplacementModule>())); options.Add(optionModule); Packet.Builder.KillScreenUpdateCommand(gameSession, options); } }