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

Linux Look HP/Mana regeneration and percent on look

jel

Member
Joined
Mar 22, 2014
Messages
302
Reaction score
12
hello, I tried to use this code in the canary distro, but it doesn't work the code is very different, someone convert to canary distro?

look mana/hp on look

// Show maxHitPoints on item if (it.abilities->stats[STAT_MAXHITPOINTS]) { if (begin) { begin = false; s << " ("; } else { s << ", "; } s << "health " << std::showpos << it.abilities->stats[STAT_MAXHITPOINTS] << std::noshowpos; } // Show maxManaPoints on item if (it.abilities->stats[STAT_MAXMANAPOINTS]) { if (begin) { begin = false; s << " ("; } else { s << ", "; } s << "mana " << std::showpos << it.abilities->stats[STAT_MAXMANAPOINTS] << std::noshowpos; } // Show maxHitPointsPercent on item if (it.abilities->statsPercent[STAT_MAXHITPOINTS]) { if (begin) { begin = false; s << " ("; } else { s << ", "; } s << "health " << std::showpos << it.abilities->statsPercent[STAT_MAXHITPOINTS] - 100 << std::noshowpos << "%"; } // Show maxManaPointsPercent on item if (it.abilities->statsPercent[STAT_MAXMANAPOINTS]) { if (begin) { begin = false; s << " ("; } else { s << ", "; } s << "mana " << std::showpos << it.abilities->statsPercent[STAT_MAXMANAPOINTS] - 100 << std::noshowpos << "%"; } // Show healthGain/healthTicks on item if (it.abilities->regeneration) { if (begin) { begin = false; s << " ("; } else { s << ", "; } s << "+" << std::showpos << it.abilities->healthGain << std::noshowpos << " hp/" << std::showpos << it.abilities->healthTicks / 1000 << std::noshowpos << "s"; } // Show manaGain/manaTicks on item if (it.abilities->regeneration) { if (begin) { begin = false; s << " ("; } else { s << ", "; } s << "+" << std::showpos << it.abilities->manaGain << std::noshowpos << " mp/" << std::showpos << it.abilities->manaTicks / 1000 << std::noshowpos << "s"; }
 
Back
Top