public static void SendPvpStartedResponse(Asda2PvpResponseStatus status, Character rcv, Character answerer) { using (RealmPacketOut packet = new RealmPacketOut(RealmServerOpCode.AnswerPvpRequestOrStartPvp)) { packet.WriteByte((byte)status); packet.WriteInt16(rcv.SessionId); packet.WriteInt32(rcv.AccId); packet.WriteFixedAsciiString(answerer.Name, 20, Locale.Start); packet.WriteInt16(0); packet.WriteInt16((short)answerer.Asda2X); packet.WriteInt16((short)answerer.Asda2Y); rcv.Send(packet, false); } }
public static void SendPvpStartedResponse(Asda2PvpResponseStatus status, Character rcv, Character answerer) { using (var packet = new RealmPacketOut(RealmServerOpCode.AnswerPvpRequestOrStartPvp)) //4303 { packet.WriteByte((byte)status); //{status}default value : 1 Len : 1 packet.WriteInt16(rcv.SessionId); //{rcvSessId}default value : 96 Len : 2 packet.WriteInt32(rcv.AccId); //{rcvAccId}default value : 354889 Len : 4 packet.WriteFixedAsciiString(answerer.Name, 20); //{AnswererName}default value : Len : 20 packet.WriteInt16(0); //value name : unk8 default value : 0Len : 2 packet.WriteInt16((short)answerer.Asda2X); //{x}default value : 156 Len : 2 packet.WriteInt16((short)answerer.Asda2Y); //{y}default value : 365 Len : 2 rcv.Send(packet, addEnd: false); } }