SlayingWorld
Active Member
First of all i have already used the search function on the forums and tried every solution i could find that was not outdated.
So as the title says, i've already been able to import my locker numbers into my depot chest.
Currently using latest TFS:
otland/forgottenserver (https://github.com/otland/forgottenserver)
My current setup of the adjusted/edited parts:
player.cpp
container.cpp
The problem:
If i set the max items of locker#1(ID:25453) for example to 3,000. Ill be able to see the page 1 out of 1 on the depot#1, and I'm able to place 3,000 items into the locker#1 but the other items do not appear since i'm only able to see a max items of 32 per screen. The pages stay at 1 out of 1 even tho the rest have stacked and moved to the next page.
Already tried deleting the
from container.cpp
and editing my items.xml for the locker id to increase the container size value to 3,000:
But it does the same problem.
I cant figure out the part on how to be able to get page 1 out of 2, 1 out of 3, etc as you continue adding more items to your depot locker.
Take into account that i have:
So as the title says, i've already been able to import my locker numbers into my depot chest.
Currently using latest TFS:
otland/forgottenserver (https://github.com/otland/forgottenserver)
My current setup of the adjusted/edited parts:
player.cpp
C++:
DepotChest* Player::getDepotChest(uint32_t depotId, bool autoCreate)
{
auto it = depotChests.find(depotId);
if (it != depotChests.end()) {
return it->second;
}
if (!autoCreate) {
return nullptr;
}
DepotChest* depotChest = new DepotChest(ITEM_DEPOT);
depotChest->incrementReferenceCounter();
depotChest->internalAddThing(Item::CreateItem(25469)); // id of the last, need to be in this order because the items will be created in the reverse order
depotChest->internalAddThing(Item::CreateItem(25468));
depotChest->internalAddThing(Item::CreateItem(25467));
depotChest->internalAddThing(Item::CreateItem(25466));
depotChest->internalAddThing(Item::CreateItem(25465));
depotChest->internalAddThing(Item::CreateItem(25464));
depotChest->internalAddThing(Item::CreateItem(25463));
depotChest->internalAddThing(Item::CreateItem(25462));
depotChest->internalAddThing(Item::CreateItem(25461));
depotChest->internalAddThing(Item::CreateItem(25460));
depotChest->internalAddThing(Item::CreateItem(25459));
depotChest->internalAddThing(Item::CreateItem(25458));
depotChest->internalAddThing(Item::CreateItem(25457));
depotChest->internalAddThing(Item::CreateItem(25456));
depotChest->internalAddThing(Item::CreateItem(25455));
depotChest->internalAddThing(Item::CreateItem(25454));
depotChest->internalAddThing(Item::CreateItem(25453));
depotChest->setMaxDepotItems(getMaxDepotItems());
depotChests[depotId] = depotChest;
return depotChest;
}
C++:
Container::Container(uint16_t type, uint16_t size, bool unlocked /*= true*/, bool pagination /*= false*/) :
Item(type),
maxSize(size),
unlocked(unlocked),
pagination(pagination)
{
if (type == 25453) {
this->maxSize = 3000;
this->pagination = true;
this->unlocked = true;
}
}
If i set the max items of locker#1(ID:25453) for example to 3,000. Ill be able to see the page 1 out of 1 on the depot#1, and I'm able to place 3,000 items into the locker#1 but the other items do not appear since i'm only able to see a max items of 32 per screen. The pages stay at 1 out of 1 even tho the rest have stacked and moved to the next page.
Already tried deleting the
C++:
this->maxSize = 3000;
and editing my items.xml for the locker id to increase the container size value to 3,000:
XML:
<item id="25453" article="a" name="depot box I">
<attribute key="containerSize" value="3000" />
</item>
But it does the same problem.
I cant figure out the part on how to be able to get page 1 out of 2, 1 out of 3, etc as you continue adding more items to your depot locker.
Take into account that i have:
- The latest compiled version of TFS.
- Have tried deleting my town ids from all depots in remeres.
- Searched on every forum for a solution but most are outdated.
- Tried out a lot of the solutions on the forums.