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
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
It should definitely show the type of images only chosen by myself and not chosen by other players. But it's difficult to fix.
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
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: