I decided to use cykotitans code and remove the teleportthing, so now it works.
local t = {
storage = 32000,
monster = {"Demon", {x=100, y=100, z=7}},
msg = "It's too quiet here..."
}
function onStepIn(cid, item, position, fromPosition)
if getPlayerStorageValue(cid, t.storage) < 1...