Not tested
local config = {
summonName = "Orc",
cost = 10000, -- in gp, put 0 to disable
remove1 = "yes" -- should egg by removed after use?
}
function onUse(player, item, fromPosition, itemEx, toPosition)
local pos = player:getPosition()
if pos.x == CONTAINER_POSITION then...