local gatepos = {x=33314, y=31592, z=15, stackpos=1} -- write here statue position only 3 places to change.
function onUse(cid, item, frompos, item2, topos)
local getgate = getThingfromPos(gatepos)
if item.itemid == 1945 and getgate.itemid == 1355 then -- 1355 replace to statue id
doSetItemActionId(getgate.uid, actionid) -- dont know about unique but action and unique id is same shit just in other hand. replace action id to 8484
doTransformItem(item.uid, item.itemid+1)
end
return true
end