We can try two scripts
this one creates the NPC: (Action script)
function onUse(cid, item, fromPosition, itemEx, toPosition)
local c = {
standPos = {x=1000, y=1000, z=1000}, -- Position player stands to use lever.
itemPos = {x=1000, y=1000, z=1000, stackpos=255}, -- Position of the place...