You forgot something.Well we have made the runes no stackables via client editting and otdb edditing but we need to add for example 3 charges to the sd is that posible in a simple way?
have 3 charges in item.xml , but dissapear on 1 use![]()
what? jejeYou forgot something.
Distro/Client things of that nature, people need to know these things, how else do you expect to get help?what? jeje
otx v 2 with client 8.6Distro/Client things of that nature, people need to know these things, how else do you expect to get help?
int32_t newCount = std::max<int32_t>(0, item->getItemCount() - 1);
g_game.transformItem(item, item->getID(), newCount);
int32_t newCharge = std::max((int32_t)0, ((int32_t)item->getCharges()) - 1);
g_game.transformItem(item, item->getID(), newCharge);
Works, amazing! <3That's for TFS 1.x, no idea what you should do in other distributions. Hope you didn't fuck up the items.xml/.otb tibia.spr/.dat edit also.
In spells.cpp search for
and REPLACE it withCode:int32_t newCount = std::max<int32_t>(0, item->getItemCount() - 1); g_game.transformItem(item, item->getID(), newCount);
Code:int32_t newCharge = std::max((int32_t)0, ((int32_t)item->getCharges()) - 1); g_game.transformItem(item, item->getID(), newCharge);
That should do the trick.