Try this one, rep me if i helped ^_^
function onUse(cid, item, frompos, item2, topos)
wall1 = {x=1496, y=1488, z=5, stackpos=1}
wall2 = {x=1497, y=1488, z=5, stackpos=1}
getwall1 = getThingfromPos(wall1)
getwall2 = getThingfromPos(wall2)
if item.uid == 5004 and item.itemid...