From 6ae1b1eca5850edeea97e24199eca5b12a4ada9d Mon Sep 17 00:00:00 2001 From: karashiiro <49822414+karashiiro@users.noreply.github.com> Date: Wed, 16 Sep 2020 09:57:51 -0700 Subject: [PATCH] UpdatePositionInstance scanner (closes #31) --- PacketDetection/ScannerRegistry.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/PacketDetection/ScannerRegistry.cs b/PacketDetection/ScannerRegistry.cs index cc5342d..cdd3ee5 100644 --- a/PacketDetection/ScannerRegistry.cs +++ b/PacketDetection/ScannerRegistry.cs @@ -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, _) =>