public static void SendWarPointsPreInitResponse(IRealmClient client, Asda2WarPoint point) { using (RealmPacketOut packet = new RealmPacketOut(RealmServerOpCode.WarPointsPreInit)) { packet.WriteInt16(point.Id); packet.WriteInt16(point.X); packet.WriteInt16(point.Y); packet.WriteInt16(point.OwnedFaction); packet.WriteInt16((short)point.Status); packet.WriteByte(0); client.Send(packet, true); } }
public static void SendWarPointsPreInitResponse(IRealmClient client, Asda2WarPoint point) { using (var packet = new RealmPacketOut(RealmServerOpCode.WarPointsPreInit)) //6726 { packet.WriteInt16(point.Id); //{pointNum}default value : 4 Len : 2 packet.WriteInt16(point.X); //{pointX}default value : 209 Len : 2 packet.WriteInt16(point.Y); //{pointY}default value : 284 Len : 2 packet.WriteInt16(point.OwnedFaction); //{factionId}default value : 0 Len : 2 packet.WriteInt16((short)point.Status); //{notOwned0CApturing1Owned2}default value : 1 Len : 2 packet.WriteByte(0); //value name : unk1 default value : 0Len : 1 client.Send(packet, addEnd: true); } }
public static void SendUpdatePointInfoResponse(IRealmClient client, Asda2WarPoint point) { using (RealmPacketOut packet = new RealmPacketOut(RealmServerOpCode.UpdatePointInfo)) { packet.WriteInt16(point.Id); packet.WriteInt16(point.X); packet.WriteInt16(point.Y); packet.WriteInt16(point.OwnedFaction); packet.WriteInt16((short)point.Status); packet.WriteByte(0); point.BattleGround.Send(packet, true, new short?(), Locale.Any); } }