• 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!

Forgotten server 0.4

Last edited:
walahy el3zeam 8aly we tlab r5eas
3awez real map with full map and oken we genige and all
or custom map and u can add scripts u need
sorry for arabic
 
for change mana and hp for normal
protocolgame.cpp
Code:
if (player->getPlayerInfo(PLAYERINFO_MAXHEALTH) > 0)
{
    msg->put<uint16_t>(uint16_t(player->getHealth() * 100 / player->getPlayerInfo(PLAYERINFO_MAXHEALTH)));
    msg->put<uint16_t>(100);
}
else
{
    msg->put<uint16_t>(0);
    msg->put<uint16_t>(0);
}


to


msg->put<uint16_t>(player->getHealth());
msg->put<uint16_t>(player->getPlayerInfo(PLAYERINFO_MAXHEALTH));
_________________________________________________________________________________________
change
if (player->getPlayerInfo(PLAYERINFO_MAXMANA) > 0)
{
    msg->put<uint16_t>(player->getPlayerInfo(PLAYERINFO_MANA) * 100 / player->getPlayerInfo(PLAYERINFO_MAXMANA));
    msg->put<uint16_t>(100);
}
else
{
    msg->put<uint16_t>(0);
    msg->put<uint16_t>(0);
}


to

msg->put<uint16_t>(player->getPlayerInfo(PLAYERINFO_MANA));
msg->put<uint16_t>(player->getPlayerInfo(PLAYERINFO_MAXMANA));
 
Last edited:
Back
Top