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
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.
Actually that what he want I guess by re-reading what he posted.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?
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());
}
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 ..."
I thought he wanted to remove all the messages, sorry xd
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; }
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
No ?