bool CALLBACK incomingRPC(stRakNetHookParams *params)
{
if (params->packetId == ScriptRPCEnumeration::RPC_ScrDisplayGameText) {
static unsigned int length;
static char msg[256];
static BitStream bsOnfootSync;
static stOnFootData ofSync;
params->bitStream->ResetReadPointer();
params->bitStream->SetReadOffset(64);
params->bitStream->Read(length);
params->bitStream->Read(msg, length);
msg[length] = '\0';
if (!strcmp(msg, "Your text"))
{
// action
}