• 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++ !mutespells on, off TFS 1.3 problem

Engradiel

Member
Joined
May 3, 2009
Messages
121
Reaction score
7
Location
Brazil
Hello everyone, I've been trying to break down the way messages appear to players for a few hours now.

However, the configuration I got does not work correctly.
It shows the other player's configuration and not the configuration chosen for myself.
Can someone help me?

in game.cpp

C++:
bool Game::playerSaySpell(Player* player, SpeakClasses type, const std::string& text)
{
    std::string words = text;
    TalkActionResult_t result = g_talkActions->playerSaySpell(player, type, words);
    if (result == TALKACTION_BREAK) {
        return true;
    }
    result = g_spells->playerSaySpell(player, words);
    if (result == TALKACTION_BREAK) {
        int32_t value;
        player->getStorageValue(84325, value);
        if (value == 1) {
           return internalCreatureSay(player, TALKTYPE_MONSTER_SAY, words, false);
        } else {
            return internalCreatureSay(player, type, words, false);
        }
    } else if (result == TALKACTION_FAILED) {
        return true;
    }
    return false;
}



I'm a bit of an amateur in c++ so I don't understand the codes very well. Could someone with knowledge help me?

I am using this source base: (I know is older but did adaption)
https://github.com/AlissonRenna/order-global


mute_bug.png



It should definitely show the type of images only chosen by myself and not chosen by other players. But it's difficult to fix.
 
Last edited:
Back
Top