Skip to content

Commit

Permalink
UpdatePositionHandler scanner (closes #30)
Browse files Browse the repository at this point in the history
  • Loading branch information
karashiiro committed Sep 16, 2020
1 parent 7fffa19 commit c8793d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions PacketDetection/ScannerRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ private void DeclareScanners()
packet.PacketSize == 256 && BitConverter.ToUInt32(packet.Data, Offsets.IpcData + 24) == maxHp &&
BitConverter.ToUInt16(packet.Data, Offsets.IpcData + 28) == 10000); // MP equals 10000
//=================
RegisterScanner("UpdatePositionHandler", "Please move your character.",
PacketSource.Client,
(packet, _) => packet.PacketSize == 56 &&
packet.SourceActor == packet.TargetActor &&
BitConverter.ToUInt32(packet.Data, Offsets.IpcData + 4) == 0 &&
BitConverter.ToUInt64(packet.Data, Offsets.IpcData + 8) != 0 &&
BitConverter.ToUInt32(packet.Data, packet.Data.Length - 4) == 0);
//=================
RegisterScanner("ClientTrigger", "Please draw your weapon.",
PacketSource.Client,
(packet, _) =>
Expand Down

0 comments on commit c8793d1

Please sign in to comment.