Greetings otland, I have a little problem with the inbox, it turns out that I just added the inbox to a Nekiro 8.60 since the sources did not contain the inbox.
I just added the inbox without any problems, getInbox() works for me, without problems, but here is a small error that is a bit annoying, when I open the depot chest, I can return without problems (turn back), but I can't go back inbox, for that I have to close it and reopen the depot locker.
I don't know if I missed a part of the inbox, or I have to modify something in container.ccp, I have no idea.
An example clip:
So I have added the inbox in player.ccp
I would appreciate any kind of help with this.
I just added the inbox without any problems, getInbox() works for me, without problems, but here is a small error that is a bit annoying, when I open the depot chest, I can return without problems (turn back), but I can't go back inbox, for that I have to close it and reopen the depot locker.
I don't know if I missed a part of the inbox, or I have to modify something in container.ccp, I have no idea.
An example clip:
So I have added the inbox in player.ccp
Lua:
DepotChest* Player::getDepotChest(uint32_t depotId, bool autoCreate)
{
auto it = depotChests.find(depotId);
if (it != depotChests.end()) {
return it->second;
}
if (!autoCreate) {
return nullptr;
}
uint16_t depotItemId = getDepotBoxId(depotId);
if (depotItemId == 0) {
return nullptr;
}
it = depotChests.emplace(depotId, new DepotChest(depotItemId)).first;
it->second->setMaxDepotItems(getMaxDepotItems());
return it->second;
}
DepotLocker& Player::getDepotLocker()
{
if (!depotLocker) {
depotLocker = std::make_shared<DepotLocker>(ITEM_LOCKER);
depotLocker->internalAddThing(inbox);
DepotChest* depotChest = new DepotChest(ITEM_DEPOT);
if (depotChest) {
// adding in reverse to align them from first to last
for (int16_t depotId = depotChest->capacity(); depotId >= 0; --depotId) {
if (DepotChest* box = getDepotChest(depotId, true)) {
depotChest->internalAddThing(box);
}
}
depotLocker->internalAddThing(depotChest);
}
}
return *depotLocker;
}
I would appreciate any kind of help with this.