i guess i found a simple solution using getTopCreature, anyway here is the script =P
local randompos = {{x = 300, y = 232, z = 7}, {x = 301, y = 232, z = 7}}, -- positions where chests will spawn (creature chests)
function onThink(cid, interval)
local rpos = randompos[math.random(1...