• 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, Close.

Status
Not open for further replies.
@up, Hmm, learn tutorial maybe but Marcinek said that you have to open spells.cpp and change something and then

search for SPEAK_SAY <--- change to ---> SPEAK_MONSTER_SAY

That's all.

Im getting help from my dear friend colandus , Ty anyway ! ciao
 
Thats wrong, its in game.cpp not spells.cpp :p (I got some help from Tala)

Ok nvm, 0.3 has it in spells.cpp... :p

0.2 game.cpp:
Code:
bool Game::playerSaySpell(Player* player, SpeakClasses type, const std::string& text)
{
	if(player->getName() == "Account Manager")
		return internalCreatureSay(player, SPEAK_SAY, text);

	TalkActionResult_t result;
	result = g_talkActions->playerSaySpell(player, type, text);
	if(result == TALKACTION_BREAK)
		return true;

	result = g_spells->playerSaySpell(player, type, text);
	if(result == TALKACTION_BREAK)
		return internalCreatureSay(player, SPEAK_SAY, text);
	else if(result == TALKACTION_FAILED)
		return true;

	return false;
}

Replace SPEAK_SAY here and it should work.
 
Is that in 0.3? Since in 0.2, I did not find that. I can only find something similar in game.cpp

purple line = Line 3270 in game.cpp
Code:
	switch(type)
	{
		case SPEAK_SAY:
[COLOR="Purple"]			return internalCreatureSay(player,[/COLOR] [COLOR="Red"]SPEAK_MONSTER_SAY[/COLOR][COLOR="Purple"], text);[/COLOR]
			break;

		case SPEAK_WHISPER:
			return playerWhisper(player, text);
			break;

btw, thread moved to: Resources > C++ Codes > Requests & Support
 
Last edited:
Ehm....
Code:
m_confBool[EMOTE_SPELLS] = getGlobalBool(L, "emoteSpells", "no");
TFS 0.3 has configurable emotespells :| you don't have to change anything in source... just change it in config ;D

@down
oops ;d I misunderstood then :D
 
Last edited:
Status
Not open for further replies.
Back
Top Bottom