Skip to content

Commit

Permalink
UpdatePositionInstance scanner (closes #31)
Browse files Browse the repository at this point in the history
  • Loading branch information
karashiiro committed Sep 16, 2020
1 parent c8793d1 commit 6ae1b1e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion PacketDetection/ScannerRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,20 @@ private void DeclareScanners()
return allInRange;
});
//=================
RegisterScanner("CFNotify", "Please queue for \"The Vault\" as an undersized party.", // CFNotifyPop
RegisterScanner("CFNotify", "Please enter the \"The Vault\" as an undersized party.", // CFNotifyPop
PacketSource.Server,
(packet, _) => packet.PacketSize == 64 && packet.Data[Offsets.IpcData + 20] == 0x22);
//=================
RegisterScanner("UpdatePositionInstance", "Please move your character in an/the instance.",
PacketSource.Client,
(packet, _) => packet.PacketSize == 72 &&
packet.SourceActor == packet.TargetActor &&
BitConverter.ToUInt64(packet.Data, Offsets.IpcData) != 0 &&
BitConverter.ToUInt64(packet.Data, Offsets.IpcData + 0x08) != 0 &&
BitConverter.ToUInt64(packet.Data, Offsets.IpcData + 0x10) != 0 &&
BitConverter.ToUInt64(packet.Data, Offsets.IpcData + 0x18) != 0 &&
BitConverter.ToUInt32(packet.Data, packet.Data.Length - 4) == 0);
//=================
RegisterScanner("ActorSetPos", "Please find an Aetheryte and teleport to Mih Khetto's Amphitheatre.",
PacketSource.Server,
(packet, _) =>
Expand Down

0 comments on commit 6ae1b1e

Please sign in to comment.