• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Evolution Source Request Hp/Mana

El Man

«لَا إِلَٰهَ إِلَّا ٱللَّٰهُ»
Joined
Mar 23, 2013
Messages
162
Reaction score
36
i need help to make HP/Mana 100/100%

protocol79.cpp
msg.AddU16(player->getHealth());
msg.AddU16(player->getPlayerInfo(PLAYERINFO_MAXHEALTH));

anyone help me ;/
 
Solution
C++:
msg.AddU16(uint16_t((static_cast<uint64_t>(player->getHealth()) * 100) / static_cast<uint64_t>(player->getMaxHealth())));
msg.AddU16(100);
Back
Top