Forkz
Intermediate OT User
- Joined
- Jun 29, 2020
- Messages
- 528
- Solutions
- 16
- Reaction score
- 129
A change needs to be made to correctly send items to DepotChest
house.cpp
to
house.cpp
C++:
if (DepotLocker* depotLocker = player->getDepotLocker(townId)) {
g_game.internalMoveItem(item->getParent(), depotLocker, INDEX_WHEREEVER, item, item->getItemCount(), nullptr, FLAG_NOLIMIT);
C++:
if (DepotChest* depotChest = player->getDepotChest(townId, true)) {
g_game.internalMoveItem(item->getParent(), depotChest, INDEX_WHEREEVER, item, item->getItemCount(), nullptr, FLAG_NOLIMIT);