+- isso
items/items.xml
<item id="2197" article="a" name="stone skin amulet">
<attribute key="weight" value="760" />
<attribute key="slotType" value="necklace" />
<attribute key="charges" value="5" />
<attribute key="showcharges" value="1" />
<attribute key="absorbPercentPhysical" value="80" />
<attribute key="absorbPercentDeath" value="80" />
<attribute key="showattributes" value="1" />
</item>
<attribute key="charges" value="5" />
--
Sobre a contagem, o fix é pelas sources (tem que saber compilar e editar elas).
game.cpp
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);
}
substitui 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);
}