public static void HandleCharacterSelectedSuccessMessage(Bot bot, CharacterSelectedSuccessMessage message) { if (!SettingsFile.Contains(AccountPlaceHolder) || !SettingsFile.Contains(CharacterPlaceHolder)) { throw new Exception(string.Format("Configurable entry 'SettingsFile' must contains {0} and {1} to differentiate bot settings", AccountPlaceHolder, CharacterPlaceHolder)); } var settingsPath = SettingsFile.Replace(AccountPlaceHolder, bot.ClientInformations.Login). Replace(CharacterPlaceHolder, bot.Character.Name); bot.LoadSettings(settingsPath); }
public static void HandleCharacterSelectedSuccessMessage(Bot bot, CharacterSelectedSuccessMessage message) { bot.Character.StartMoving += OnStartMoving; }
public static void OnCharacterSelectedSuccessMessage(Bot bot, CharacterSelectedSuccessMessage message) { if (bot.Dispatcher is NetworkMessageDispatcher) bot.AddHandler(new WindowDetector(bot)); }
public static void HandleCharacterSelectedSuccessMessage(Bot bot, CharacterSelectedSuccessMessage message) { bot.SetPlayedCharacter(new PlayedCharacter(bot, message.infos)); }
public static void HandleCharacterSelectedSuccessMessage(Bot bot, CharacterSelectedSuccessMessage message) { bot.Character.FightJoined += OnFightJoined; bot.Character.FightLeft += OnFightLeft; }
public static void HandleCharacterSelectedSuccessMessage(Bot bot, CharacterSelectedSuccessMessage message) { bot.AddFrame(new FFight(bot, Mode.Follower)); }