public static void GameFightTurnStartPlayingMessageTreatment(Message message, byte[] packetDatas, AccountUC account) { GameFightTurnStartPlayingMessage msg = (GameFightTurnStartPlayingMessage)message; using (BigEndianReader reader = new BigEndianReader(packetDatas)) { msg.Deserialize(reader); } //account.Fight.PerformAutoTimeoutFight(100); if (account.Fight != null) { account.Fight.FightTurn(); } }
public static void GameFightTurnStartPlayingMessageTreatment(Message message, byte[] packetDatas, AccountUC account) { GameFightTurnStartPlayingMessage msg = (GameFightTurnStartPlayingMessage)message; using (BigEndianReader reader = new BigEndianReader(packetDatas)) { msg.Deserialize(reader); } account.FightData.TurnStarted(); if (account.Fight != null) { account.Fight.flag = 1; account.Fight.ExecutePlan(); } else { account.Log(new ErrorTextInformation("Aucune IA, le bot ne peut pas combattre !"), 0); } }
private void HandleGameFightTurnStartPlayingMessage(IAccount account, GameFightTurnStartPlayingMessage message) { TurnStarted?.Invoke(); }
private void HandleMapComplementaryInformationsDataMessage(GameFightTurnStartPlayingMessage message, ConnectedHost source) { IA.SpellsLauncher.StartFight(); }
private void GameFightTurnStartPlayingMessageHandler(DofusClient client, GameFightTurnStartPlayingMessage message) { // }