Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
Jak doda??
Podmieniamy ca?? funkcj? AddPlayerStats w plikach protocolgame.cpp w przypadku wersji 0.3.6pl1+ lub protocol76.cpp w przypadku wersji TFS pod Tibi? 7.6
void ProtocolGame::AddPlayerStats(NetworkMessage& msg)
{
msg.addByte(0xA0);
int32_t temp;
bool usePercents = !player->getStorageValue(1444, temp);
if(usePercents)
{
msg.add<uint16_t>((uint16_t)std::floor(player->getHealth() * 100 / std::max(player->getMaxHealth(), 1)));
msg.add<uint16_t>(100);
}
else
{
msg.add<uint16_t>(player->getHealth());
msg.add<uint16_t>(player->getMaxHealth());
}
msg.add<uint32_t>(player->getFreeCapacity());
msg.add<uint32_t>(std::min<uint32_t>(player->getExperience(), 0x7FFFFFFF));
msg.add<uint16_t>(player->getLevel());
msg.addByte(player->getPlayerInfo(PLAYERINFO_LEVELPERCENT));
if (player->getPlayerInfo(PLAYERINFO_MAXMANA) > 0) {
msg.add<uint16_t>(player->getMana() * 100 / player->getPlayerInfo(PLAYERINFO_MAXMANA));
msg.add<uint16_t>(100);
} else {
msg.add<uint16_t>(0);
msg.add<uint16_t>(0);
}
msg.addByte(std::min<uint32_t>(player->getMagicLevel(), std::numeric_limits<uint8_t>::max()));
msg.addByte(player->getPlayerInfo(PLAYERINFO_MAGICLEVELPERCENT));
msg.addByte(player->getSoul());
msg.add<uint16_t>(player->getStaminaMinutes());
}
b??d kompilacji tfs 1.2 10.98 o co go ?? http://prnt.sc/eborv1
[MENTION=339896]sprytnaaaaa[/MENTION] Poka? swoj? wersj? AddPlayerStats.skompilowa?em pod mastera silnik si? w??cza gdy chce sie zalogowa? nie czyta po??czenia ? co jest nie halo ?