So replace "player:getDepotLocker(townIds):addItem(1987, 1)" with "player:getDepotChest(depotId[, autoCreate = false])"?
local events = {
'PlayerDeath',
'LevelSave',
'SvargrondArenaKill',
'DropLoot'
}
local townIds = {1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12}
function...