Why isn't this working?
function onUse(cid, item, frompos, item2, topos)
local gatepos = {x=(item.x+2), y=(item.y+1), z=(item.z), stackpos=1}
local corpsepos = {x=(item.x), y=(item.y+1), z=(item.z), stackpos=1}
local newstone = 0
local getgate = getThingfromPos(gatepos)
local...