From 9b3334f7c39034bc22e1f47c5ba890cbecca0338 Mon Sep 17 00:00:00 2001
From: karashiiro <49822414+karashiiro@users.noreply.github.com>
Date: Thu, 10 Sep 2020 00:48:34 -0700
Subject: [PATCH] Add ActorFreeSpawn scanner (Closes #26)
---
FFXIVOpcodeWizard.csproj | 2 +-
PacketDetection/ScannerRegistry.cs | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/FFXIVOpcodeWizard.csproj b/FFXIVOpcodeWizard.csproj
index 3d8218e..82582bd 100644
--- a/FFXIVOpcodeWizard.csproj
+++ b/FFXIVOpcodeWizard.csproj
@@ -5,7 +5,7 @@
netcoreapp3.1
true
karashiiro
- 2.1.1
+ 2.2.0
application.ico
true
diff --git a/PacketDetection/ScannerRegistry.cs b/PacketDetection/ScannerRegistry.cs
index bf5dd9d..641fc25 100644
--- a/PacketDetection/ScannerRegistry.cs
+++ b/PacketDetection/ScannerRegistry.cs
@@ -96,7 +96,7 @@ private void DeclareScanners()
RegisterScanner("Examine", "Please examine that character's equipment.",
PacketSource.Server,
(packet, parameters) => packet.PacketSize == 1016 && IncludesBytes(packet.Data, Encoding.UTF8.GetBytes(parameters[0])),
- new[] { "Please enter a nearby character's name" });
+ new[] { "Please enter a nearby character's name:" });
//=================
const int marketBoardItemDetectionId = 17837;
RegisterScanner("MarketBoardSearchResult", "Please click \"Catalysts\" on the market board.",
@@ -149,6 +149,9 @@ private void DeclareScanners()
PacketSource.Server, (packet, parameters) =>
packet.PacketSize > 500 && BitConverter.ToUInt16(packet.Data, Offsets.IpcData + 4) ==
int.Parse(parameters[0]), new[] { "Please enter your world ID:" });
+ RegisterScanner("ActorFreeSpawn", string.Empty,
+ PacketSource.Server,
+ (packet, _) => packet.PacketSize == 40 && packet.SourceActor != packet.TargetActor);
//=================
RegisterScanner("ItemInfo", "Please teleport and open your chocobo saddlebag.",
PacketSource.Server,