chackie
New Member
- Joined
- Nov 1, 2009
- Messages
- 87
- Reaction score
- 0
Hello i have a stacking problem with potions.
Its says in game: you are using one of 87 great mana potions.. But i have 387 potions so it should say: You are using one of 387 great mana potion.
Same problem: http://otland.net/f16/stacking-bug-8-60-potions-help-107925/
Any clue how to do?
Need to fix my game.cpp?
MY GAME.CPP code:
Its says in game: you are using one of 87 great mana potions.. But i have 387 potions so it should say: You are using one of 387 great mana potion.
Same problem: http://otland.net/f16/stacking-bug-8-60-potions-help-107925/
Any clue how to do?
Need to fix my game.cpp?
MY GAME.CPP code:
Code:
void Game::showUseHotkeyMessage(Player* player, Item* item)
{
const ItemType& it = Item::items[item->getID()];
uint32_t itemCount = player->__getItemTypeCount(item->getID(), -1);
std::stringstream ss;
if(itemCount == 1){
ss << "Using the last " << it.name << "...";
}
else{
ss << "Using one of " << itemCount << " " << it.pluralName << "...";
}
player->sendTextMessage(MSG_INFO_DESCR, ss.str());
}