From config, 0.3.5:
maxItemsPerPZTile = 0
maxItemsPerHouseTile = 0
lol, I'm just writing everywhere that everything will be in 0.3.5, but well yes thats true, it will come with really a lot of features, be patient!![]()
Simply by editing sources... Just copy it from 0.3.5...
Simply by editing sources... Just copy it from 0.3.5...
ReturnValue Tile::__queryAdd(int32_t index, const Thing* thing, uint32_t count,
uint32_t flags) const
if(creatures && !creatures->empty() && item->isBlocking() && !hasBitSet(FLAG_IGNOREBLOCKCREATURE, flags))
{
for(CreatureVector::const_iterator cit = creatures->begin(); cit != creatures->end(); ++cit)
{
if(!(*cit)->isGhost())
return RET_NOTENOUGHROOM;
}
}
if(hasFlag(TILESTATE_PROTECTIONZONE))
{
const uint32_t itemLimit = WHAT_SHOULD_BE_THE_LIMIT;
if(itemLimit && getThingCount() > itemLimit)
[COLOR=Blue]return RET_TILEISFULL;[/COLOR]
}
if(hasFlag(TILESTATE_HOUSE))
{
const uint32_t itemLimit = WHAT_SHOULD_BE_THE_LIMIT;
if(itemLimit && getThingCount() > itemLimit)
return RET_NOTENOUGHROOM;
}
You propably did something wrong. This feature don't require more functions to be changes AFAIR.
ReturnValue HouseTile::__queryAdd(int32_t index, const Thing* thing, uint32_t count, uint32_t flags) const
if(const Creature* creature = thing->getCreature())
{
if(const Player* player = creature->getPlayer())
{
if(!house->isInvited(player))
return RET_PLAYERISNOTINVITED;
}
else
return RET_NOTPOSSIBLE;
}
else if(thing->getItem())
{
const uint32_t itemLimit = PUT_LIMIT_HERE
if(itemLimit && getThingCount() > itemLimit)
return RET_TILEISFULL;
}