• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

NPCs and Stackable Items

brunolopes

New Member
Joined
Nov 8, 2009
Messages
49
Reaction score
1
Hi ^_^.

My NPC's don't buy stackable items, like Potions, Runes and Creature Products.
When I try to sell, for example, 100 sandcrawler shell, a cancel message is shown:

Code:
You do not have this object

Someone know how I can solve this problem?
Doesn't matter if the fix is in sources or in LUA. Please help :)

Thanks!

Edition

I already tried this source edition:

Code:
li.itemId = intValue;
const ItemType& it = Item::items[li.itemId];

if(readXMLInteger(tmpNode, "subtype", intValue)) 
li.subType = intValue;
else 
{ 
if(it.stackable) 
li.subType = 1; 
else if(it.isFluidContainer() || it.isSplash()) 
li.subType = 0; 
}

And nothing...
 
Last edited:
Back
Top