Table of Contents

Allow/Refuse Attack (0xAA)

Moongate Packet Classes

  • ChangeCombatantPacket (Outgoing, Fixed, length 5) from src/Moongate.Network.Packets/Outgoing/Combat/ChangeCombatantPacket.cs

Current Moongate Behavior

Moongate emits this packet when combat target state changes.

Current behavior:

  • attacker receives defender serial when CombatService.TrySetCombatantAsync(...) succeeds
  • attacker receives Serial.Zero when combat target is cleared
  • CharacterHandler also clears the combatant when the player explicitly turns war mode off

Packet Build

Type Field
BYTE[1] cmd
BYTE[4] CharID being attacked

Subcommand Build

N/A

Notes

ID is set to 00 00 00 00 when attack is refused.