06-01-2012, 07:21 AM
Okay, I've looked through sources this time
But the only mention of stack was found in cInventory.cpp, and it was like:
In other words - seems like max item stack is hard-coded. Can't find any .ini or plugin access to it.
Question is: could it be done? I would greatly appretiate it (even more, than wolves!), because I'm willing to make REALLY different server
With a maximum stack of any item = 8
(I know, this sounds like a mess, but I know what I'm doing there)
How about section [StackSize] in items.ini?

Code:
bool cInventory::AddToBar( cItem & a_Item, const int a_Offset, const int a_Size, bool* a_bChangedSlots, int a_Mode /* = 0 */ )
{
// Fill already present stacks
if( a_Mode < 2 )
{
for(int i = 0; i < a_Size; i++)
{
if( m_Slots[i + a_Offset].m_ItemID == a_Item.m_ItemID && m_Slots[i + a_Offset].m_ItemCount < 64 && m_Slots[i + a_Offset].m_ItemHealth == a_Item.m_ItemHealth )
{
int NumFree = 64 - m_Slots[i + a_Offset].m_ItemCount;
if( NumFree >= a_Item.m_ItemCount )
{
Question is: could it be done? I would greatly appretiate it (even more, than wolves!), because I'm willing to make REALLY different server


How about section [StackSize] in items.ini?