Postado Dezembro 14, 2015 9 anos Primeira mente boa noite a todos do TK, estou aqui pedindo uma ajuda pq estou com um erro em meu ot serv. tenho 2.000 great mana potions em minha backpack, mas quando uso mostra: 03:46 Using one of 45 great mana potions... a 03:26 Using one of 1 great mana potions... ai volta pra 99. queria q ficasse: 03:46 Using one of 2000 great mana potions... 03:46 Using one of 1999 great mana potions... meu primeiro topico desculpa qualquer coisa actions.xml potions.lua
Postado Dezembro 14, 2015 9 anos @bonehell Vai em game.cpp, procure por: void Game::showHotkeyUseMessage(Player* player, Item* item) { int32_t subType = -1; if(item->hasSubType() && !item->hasCharges()) subType = item->getSubType(); const ItemType& it = Item::items[item->getID()]; uint32_t count = player->__getItemTypeCount(item->getID(), subType, false); char buffer[40 + it.name.size()]; 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); } Substitua por: void Game::showHotkeyUseMessage(Player* player, Item* item) { const ItemType& it = Item::items[item->getID()]; uint32_t count = player->__getItemTypeCount(item->getID(), -1); char buffer[40 + it.name.size()]; 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); } Poste se resolveu ou não, por favor.
Postado Dezembro 14, 2015 9 anos Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680Este tópico foi movido: De: OTServ > Notícias e OTServ Geral Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
Postado Dezembro 14, 2015 9 anos Autor game.cpp? aonde fica isso nao estou nenhum arquivo com esse nome .. sry
Postado Dezembro 14, 2015 9 anos 1 hora atrás, bonehell disse: game.cpp? aonde fica isso nao estou nenhum arquivo com esse nome .. sry source do otserv, tem tutoriais na área de programação
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.