From 15e206430ac24acfd218a79fc54a0c381fe4d034 Mon Sep 17 00:00:00 2001 From: JeidoUran Date: Sun, 6 Jan 2019 02:03:33 +0100 Subject: [PATCH] Sending a /tell while acting as a GM will send a GM Tell GM Call was also fixed 3 commits ago, now works on players within instances --- src/common/Network/PacketDef/Chat/ServerChatDef.h | 2 +- src/world/Network/Handlers/PacketHandlers.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/Network/PacketDef/Chat/ServerChatDef.h b/src/common/Network/PacketDef/Chat/ServerChatDef.h index e2ebe0ba..955c9bf6 100644 --- a/src/common/Network/PacketDef/Chat/ServerChatDef.h +++ b/src/common/Network/PacketDef/Chat/ServerChatDef.h @@ -21,7 +21,7 @@ struct FFXIVIpcTell : uint16_t u2b; uint8_t preName; uint8_t u3a; - uint8_t u3b; //Setting this to 1 seems to mark the tell as a GM tell (More research needed) + uint8_t u3b; //Setting this to 1 marks the tell as a GM tell char receipientName[32]; char msg[1031]; }; diff --git a/src/world/Network/Handlers/PacketHandlers.cpp b/src/world/Network/Handlers/PacketHandlers.cpp index d737bf8a..91933295 100644 --- a/src/world/Network/Handlers/PacketHandlers.cpp +++ b/src/world/Network/Handlers/PacketHandlers.cpp @@ -656,6 +656,10 @@ void Sapphire::Network::GameConnection::tellHandler( FrameworkPtr pFw, //tellPacket.data().u1 = 0x92CD7337; //tellPacket.data().u2a = 0x2E; //tellPacket.data().u2b = 0x40; + if( player.isActingAsGm() ) + { + tellPacket->data().u3b = 0x01; + } pTargetPlayer->queueChatPacket( tellPacket ); }