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

Solved Combat Type

Roddet

Staff member
Global Moderator
Joined
May 1, 2013
Messages
982
Solutions
108
Reaction score
826
Location
Mex
I've added a new Combat Type to the sources and everything works as it should.

The thing is if i do this:
Code:
        case COMBAT_WANDAMAGE:
        {
            textColor = COLOR_WHITE;
            magicEffect = MAGIC_EFFECT_NONE; <------- THIS
            break;
        }

It works, i mean the wand make damage but doesnt show how many damage im doing.
I have to change MAGIC_EFFECT_NONE to any other effect to make it work properly and i dont want that.

Any ideas? TFS 0.3.7_SVN

EDITED: I forgot to say, if the player who im attacking have utamo works fine.
 
Last edited:
on game.cpp:

Code:
if(textColor < COLOR_NONE && magicEffect < MAGIC_EFFECT_NONE)
                {
                    char buffer[20];
                    sprintf(buffer, "%d", damage);

                    addMagicEffect(list, targetPos, magicEffect);
                    addAnimatedText(list, targetPos, textColor, buffer);
}

Change for:
Code:
if(textColor < COLOR_NONE)
                {
                    char buffer[20];
                    sprintf(buffer, "%d", damage);
                    addAnimatedText(list, targetPos, textColor, buffer);
                }
                if (magicEffect < MAGIC_EFFECT_NONE)
                {
                    addMagicEffect(list, targetPos, magicEffect);
                }

I believe it should work, didn't test it tho.
 
My game.cpp is different than yours but thanks mate u gave me the idea :D Solved.
 
Last edited:
Back
Top