public static void PartyMemberInFightMessageTreatment(Message message, byte[] packetDatas, AccountUC account) { PartyMemberInFightMessage msg = (PartyMemberInFightMessage)message; using (BigEndianReader reader = new BigEndianReader(packetDatas)) { msg.Deserialize(reader); } if (msg.FightMap.MapId == account.MapData.Id && msg.MemberName == account.MyGroup.GetMaster().CharacterBaseInformations.Name) { account.Wait(500, 1500); using (BigEndianWriter writer = new BigEndianWriter()) { GameFightJoinRequestMessage msg2 = new GameFightJoinRequestMessage(msg.MemberId, msg.FightId); account.SocketManager.Send(msg2); } } }
public void HandlePartyMemberInFightMessage(Bot bot, PartyMemberInFightMessage message) { JoinFight(message, 14); }