I have already added towns to depot chests. I am trying to add these containers (sub-depots?)
View attachment 35371
EDIT:
Also I tried
this tutorial he mentions that
maxSize = 17
should be set before
maxDepotItems = 1500
. but my constructor looks like this :
C++:
DepotChest::DepotChest(uint16_t type) :
Container(type), maxDepotItems(1500) {}
This confuses me. can I just add another one like
maxSize(17)
?
Edit 2:
Also maxSize is a private member of Container class. I'm not sure how to modify that.
UPDATE:
Didn't have to set maxSize. It works (atm.)
UPDATE 2: No, it doesn't work.
each container has 8 slots
and the containers are added twice 17
View attachment 35375View attachment 35376
* Going mad *
UPDATE 3 : Tried
this:
Code:
DepotChest::DepotChest(uint16_t type) : Container(type, 17, true, true), maxDepotItems(10000) {
}
but now it is adding the containers 3 times.. why is that happening ?
UPDATE 4:
After disabling pagination on depotchest it adds containers only once and I can live with that solution.
However I am not sure how to increase the size of each container to 20 slots instead of what it currently has (8 slots)
UPDATE 5:
I looked into items.xml and found that you could set containerSize attribute and since the containers weren't registered I thought that 8 slots were the defualt size for containers (like bag) so I added them in the items.xml file and set their size to 25 and it works fine now.