if (packetID == ScriptRPCEnumeration::RPC_ScrShowDialog) {
WORD DialogID;
BYTE style, caplen, button1_len, button2_len;
char caption[255], button1[25], button2[25], info[0x1000];
bs->Read(DialogID);
bs->Read(style);
bs->Read(caplen);
bs->Read(caption, caplen);
caption[caplen] = '\0';
bs->Read(button1_len);
bs->Read(button1, button1_len);
button1[button1_len] = '\0';
bs->Read(button2_len);
bs->Read(button2, button2_len);
button2[button2_len] = '\0';
SF->getRakNet()->DecodeString(info, 0x1000, bs);
std::string cap = caption, text = info;
SF->Log("DialogID: %d - caption %s\n%s", DialogID, caption, info);
}