I think you can use the storage on each pillar for example:
function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey)
local c = Creature[cid]
local storagePillarA = 1200
local storagePillarB = 1201
local storagePillarC = 1202
local storagePillarD = 1203...