• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

!leavehouse sending items to depot chest (grey box)

ralke

(҂ ͠❛ ෴ ͡❛)ᕤ
Joined
Dec 17, 2011
Messages
1,521
Solutions
27
Reaction score
870
Location
Santiago - Chile
GitHub
ralke23
Twitch
ralke23
Hi there! I use TFS 1.5 downgrades 8.6. When you use !leavehouse the items are sent to the Locker box that corresponds to the house town. What I actually need is that the items go to the depot chest (that grey box inside lockers) instead of lockers. The reason behind this is that I use towns for a PvP system, so I would like to use the only town that player's can't pick as main town for depots.

To try this I checked
C++:
bool House::transferToDepot(Player* player) const

and tried changing
C++:
DepotLocker* depot = player->getDepotLocker(townId);

for
C++:
DepotLocker* depot = player->getDepotChest();

but that doesn't work. Any other idea of how can I achieve what I need? Thanks in advance!
Regards
 
Back
Top