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

Hotkey message/Stop

Ricardo Noriega

New Member
Joined
Dec 23, 2016
Messages
4
Reaction score
0
Hello everyone,

I run a server
The Forgotten Server - Edited By Cyko V8, version 0.3.6 - Edited By Cyko V8 (Crying Damson - Edited By Cyko V8)
Compiled with GNU C++ version 4.9.2 at Aug 20 2019, 15:30:59

I would like to know if someone can help me with an issue. How can I get rid or be able to stop the message that appears when you are using an item on a hotkey? For example; Using the last great mana potion or using the last fishing rod, etc.
 
Last edited:
It needs source edit, in your game.cpp find
C++:
void Game::showHotkeyUseMessage
then find this under it and remove.
C++:
    if(count == 1)
        sprintf(buffer, "Using the last %s...", it.name.c_str());
    else
        sprintf(buffer, "Using one of %d %s...", count, it.pluralName.c_str());

    player->sendTextMessage(MSG_INFO_DESCR, buffer);
 
It needs source edit, in your game.cpp find
C++:
void Game::showHotkeyUseMessage
then find this under it and remove.
C++:
    if(count == 1)
        sprintf(buffer, "Using the last %s...", it.name.c_str());
    else
        sprintf(buffer, "Using one of %d %s...", count, it.pluralName.c_str());

    player->sendTextMessage(MSG_INFO_DESCR, buffer);
Thank you for the information, quick question again. I recompile the file only or tfs?
 
Back
Top