• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Feature Healing Color like Rl on 8.6

nardosky

iTibia Online
Joined
Jul 17, 2007
Messages
43
Reaction score
8
Location
Iquieu
works on rev 0.4

Let's start:


game.cpp:

Search in the function:

Code:
                        sprintf(buffer, "+%d", healthChange);

			const SpectatorVec& list = getSpectators(targetPos);
			if(combatType != COMBAT_HEALING)
				addMagicEffect(list, targetPos, MAGIC_EFFECT_WRAPS_BLUE);

			addAnimatedText(list, targetPos, COLOR_GREEN, buffer);

Replace for this
Code:
			sprintf(buffer, "%d", healthChange);

			const SpectatorVec& list = getSpectators(targetPos);
			if(combatType != COMBAT_HEALING)
				addMagicEffect(list, targetPos, MAGIC_EFFECT_WRAPS_BLUE);

			addAnimatedText(list, targetPos, COLOR_MAYABLUE, buffer);

const.h:

Now Search in the function:

Code:
	COLOR_LIGHTBLUE		= 89,

Replace with this

Code:
	COLOR_LIGHTBLUE		= 89,
	COLOR_MAYABLUE		= 95,

and now you have healing like rl
 
You've only changed the color though :p
 
Back
Top