• 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++ Negative Sign on Damage

Phemus

Member
Joined
Jun 16, 2012
Messages
149
Solutions
2
Reaction score
12
How can I compile my server or edit my server so all damages can show the minus sign next to the damage and the plus sign when you heal.
Example:
sign.png

Thank you.
 
Solution
For health gain adding + to it you'll have to change this in game.cpp exactly like here.
For mana gain you'll have to change like in here
For mana loss/damage you'll have to change this from %d to -%d
For health loss/damage you'll have to change %d to -%d here
For health gain adding + to it you'll have to change this in game.cpp exactly like here.
For mana gain you'll have to change like in here
For mana loss/damage you'll have to change this from %d to -%d
For health loss/damage you'll have to change %d to -%d here
 
Solution
Thank you so much!
Post automatically merged:

How about OTX 2.x?
 
Last edited:
Back
Top