Hello!
I know that we get server info by socket:
$info = chr(6).chr(0).chr(255).chr(255).'info';
But how to get player info ?
As describe protocolstatus.cpp:
I know that we get server info by socket:
$info = chr(6).chr(0).chr(255).chr(255).'info';
But how to get player info ?
As describe protocolstatus.cpp:
Code:
case 0x01: {
uint16_t requestedInfo = msg.get<uint16_t>(); // only a Byte is necessary, though we could add new info here
std::string characterName;
if (requestedInfo & REQUEST_PLAYER_STATUS_INFO) {
characterName = msg.getString();
}
g_dispatcher.addTask(createTask(std::bind(&ProtocolStatus::sendInfo, std::static_pointer_cast<ProtocolStatus>(shared_from_this()),
requestedInfo, characterName)));
return;
}