• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua depot chest

silveralol

Advanced OT User
Joined
Mar 16, 2010
Messages
1,484
Solutions
9
Reaction score
217
Hello, I'm trying make the global depot, by using "no town" in the depots, but when I step in the glowing switch don't show how much items I have in the chest, what is the function to get my depot ?
Code:
local depotItems = (player:getDepotChest(0):getItemHoldingCount())
????
I'm using "zero" to try get the depot with noTown...
 
This is not just LUA.

You need to load depots in Player::getDepotChest()
As well you need to integrate the market with it, I saw it done somewhere in github.
 
This is not just LUA.

You need to load depots in Player::getDepotChest()
As well you need to integrate the market with it, I saw it done somewhere in github.
I know, well, my attempt is just create the boxes inside of the depot, set limit 17 (number of the boxes) to the depot chest, and use the boxes as normal containers but can't be moveable or pickup, then this boxes will stay inside of the depot chest....
the change to show how much items you're keeping in the depot chest I need to make in tiles.lua
:C
 
Back
Top