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

Using one of REMOVE..

Hashirama479

World of Ninja
Joined
Dec 19, 2016
Messages
536
Solutions
6
Reaction score
74
How can I remove this ? "Using one of or using the last manarune" TFS 0.4

wJ4xW.png
 
TFS, it's on game.cpp.

Find all of these:
if(isHotkey)
showHotkeyUseMessage(player, item);

And comment them like this:

/*
if(isHotkey)
showHotkeyUseMessage(player, item);
*/

I found 3 on game.cpp.
If you find 3, comment all the 3.
 
TFS, it's on game.cpp.

Find all of these:
if(isHotkey)
showHotkeyUseMessage(player, item);

And comment them like this:

/*
if(isHotkey)
showHotkeyUseMessage(player, item);
*/

I found 3 on game.cpp.
If you find 3, comment all the 3.

Then he won't get any message, he has to modify the function I posted above if he just wanna get rid of the "using the LAST ..."
 
@WibbenZ Must I just remove the line? and done?

Well it depends on what you wanna remove, if it's just the last then you can use this insted;
C++:
void Game::showHotkeyUseMessage(Player* player, Item* item)
{
    const ItemType& it = Item::items[item->getID()];
    uint32_t count = player->__getItemTypeCount(item->getID(), item->isFluidContainer() ? item->getFluidType() : -1);

    std::stringstream stream;
    if(!it.showCount)
        stream << "Using one of " << it.name << "...";
    else if(count >= 1)
        stream << "Using one of " << count << " " << it.pluralName.c_str() << "...";
    else
        return;

    player->sendTextMessage(MSG_HOTKEY_USE, stream.str().c_str());
}

If you wanna remove all of them do what @River KA said and comment out the function calls.
 
C++:
void Game::showHotkeyUseMessage(Player* player, Item* item)
{
    const ItemType& it = Item::items[item->getID()];
    uint32_t count = player->__getItemTypeCount(item->getID(), item->isFluidContainer() ? item->getFluidType() : -1);
 
if(item->getID() != manaruneID){
    std::stringstream stream;
    if(!it.showCount)
        stream << "Using one of " << it.name << "...";
    else if(count >= 1)
        stream << "Using one of " << count << " " << it.pluralName.c_str() << "...";
    else
        return;
 
    player->sendTextMessage(MSG_HOTKEY_USE, stream.str().c_str());
}
} else { return; }

No ?
 
C++:
void Game::showHotkeyUseMessage(Player* player, Item* item)
{
    const ItemType& it = Item::items[item->getID()];
    uint32_t count = player->__getItemTypeCount(item->getID(), item->isFluidContainer() ? item->getFluidType() : -1);
 
if(item->getID() != manaruneID){
    std::stringstream stream;
    if(!it.showCount)
        stream << "Using one of " << it.name << "...";
    else if(count >= 1)
        stream << "Using one of " << count << " " << it.pluralName.c_str() << "...";
    else
        return;
 
    player->sendTextMessage(MSG_HOTKEY_USE, stream.str().c_str());
}
} else { return; }

No ?
Worked, thanks guys

I removed the message complety so it doesnt show anymore "using last or using one of two" xDD

? :p
 
Back
Top