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

Show Percent when attack/heal

krotus

New Member
Joined
Jul 15, 2009
Messages
65
Reaction score
3
Hey, my request is, if it's possible show the percent when someone attacks to other with spell or inst rune, and the same way with when you are healing yourself.

Exemple:
I see when someone uses:
exura gran -> +50hp

To change:

exura gran -> 15%

Greetings,
krotus

- - - Updated - - -

~bump~
 
In file game.cpp find and change:
Code:
sprintf(buffer, "+%d", healthChange);

to:

Code:
int32_t healthPercent = round((double)(healthChange * 100) / target->getMaxHealth());
sprintf(buffer, "+%d%%", healthPercent);

And change:
Code:
sprintf(buffer, "%d", damage);

to

Code:
int32_t healthPercent = round((double)(damage * 100) / target->getMaxHealth());
sprintf(buffer, "-%d%%", healthPercent);
Checked in TFS 0.4.
 
Back
Top