Amiroslo
Excellent OT User
- Joined
- Jul 28, 2009
- Messages
- 6,752
- Solutions
- 5
- Reaction score
- 756
Hello,
I was looking around and saw this thread, and the idea for a high exp server seemed pretty wonderful, but I couldn't find it released anywhere, so I got some help, and we made things work! So I'd want to share this with anyone else who would like to have this implemented on their server!
What is this?
This will change every healing (runes, potions, spells etc) and every damage (melee, spells etc) to a percentage looking
Example:
Open your game.cpp
Replace
with
replace
with
replace
with
replace
with
and replace
with
Shoutout to Carcoo & GPedro for making it happen
I was looking around and saw this thread, and the idea for a high exp server seemed pretty wonderful, but I couldn't find it released anywhere, so I got some help, and we made things work! So I'd want to share this with anyone else who would like to have this implemented on their server!
What is this?
This will change every healing (runes, potions, spells etc) and every damage (melee, spells etc) to a percentage looking
Example:


Open your game.cpp
Replace
Code:
sprintf(buffer, "+%d", healthChange);
Code:
int percentHealthChange = (int) round(healthChange / (target->getMaxHealth() / 100));
sprintf(buffer, "+%d%%", percentHealthChange);
replace
Code:
sprintf(buffer, "%d", manaDamage);
Code:
int percentManaChange = (int) round(manaDamage / (target->getMaxMana() / 100.));
sprintf(buffer, "%d%%", percentManaChange);
replace
Code:
sprintf(buffer, "%d", damage);
Code:
int percentHealthChange2 = (int) round(damage / (target->getMaxHealth() / 100.));
sprintf(buffer, "%d%%", percentHealthChange2);
replace
Code:
sprintf(buffer, "+%d", manaChange);
Code:
int percentManaChange2 = (int) round(manaChange / (target->getMaxMana() / 100.));
sprintf(buffer, "+%d%%", percentManaChange2);
and replace
Code:
sprintf(buffer, "%d", manaLoss);
Code:
int percentManaChange3 = (int) round(manaLoss / (target->getMaxMana() / 100.));
sprintf(buffer, "%d%%", percentManaChange3);
Shoutout to Carcoo & GPedro for making it happen