ond
Veteran OT User
I wonder if someone could help me edit this script, making it able to respond to two levers, for example, if you pull one of the two levers, the other get pulled as well.
Here is the script:
Here is the script:
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
doTransformItem(getThingfromPos({x=32062, y=32232, z=8, stackpos=0}).uid, item.itemid == 1945 and 508 or 1284)
doRelocate({x=32062, y=32232, z=8}, {x=32064, y=32232, z=8})
doTransformItem(getThingfromPos({x=32063, y=32232, z=8, stackpos=0}).uid, item.itemid == 1945 and 509 or 1284)
doRelocate({x=32063, y=32232, z=8}, {x=32064, y=32232, z=8})
return 1, doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
end