Table of Contents

Request Attack (0x05)

Moongate Packet Classes

  • RequestAttackPacket (Incoming, Fixed, length 5) from src/Moongate.Network.Packets/Incoming/Interaction/RequestAttackPacket.cs

Current Moongate Behavior

RequestAttackPacket is now wired to RequestAttackHandler -> CombatService.

Current behavior:

  • resolves the requested defender serial
  • sets CombatantId on the attacker
  • forces warmode on the attacker
  • schedules the first melee swing through ITimerService / TimerWheelService
  • sends outbound 0xAA Change Combatant to the attacker client

The actual region/map harmful-action gate is evaluated later, when the scheduled swing tries to resolve.

Packet Build

Type Field
BYTE[1] cmd
BYTE[4] ID to be attacked

Subcommand Build

N/A

Notes

N/A