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

TFS 0.X Disable Orange Emote Spells from source

mark45

New Member
Joined
Jan 8, 2016
Messages
13
Reaction score
0
Server: OTX2
I would like to remove emote spells, those orange names on characters' heads.
But I don't know how to work with these source codes, could someone tell me what I should do to disable this?
 
No, my OTX is 860
edit:
I found this link, but the compilation error.
 
Yeah nice why do u prefer something buged over something stable??
emoteSpells = false in config lua ?
OTS DBO/NDBO has many spells running, which generates information pollution.
When I disable emotespells in the config, it just takes off the orange name, but turns yellow and showing up in the default.
I want to remove the spells from appearing on the character's head and direct them to a "Spells" channel
 
i try look this
you say, so I can leave it the same as it is in this image?
are different distributions, just copy and paste your "internalCreatureSay" or "playersayspells" or "Spells::eek:nPlayerSay" funtion


according to
erase
or put return
Code:
RET_NOERROR
or
 return true
or
RET_NOTPOSSIBLE


recommendation look for this :
Code:
EMOTE_SPELLS
in all files with notepad++
 
Last edited:
are different distributions, just copy and paste your "internalCreatureSay" or "playersayspells" or "Spells::eek:nPlayerSay" funtion


according to
erase
or put return
Code:
RET_NOERROR
or
 return true
or
RET_NOTPOSSIBLE


recommendation look for this :
Code:
EMOTE_SPELLS
in all files with notepad++
I found this in game.cpp

C++:
bool Game::internalCreatureSay(Creature* creature, MessageClasses type, const std::string& text,
    bool ghostMode, SpectatorVec* spectators/* = NULL*/, Position* pos/* = NULL*/, uint32_t statementId/* = 0*/)

if i remove the commented parts, will this make the emote spells orange no longer appear?
 
I found this in game.cpp

C++:
bool Game::internalCreatureSay(Creature* creature, MessageClasses type, const std::string& text,
    bool ghostMode, SpectatorVec* spectators/* = NULL*/, Position* pos/* = NULL*/, uint32_t statementId/* = 0*/)

if i remove the commented parts, will this make the emote spells orange no longer appear?
paste full code function xd
or send the original src in github
 
o_O : You only had to send the function xd not the whole file

nope in your distribution is not in game.cpp
look for : "EMOTE_SPELLS"
in all .cpp
 
1.-undo changes of xtibia

2.- change (L35) this

Lua:
if(g_config.getBool(ConfigManager::EMOTE_SPELLS))
           type = MSG_SPEAK_MONSTER_SAY;
to
Lua:
    if(g_config.getBool(ConfigManager::EMOTE_SPELLS))
        return RET_NOERROR;

and put
Code:
emoteSpells = true
in config
 
Last edited:
1.-undo changes of xtibia

2.- change (L35) this

Lua:
if(g_config.getBool(ConfigManager::EMOTE_SPELLS))
           type = MSG_SPEAK_MONSTER_SAY;
to
Lua:
    if(g_config.getBool(ConfigManager::EMOTE_SPELLS))
        return RET_NOERROR;

and put
Code:
emoteSpells = true
in config
thank you very much, it worked.
thank you very much, it worked.
 
Last edited:
Back
Top