• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ is it possible to put a bar in tfs 0.3.6

samuel157

Banned User
Joined
Mar 19, 2010
Messages
623
Solutions
4
Reaction score
124
Location
São Paulo, Brazil
GitHub
Samuel10M
protocolgame.cpp tfs 0.3.6 link: ////////////////////////////////////////////////////////////////////////// Ope - Pastebin.com (https://pastebin.com/BfrxTUXy)

C++:
// C++ change to show it on 'bar' - 9.6 ots only
protocolgame.cpp
Find:
[CPP]msg->put<uint16_t>(720);[/CPP]
and replace with:
[CPP] // offline training minutes
std::string strValue;
if(!player->getStorage("62666", strValue))
{
// no storage
msg->put<uint16_t>(0);
}
else
{
msg->put<uint16_t>((uint16_t) atoi(strValue.c_str()));
}[/CPP]
 
Last edited:
Back
Top