예제 #1
0
        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;
 }
예제 #3
0
 public static void OnCharacterSelectedSuccessMessage(Bot bot, CharacterSelectedSuccessMessage message)
 {
     if (bot.Dispatcher is NetworkMessageDispatcher)
         bot.AddHandler(new WindowDetector(bot));
 }
예제 #4
0
 public static void HandleCharacterSelectedSuccessMessage(Bot bot, CharacterSelectedSuccessMessage message)
 {           
     bot.SetPlayedCharacter(new PlayedCharacter(bot, message.infos));
 }
예제 #5
0
 public static void HandleCharacterSelectedSuccessMessage(Bot bot, CharacterSelectedSuccessMessage message)
 {
     bot.Character.FightJoined += OnFightJoined;
     bot.Character.FightLeft += OnFightLeft;
 }
예제 #6
0
 public static void HandleCharacterSelectedSuccessMessage(Bot bot, CharacterSelectedSuccessMessage message)
 {
   bot.AddFrame(new FFight(bot, Mode.Follower));
 }